Guest User

Untitled

a guest
Apr 9th, 2018
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. public class News_Yeb extends Fragment implements OnClickListener {
  2. Button bt_register;
  3. TextInputLayout til_name, til_username;
  4. ImageView iv_profile;
  5. String name, username, password, email, mobile, profile, confirm;
  6. RequestQueue requestQueue;
  7. boolean IMAGE_STATUS = false;
  8. Bitmap profilePicture;
  9.  
  10. @Override
  11. public View onCreateView(LayoutInflater inflater, ViewGroup container,
  12. Bundle savedInstanceState) {
  13.  
  14. View RootView = inflater.inflate(R.layout.news_yeb, container, false);
  15. til_name = RootView.findViewById(R.id.til_name_reg);
  16. til_username = RootView.findViewById(R.id.til_username_reg);
  17. bt_register = RootView.findViewById(R.id.bt_register);
  18. iv_profile = RootView.findViewById(R.id.im_profile);
  19. bt_register.setOnClickListener(this);
  20. iv_profile.setOnClickListener(this);
  21.  
  22. return RootView;
  23. }
  24.  
  25.  
  26. public void onClick(View iv_profile) {
  27. Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
  28. intent.setType("image/*");
  29. startActivityForResult(intent, 1000);
  30. }
  31.  
  32. @Override
  33. public void onClick (View bt_register){
  34. name = til_name.getEditText().getText().toString();
  35. username = til_username.getEditText().getText().toString();
  36. password = til_password.getEditText().getText().toString();
  37. if (
  38. validateName(name) &&
  39.  
  40. ) .....
Add Comment
Please, Sign In to add comment