Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- tools:context=".ArticleFragment" >
- <!-- This FrameLayout exists purely to force the outer ScrollView to respect
- the margins of the LinearLayout -->
- <FrameLayout
- android:layout_width="fill_parent"
- android:layout_height="wrap_content">
- <LinearLayout
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:orientation="vertical"
- android:padding="10dp"
- android:layout_margin="16dp"
- android:background="@color/page_background" >
- <TextView
- android:id="@+id/article_title"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:textAppearance="?android:attr/textAppearanceLarge"
- android:textIsSelectable="true" />
- <TextView
- android:id="@+id/article_content"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:textIsSelectable="true" />
- </LinearLayout>
- </FrameLayout>
- </ScrollView>
- <?xml version="1.0" encoding="utf-8"?>
- <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
- tools:context=".ArticleFragment" >
- <LinearLayout
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:orientation="vertical"
- android:padding="10dp"
- android:layout_margin="16dp" >
- <TextView
- android:id="@+id/article_title"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:textAppearance="?android:attr/textAppearanceLarge"
- android:textIsSelectable="true"
- android:background="@color/page_background" />
- <TextView
- android:id="@+id/article_content"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:textIsSelectable="true"
- android:background="@color/page_background" />
- <!-- Add a little space to the end -->
- <View
- android:layout_width="fill_parent"
- android:layout_height="30dp" />
- </LinearLayout>
- </ScrollView>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement