Advertisement
Guest User

Untitled

a guest
Feb 6th, 2017
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. public class FragmentLoginActivity extends Fragment implements View.OnClickListener {
  2. EditText User, Pass;
  3. Button loginBt;
  4.  
  5. @Override
  6. public View onCreateView(LayoutInflater mInflater, ViewGroup container, Bundle savedInstanceState) {
  7. super.onCreate(savedInstanceState);
  8. View rootView = mInflater.inflate(R.layout.activity_fragment_login, container, false);
  9. initInstance(rootView);
  10. return rootView;
  11. }
  12.  
  13. private void initInstance(View view) {
  14. User = (EditText) view.findViewById(R.id.UserAccount);
  15. Pass = (EditText) view.findViewById(R.id.PassAccount);
  16. loginBt = (Button) view.findViewById(R.id.loginBt);
  17. loginBt.setOnClickListener(this);
  18. }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement