Elemen di Android
Berikut file strings.xml :
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/LinearLayout1"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context="com.dumet.androidscrollview.MainActivity$PlaceholderFragme
nt" >
<TextView
android:layout_width="match_parent"
android:layout_height="0sp"
android:layout_weight="1"
android:background="#FF0"
android:gravity="center"
android:text="@string/header" />
<ScrollView
android:id="@+id/scroll"
android:layout_width="match_parent"
android:layout_height="0sp"
android:layout_weight="5" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >
<ImageView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:adjustViewBounds="true"
android:contentDescription="@string/imageDesc"
android:src="@drawable/playstore" />
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/lipsum"
android:textAppearance="?android:attr/textAppearanceMedium"
/>
</LinearLayout>
</ScrollView>
<TextView
android:layout_width="match_parent"
android:layout_height="0sp"
android:layout_weight="1"
android:background="#F00"
android:gravity="center"
android:text="@string/footer" />
</LinearLayout>