centre button android

Solutions on MaxInterview for centre button android by the best coders in the world

showing results for - "centre button android"
Luca
04 Nov 2017
1
2Center using a LinearLayout XML:
3
4<LinearLayout
5    android:id="@+id/LinearLayout1"
6    android:layout_width="match_parent"
7    android:layout_height="match_parent"
8    android:gravity="center"
9    android:orientation="vertical" >
10
11    <ImageButton
12        android:id="@+id/btnFindMe"
13        android:layout_width="wrap_content"
14        android:layout_height="wrap_content"
15        android:background="@drawable/findme" />
16</LinearLayout>
similar questions
queries leading to this page
centre button android