Advertisement
rama_astadipati

adapter_berita

Sep 20th, 2018
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.60 KB | None | 0 0
  1. layout/adapter_berita.xml
  2.  
  3. <?xml version="1.0" encoding="utf-8"?>
  4. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  5. android:orientation="vertical"
  6. android:layout_width="match_parent"
  7. android:layout_height="wrap_content"
  8. android:paddingVertical="5dp">
  9. <ImageView
  10. android:id="@+id/ivPosterBerita"
  11. android:layout_width="match_parent"
  12. android:layout_height="130dp"
  13. android:layout_marginHorizontal="10dp"
  14. android:scaleType="fitXY"
  15. android:src="@mipmap/ic_launcher"/>
  16. <TextView
  17. android:id="@+id/tvJudulBerita"
  18. android:layout_width="match_parent"
  19. android:layout_height="wrap_content"
  20. android:textSize="18sp"
  21. android:layout_marginVertical="10dp"
  22. android:layout_marginHorizontal="10dp"
  23. android:textColor="@android:color/black"
  24. android:text="Judul Artikel Berita"/>
  25. <LinearLayout
  26. android:layout_marginHorizontal="10dp"
  27. android:layout_width="match_parent"
  28. android:layout_height="wrap_content"
  29. android:orientation="horizontal">
  30. <TextView
  31. android:id="@+id/tvTglTerbit"
  32. android:layout_width="wrap_content"
  33. android:layout_height="wrap_content"
  34. android:text="Sabtu, 12 Maret 2018."/>
  35. <TextView
  36. android:id="@+id/tvPenulis"
  37. android:layout_width="wrap_content"
  38. android:layout_height="wrap_content"
  39. android:layout_marginHorizontal="10dp"
  40. android:text="Oleh : xxx"/>
  41. </LinearLayout>
  42. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement