item_grid.xml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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="match_parent" >
  5. <RelativeLayout
  6. android:id="@+id/layout_icon"
  7. android:layout_width="match_parent"
  8. android:layout_height="wrap_content" >
  9. <ImageView
  10. android:id="@+id/iv_image"
  11. android:layout_width="wrap_content"
  12. android:layout_centerHorizontal="true"
  13. android:layout_height="wrap_content">
  14. </ImageView>
  15. <Button
  16. android:id="@+id/btn_dot"
  17. android:layout_width="wrap_content"
  18. android:layout_height="wrap_content"
  19. android:textColor="@color/white"
  20. android:focusable="false"
  21. android:textSize="@dimen/textsize_11"
  22. android:layout_alignRight="@id/iv_image"
  23. android:layout_marginTop="0dp"
  24. android:layout_marginRight="-8dp"
  25. android:background="@drawable/business_count"/>
  26. </RelativeLayout>
  27. <TextView
  28. android:id="@+id/tv_title"
  29. android:layout_width="match_parent"
  30. android:layout_height="wrap_content"
  31. android:layout_marginTop="5dp"
  32. android:layout_below="@+id/layout_icon"
  33. android:gravity="center"
  34. android:textColor="@color/black"
  35. android:textSize="13sp"
  36. >
  37. </TextView>
  38. </RelativeLayout>