Advertisement
_RafiHidayat

activity_main.xml

Jul 19th, 2018
388
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.82 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:tools="http://schemas.android.com/tools"
  4. android:layout_width="match_parent"
  5. android:layout_height="match_parent"
  6. android:paddingBottom="@dimen/activity_vertical_margin"
  7. android:paddingLeft="@dimen/activity_horizontal_margin"
  8. android:paddingRight="@dimen/activity_horizontal_margin"
  9. android:paddingTop="@dimen/activity_vertical_margin"
  10. tools:context=".MainActivity">
  11.  
  12. <TextView
  13. android:layout_width="match_parent"
  14. android:layout_height="wrap_content"
  15. android:id="@+id/article_heading"
  16. android:background="@color/colorPrimary"
  17. android:textColor="@android:color/white"
  18. android:padding="@dimen/padding_regular"
  19. android:textAppearance="@android:style/TextAppearance.Large"
  20. android:textStyle="bold"
  21. android:text="@string/article_title"/>
  22.  
  23. <TextView
  24. android:layout_width="match_parent"
  25. android:layout_height="wrap_content"
  26. android:id="@+id/article_subheading"
  27. android:layout_below="@id/article_heading"
  28. android:padding="@dimen/padding_regular"
  29. android:textAppearance="@android:style/TextAppearance"
  30. android:text="@string/article_subtitle"/>
  31.  
  32. <ScrollView
  33. android:layout_width="wrap_content"
  34. android:layout_height="wrap_content"
  35. android:layout_below="@id/article_subheading">
  36.  
  37. <TextView
  38. android:layout_width="wrap_content"
  39. android:layout_height="wrap_content"
  40. android:id="@+id/article"
  41. android:lineSpacingExtra="@dimen/line_spacing"
  42. android:autoLink="web"
  43. android:text="@string/article_text"/>
  44. </ScrollView>
  45.  
  46. </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement