You need to add a button xml in your layout xml file. Below it is

<Button
android:id="@+id/sign_in_button"
android:layout_width="456dp"
android:layout_height="72dp"
android:layout_centerHorizontal="true"
android:layout_marginTop="20dp"
android:background="@drawable/sign_in_btn"
android:paddingLeft="32dp"
android:paddingRight="32dp" />

Now you have to add below code on your relevant activity class.

  loginButton = (Button) findViewById(R.id.sign_in_button);
  loginButton.setOnClickListener(new View.OnClickListener() {
    @Override
     public void onClick(View v) {
     // Do your business here.
    }
  });

Leave a Reply

WP Facebook Auto Publish Powered By : XYZScripts.com