chat_from_item_video.xml 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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:orientation="vertical" >
  6. <TextView
  7. android:id="@+id/time_tv"
  8. style="@style/ChattingUISystem"
  9. android:layout_gravity="center_horizontal"
  10. android:layout_marginTop="5dp"
  11. android:background="@drawable/chatsystem_bg"
  12. android:gravity="center" />
  13. <RelativeLayout
  14. android:layout_width="fill_parent"
  15. android:layout_height="wrap_content"
  16. android:gravity="right"
  17. android:orientation="horizontal"
  18. android:padding="3dip" >
  19. <ImageView
  20. android:id="@+id/chat_head_iv"
  21. android:layout_width="48dip"
  22. android:layout_height="48dip"
  23. android:layout_alignParentRight="true"
  24. android:contentDescription="@string/app_name"
  25. android:src="@drawable/avatar_normal" />
  26. <TextView
  27. android:id="@+id/nick_name"
  28. android:layout_width="wrap_content"
  29. android:layout_height="wrap_content"
  30. android:layout_marginRight="5dp"
  31. android:layout_toLeftOf="@+id/chat_head_iv"
  32. android:textSize="@dimen/SmallerTextSize" />
  33. <RelativeLayout
  34. android:id="@+id/chat_content_layout"
  35. android:layout_width="275dp"
  36. android:layout_height="wrap_content"
  37. android:layout_below="@+id/nick_name"
  38. android:layout_toLeftOf="@+id/chat_head_iv" >
  39. <FrameLayout
  40. android:id="@+id/chat_from_warp_view"
  41. android:layout_width="wrap_content"
  42. android:layout_height="wrap_content"
  43. android:layout_alignParentRight="true"
  44. android:layout_alignParentTop="true"
  45. android:background="@drawable/chat_bg_blue_press"
  46. android:clickable="true"
  47. android:focusable="true"
  48. android:gravity="center"
  49. android:orientation="vertical" >
  50. <!-- 所有Item该布局的子布局不能超过210dp -->
  51. <ImageView
  52. android:id="@+id/chat_from_thumb"
  53. android:layout_width="wrap_content"
  54. android:layout_height="wrap_content"
  55. android:adjustViewBounds="true"
  56. android:contentDescription="@string/app_name"
  57. android:maxWidth="210dp"
  58. android:scaleType="fitXY"
  59. android:src="@drawable/defaultpic" />
  60. <ImageView
  61. android:layout_width="40dp"
  62. android:layout_height="40dp"
  63. android:layout_gravity="center"
  64. android:background="@drawable/detail_gray_button"
  65. android:contentDescription="@string/app_name"
  66. android:padding="5dp"
  67. android:src="@drawable/feed_main_player_play" />
  68. </FrameLayout>
  69. <ProgressBar
  70. android:id="@+id/progress"
  71. style="@android:style/Widget.ProgressBar.Small"
  72. android:layout_width="wrap_content"
  73. android:layout_height="wrap_content"
  74. android:layout_centerVertical="true"
  75. android:layout_marginRight="3dp"
  76. android:layout_toLeftOf="@id/chat_from_warp_view" />
  77. <ImageView
  78. android:id="@+id/failed_img_view"
  79. android:layout_width="wrap_content"
  80. android:layout_height="wrap_content"
  81. android:layout_centerVertical="true"
  82. android:layout_marginRight="3dp"
  83. android:layout_toLeftOf="@id/chat_from_warp_view"
  84. android:background="@drawable/im_send_failed_bg"
  85. android:contentDescription="@string/app_name"
  86. android:visibility="gone" />
  87. </RelativeLayout>
  88. </RelativeLayout>
  89. </LinearLayout>