Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.example.ks.adamfirstapp;
- import android.annotation.SuppressLint;
- import android.support.v7.app.AppCompatActivity;
- import android.os.Bundle;
- import android.view.View;
- import android.widget.Button;
- import android.widget.EditText;
- public class MainActivity extends AppCompatActivity {
- EditText editTextUsername;
- EditText getEditTextPassword;
- Button buttonLoginIn;
- Button buttonLoginIn2;
- @Override
- protected void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- setContentView(R.layout.activity_main);
- initUiComponents();
- }
- private void initUiComponents(){
- editTextUsername = (EditText) findViewById(R.id.login);
- getEditTextPassword = (EditText) findViewById(R.id.haslo);
- buttonLoginIn = (Button) findViewById(R.id.button);
- buttonLoginIn2 = (Button) findViewById(R.id.button2);
- buttonLoginIn.setOnClickListener(getOnButtonLogInClik());
- }
- private View.OnClickListener getOnButtonLogInClik() {
- return new View.OnClickListener(){
- public void onClick(View v){
- //to do
- }
- };
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement