|
|
@@ -3,10 +3,12 @@
|
|
|
*/
|
|
|
package kr.co.zumo.app.lifeplus.view.fragment.signup;
|
|
|
|
|
|
+
|
|
|
import android.databinding.DataBindingUtil;
|
|
|
import android.os.Bundle;
|
|
|
import android.support.annotation.NonNull;
|
|
|
import android.support.annotation.Nullable;
|
|
|
+import android.support.v4.app.FragmentManager;
|
|
|
import android.support.v7.widget.LinearLayoutManager;
|
|
|
import android.support.v7.widget.RecyclerView;
|
|
|
import android.view.LayoutInflater;
|
|
|
@@ -56,7 +58,7 @@ public class SignUpFragment extends FragmentBase {
|
|
|
@Nullable
|
|
|
@Override
|
|
|
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
|
|
|
-
|
|
|
+ showDialog();
|
|
|
return DataBindingUtil.inflate(inflater, R.layout.fragment_sign_up, container, false).getRoot();
|
|
|
}
|
|
|
|
|
|
@@ -81,6 +83,7 @@ public class SignUpFragment extends FragmentBase {
|
|
|
});
|
|
|
|
|
|
// fixme for test
|
|
|
+
|
|
|
signUpViewModel.addItem(new SignUpItem(SignUpItem.SIGN_UP_TEXT, SignUpItem.ALIGN_START, new TextBean(ResourceUtil.getString(R.string.sign_up_hello_text)).toJson()));
|
|
|
|
|
|
SignUpBenefitBean bean = new SignUpBenefitBean("1 번째 텍스트", R.drawable.common_full_open_on_phone, "benefit text1", "category text1");
|
|
|
@@ -108,6 +111,7 @@ public class SignUpFragment extends FragmentBase {
|
|
|
signUpViewModel.addItem(new SignUpItem(SignUpItem.SIGN_UP_NOTICE, SignUpItem.ALIGN_CENTER, new TextBean("SIGN_UP_NOTICE").toJson()));
|
|
|
signUpViewModel.addItem(new SignUpItem(SignUpItem.SIGN_UP_WAITING, SignUpItem.ALIGN_CENTER, new TextBean("SIGN_UP_WAITING").toJson()));
|
|
|
|
|
|
+
|
|
|
adapter.notifyDataSetChanged();
|
|
|
return viewModel;
|
|
|
}
|
|
|
@@ -124,4 +128,13 @@ public class SignUpFragment extends FragmentBase {
|
|
|
super.onStart();
|
|
|
|
|
|
}
|
|
|
+
|
|
|
+ public void showDialog(){
|
|
|
+ FragmentManager manager = getFragmentManager();
|
|
|
+ PasswordDialog dialog = new PasswordDialog();
|
|
|
+ dialog.show(manager, "example");
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
}
|