HOW TO MAKE BUTTON ON ANDROID STUDIO

HOW TO MAKE BUTTON ON ANDROID STUDIO

How to make simple button on android studio First Of All You Can Create a New Project then Go to xml and paste the Below Code After paste You Will See the Button.

Button

XML CODE

<LinearLayout xmlns:android=”http://schemas.android.com/apk/res/android

 android:layout_width=”match parent”
 android:layout_height=”match parent”
 android:orientation=”vertical” >

<Button
android:id=”@+id/button”
android:layout_width=”wrap_content”
android:layout_height=”wrap_content”
android:layout_gravity=”center_horizontal”
android:text=”Button”
tools:layout_editor_absoluteX=”148dp”
tools:layout_editor_absoluteY=”204dp” />

</LinearLayout>

 

Leave a Reply

Your email address will not be published. Required fields are marked *