Look at 2 pictures first
One, 5.1 inch
Two, 3.7 inch
Third, the Code
1 <?XML version= "1.0" encoding= "Utf-8"?>2 <LinearLayoutxmlns:android= "Http://schemas.android.com/apk/res/android"3 Android:layout_width= "Fill_parent"4 Android:layout_height= "Fill_parent"5 Android:background= "#ff36a1e9"6 android:gravity= "Center"7 android:orientation= "vertical" >8 9 <ImageViewTen Android:layout_width= "Wrap_content" One Android:layout_height= "Wrap_content" A android:focusable= "true" - android:src= "@drawable/welcome" /> - the <TextView - Android:layout_width= "Wrap_content" - Android:layout_height= "Wrap_content" - Android:text= "Global starter collage" + Android:textcolor= "@color/white" - android:textsize= "23.0SP" /> + A <TextView at Android:layout_width= "Wrap_content" - Android:layout_height= "Wrap_content" - Android:layout_margintop= "13DP" - Android:text= "Group of people ordering meals" - Android:textcolor= "@color/white" - android:textsize= "14.0SP" /> in - <TextView to Android:id= "@id/welcome_start_order" + Android:layout_width= "Wrap_content" - Android:layout_height= "35.0dip" the Android:layout_margintop= "20.0dip" * Android:background= "@drawable/selector_red_corners_start_button" $ android:gravity= "Center"Panax Notoginseng Android:paddingleft= "15.0dip" - Android:paddingright= "15.0dip" the Android:text= "Start Ordering" + Android:textcolor= "@color/white" A android:textsize= "18.0SP" /> the + </LinearLayout>
This is mostly LinearLayout and android:gravity= "center" android:orientation= "vertical"
Android-linearlayout Layout Tips (i)