item_hazard_name.xml 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:layout_width="match_parent"
  4. android:layout_height="wrap_content"
  5. android:background="@color/white"
  6. android:orientation="vertical"
  7. android:paddingLeft="10dp"
  8. android:paddingRight="10dp"
  9. android:paddingBottom="8dp">
  10. <RelativeLayout
  11. android:id="@+id/rel_view"
  12. android:layout_width="match_parent"
  13. android:layout_height="wrap_content">
  14. <TextView
  15. android:id="@+id/tv_hazard_name"
  16. android:layout_width="match_parent"
  17. android:layout_height="35dp"
  18. android:layout_marginTop="8dp"
  19. android:gravity="center_vertical"
  20. android:text="烘箱-H1002"
  21. android:textColor="@color/black" />
  22. <ImageView
  23. android:layout_width="wrap_content"
  24. android:layout_height="wrap_content"
  25. android:layout_alignParentRight="true"
  26. android:layout_centerVertical="true"
  27. android:background="@mipmap/icon_kzjc_zk" />
  28. </RelativeLayout>
  29. </LinearLayout>