Answers for "android button center in linearlayout"

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
0

android studio linear layout center button

android:layout_gravity="center_vertical|center_horizontal"
Posted by: Guest on May-07-2021

Code answers related to "android button center in linearlayout"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language