Answers for "center the buttons in android studio"

2

centre button android

Center using a LinearLayout XML:

<LinearLayout
    android:id="@+id/LinearLayout1"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:gravity="center"
    android:orientation="vertical" >

    <ImageButton
        android:id="@+id/btnFindMe"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:background="@drawable/findme" />
</LinearLayout>
Posted by: Guest on October-05-2020

Code answers related to "center the buttons in android studio"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language