Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2014
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.62 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:tools="http://schemas.android.com/tools"
  4. android:layout_width="fill_parent"
  5. android:layout_height="wrap_content"
  6. tools:context=".ArticleFragment" >
  7.  
  8. <!-- This FrameLayout exists purely to force the outer ScrollView to respect
  9. the margins of the LinearLayout -->
  10. <FrameLayout
  11. android:layout_width="fill_parent"
  12. android:layout_height="wrap_content">
  13.  
  14. <LinearLayout
  15. android:layout_width="fill_parent"
  16. android:layout_height="wrap_content"
  17. android:orientation="vertical"
  18. android:padding="10dp"
  19. android:layout_margin="16dp"
  20. android:background="@color/page_background" >
  21.  
  22. <TextView
  23. android:id="@+id/article_title"
  24. android:layout_width="fill_parent"
  25. android:layout_height="wrap_content"
  26. android:textAppearance="?android:attr/textAppearanceLarge"
  27. android:textIsSelectable="true" />
  28.  
  29. <TextView
  30. android:id="@+id/article_content"
  31. android:layout_width="fill_parent"
  32. android:layout_height="wrap_content"
  33. android:textIsSelectable="true" />
  34.  
  35. </LinearLayout>
  36. </FrameLayout>
  37. </ScrollView>
  38.  
  39. <?xml version="1.0" encoding="utf-8"?>
  40. <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
  41. xmlns:tools="http://schemas.android.com/tools"
  42. android:layout_width="fill_parent"
  43. android:layout_height="fill_parent"
  44. tools:context=".ArticleFragment" >
  45.  
  46. <LinearLayout
  47. android:layout_width="fill_parent"
  48. android:layout_height="wrap_content"
  49. android:orientation="vertical"
  50. android:padding="10dp"
  51. android:layout_margin="16dp" >
  52.  
  53. <TextView
  54. android:id="@+id/article_title"
  55. android:layout_width="fill_parent"
  56. android:layout_height="wrap_content"
  57. android:textAppearance="?android:attr/textAppearanceLarge"
  58. android:textIsSelectable="true"
  59. android:background="@color/page_background" />
  60.  
  61. <TextView
  62. android:id="@+id/article_content"
  63. android:layout_width="fill_parent"
  64. android:layout_height="wrap_content"
  65. android:textIsSelectable="true"
  66. android:background="@color/page_background" />
  67.  
  68.  
  69. <!-- Add a little space to the end -->
  70. <View
  71. android:layout_width="fill_parent"
  72. android:layout_height="30dp" />
  73.  
  74. </LinearLayout>
  75. </ScrollView>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement