Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class News_Yeb extends Fragment implements OnClickListener {
- Button bt_register;
- TextInputLayout til_name, til_username;
- ImageView iv_profile;
- String name, username, password, email, mobile, profile, confirm;
- RequestQueue requestQueue;
- boolean IMAGE_STATUS = false;
- Bitmap profilePicture;
- @Override
- public View onCreateView(LayoutInflater inflater, ViewGroup container,
- Bundle savedInstanceState) {
- View RootView = inflater.inflate(R.layout.news_yeb, container, false);
- til_name = RootView.findViewById(R.id.til_name_reg);
- til_username = RootView.findViewById(R.id.til_username_reg);
- bt_register = RootView.findViewById(R.id.bt_register);
- iv_profile = RootView.findViewById(R.id.im_profile);
- bt_register.setOnClickListener(this);
- iv_profile.setOnClickListener(this);
- return RootView;
- }
- public void onClick(View iv_profile) {
- Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
- intent.setType("image/*");
- startActivityForResult(intent, 1000);
- }
- @Override
- public void onClick (View bt_register){
- name = til_name.getEditText().getText().toString();
- username = til_username.getEditText().getText().toString();
- password = til_password.getEditText().getText().toString();
- if (
- validateName(name) &&
- ) .....
Add Comment
Please, Sign In to add comment