hj_banner_orien_layout.xml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:layout_width="match_parent"
  4. android:layout_height="80dp"
  5. android:orientation="vertical">
  6. <RelativeLayout
  7. android:layout_width="match_parent"
  8. android:layout_height="80dp"
  9. android:layout_marginLeft="80dp"
  10. android:layout_marginRight="80dp"
  11. android:background="#ccffffff">
  12. <ImageView
  13. android:id="@+id/hj_iv_icon"
  14. android:layout_width="50dp"
  15. android:layout_height="50dp"
  16. android:layout_centerVertical="true"
  17. android:layout_marginLeft="20dp"
  18. />
  19. <TextView
  20. android:id="@+id/hj_tv_title"
  21. android:layout_width="wrap_content"
  22. android:layout_height="wrap_content"
  23. android:layout_centerHorizontal="true"
  24. android:layout_centerVertical="true"
  25. android:layout_toLeftOf="@+id/hj_tv_detail"
  26. android:layout_toRightOf="@+id/hj_iv_icon"
  27. android:ellipsize="end"
  28. android:maxLines="1"
  29. android:text="更多精彩请 点击"
  30. android:textColor="#000"
  31. android:textSize="16sp"
  32. android:layout_marginLeft="10dp"
  33. />
  34. <TextView
  35. android:id="@+id/hj_tv_detail"
  36. android:layout_width="wrap_content"
  37. android:layout_height="wrap_content"
  38. android:layout_alignParentRight="true"
  39. android:layout_centerVertical="true"
  40. android:layout_marginRight="10dp"
  41. android:background="@drawable/hj_corner_blue"
  42. android:gravity="center"
  43. android:paddingBottom="10dp"
  44. android:paddingLeft="20dp"
  45. android:paddingRight="20dp"
  46. android:paddingTop="10dp"
  47. android:text="查看详情"
  48. android:textColor="#ffffff"
  49. />
  50. </RelativeLayout>
  51. </RelativeLayout>