layout


SUBMITTED BY: Guest

DATE: April 8, 2014, 6:41 p.m.

FORMAT: Text only

SIZE: 4.8 kB

HITS: 1131

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. android:layout_width="fill_parent"
  5. android:layout_height="fill_parent" >
  6. <LinearLayout
  7. android:layout_width="match_parent"
  8. android:layout_height="wrap_content"
  9. android:layout_marginBottom="4dp"
  10. android:layout_marginLeft="6dp"
  11. android:layout_marginRight="6dp"
  12. android:layout_marginTop="4dp"
  13. android:background="@drawable/bg_card"
  14. android:orientation="vertical" >
  15. <TextView
  16. android:id="@+id/detailstitle"
  17. android:layout_width="fill_parent"
  18. android:layout_height="wrap_content"
  19. android:textAppearance="?android:attr/textAppearanceMedium" />
  20. <!-- description -->
  21. <TextView
  22. android:id="@+id/detailsdescription"
  23. android:layout_width="fill_parent"
  24. android:layout_height="wrap_content"
  25. android:layout_weight="1"
  26. android:autoLink="all"
  27. android:linksClickable="true"
  28. android:scrollbars="vertical" />
  29. <WebView
  30. android:id="@+id/descriptionwebview"
  31. android:layout_width="fill_parent"
  32. android:layout_height="wrap_content"
  33. android:layout_weight="1" />
  34. <!-- footer -->
  35. <LinearLayout
  36. android:id="@+id/buttom_panel"
  37. android:layout_width="fill_parent"
  38. android:layout_height="wrap_content"
  39. android:orientation="vertical" >
  40. <!-- date -->
  41. <LinearLayout
  42. android:layout_width="match_parent"
  43. android:layout_height="wrap_content"
  44. android:orientation="horizontal" >
  45. <TextView
  46. android:layout_width="wrap_content"
  47. android:layout_height="wrap_content"
  48. android:text="@string/textview_date"
  49. android:textStyle="bold" />
  50. <TextView
  51. android:id="@+id/detailspubdate"
  52. android:layout_width="wrap_content"
  53. android:layout_height="wrap_content" />
  54. </LinearLayout>
  55. <!-- devider before buttons -->
  56. <View
  57. android:layout_width="fill_parent"
  58. android:layout_height="1dp"
  59. android:layout_marginTop="10dp"
  60. android:background="@android:color/darker_gray" />
  61. <!-- buttons -->
  62. <LinearLayout
  63. android:layout_width="match_parent"
  64. android:layout_height="wrap_content" >
  65. <Button
  66. android:id="@+id/openbutton"
  67. style="@style/CardActionButton"
  68. android:layout_width="wrap_content"
  69. android:layout_height="wrap_content"
  70. android:layout_marginRight="10dp"
  71. android:background="@android:color/transparent"
  72. android:text="@string/open_button" />
  73. <View
  74. android:layout_width="1dp"
  75. android:layout_height="fill_parent"
  76. android:layout_marginTop="5dp"
  77. android:background="@android:color/darker_gray" />
  78. <Button
  79. android:id="@+id/favoritebutton"
  80. style="@style/CardActionButton"
  81. android:layout_width="wrap_content"
  82. android:layout_height="wrap_content"
  83. android:layout_marginRight="10dp"
  84. android:background="@android:color/transparent"
  85. android:text="@string/favorite_button" />
  86. </LinearLayout>
  87. </LinearLayout>
  88. </LinearLayout>
  89. <com.google.android.gms.ads.AdView
  90. xmlns:app="http://schemas.android.com/apk/res-auto"
  91. android:id="@+id/adView"
  92. android:layout_width="wrap_content"
  93. android:layout_height="wrap_content"
  94. android:layout_gravity="top"
  95. app:adSize="SMART_BANNER"
  96. app:adUnitId="a15342e80996579" >
  97. </com.google.android.gms.ads.AdView>
  98. </FrameLayout>

comments powered by Disqus