Android Layouts
Android Layouts
• <Bu on android:id="@+id/btnStartService"
• android:layout_width="270dp"
• android:layout_height="wrap_content"
• android:text="start_service"/>
• <Bu on android:id="@+id/btnPauseService"
• android:layout_width="270dp“
• android:layout_height="wrap_content“
• android:text="pause_service"/>
• <Bu on android:id="@+id/btnStopService"
• android:layout_width="270dp
• " android:layout_height="wrap_content"
• android:text="stop_service"/>
• </LinearLayout>
res/values/strings.xml
• <?xml version="1.0" encoding="u -8"?>
<resources>
• <string name="app_name">HelloWorld</
string> <string name="ac on_se ngs">
Se ngs</string> </resources>
• Now let's change the orienta on of Layout
as android:orienta on="horizontal" and try to
run the same applica on, it will give following
screen −