Advertisement
Guest User

Untitled

a guest
Nov 5th, 2016
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. package com.example.ks.adamfirstapp;
  2.  
  3. import android.annotation.SuppressLint;
  4. import android.support.v7.app.AppCompatActivity;
  5. import android.os.Bundle;
  6. import android.view.View;
  7. import android.widget.Button;
  8. import android.widget.EditText;
  9.  
  10. public class MainActivity extends AppCompatActivity {
  11.  
  12. EditText editTextUsername;
  13. EditText getEditTextPassword;
  14. Button buttonLoginIn;
  15. Button buttonLoginIn2;
  16.  
  17. @Override
  18. protected void onCreate(Bundle savedInstanceState) {
  19. super.onCreate(savedInstanceState);
  20. setContentView(R.layout.activity_main);
  21.  
  22. initUiComponents();
  23. }
  24.  
  25. private void initUiComponents(){
  26. editTextUsername = (EditText) findViewById(R.id.login);
  27. getEditTextPassword = (EditText) findViewById(R.id.haslo);
  28. buttonLoginIn = (Button) findViewById(R.id.button);
  29. buttonLoginIn2 = (Button) findViewById(R.id.button2);
  30.  
  31. buttonLoginIn.setOnClickListener(getOnButtonLogInClik());
  32. }
  33.  
  34. private View.OnClickListener getOnButtonLogInClik() {
  35. return new View.OnClickListener(){
  36. public void onClick(View v){
  37. //to do
  38. }
  39. };
  40. }
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement