chat_room_fragment.xml 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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="match_parent"
  5. android:background="@color/white"
  6. android:orientation="vertical">
  7. <FrameLayout
  8. android:id="@+id/view_layout"
  9. android:layout_width="match_parent"
  10. android:layout_height="217dp">
  11. <ImageView
  12. android:id="@+id/chat_room_view"
  13. android:layout_width="match_parent"
  14. android:layout_height="217dip"
  15. android:scaleType="centerCrop"/>
  16. <ViewStub
  17. android:id="@+id/barrage_view_stub"
  18. android:layout_width="match_parent"
  19. android:layout_height="217dip"
  20. android:inflatedId="@+id/barrage_view_after_inflate"
  21. android:layout="@layout/chat_room_barrage"/>
  22. <ImageView
  23. android:id="@+id/back_arrow"
  24. android:layout_width="30dp"
  25. android:layout_height="30dp"
  26. android:layout_marginLeft="20dp"
  27. android:layout_marginTop="20dp"
  28. android:background="@drawable/chat_room_back_arrow_selector"/>
  29. <TextView
  30. android:id="@+id/online_status"
  31. android:layout_width="wrap_content"
  32. android:layout_height="wrap_content"
  33. android:layout_gravity="right"
  34. android:layout_marginRight="10dp"
  35. android:layout_marginTop="10dp"
  36. android:background="@color/transparent"
  37. android:padding="5dp"
  38. android:text="@string/internet_broken"
  39. android:textColor="@color/color_red_ccfa3c55"
  40. android:textSize="@dimen/text_size_12"
  41. android:visibility="gone"/>
  42. </FrameLayout>
  43. <com.sheishuo.app.common.ui.viewpager.PagerSlidingTabStrip
  44. android:id="@+id/chat_room_tabs"
  45. android:layout_width="match_parent"
  46. android:layout_height="@dimen/pager_sliding_tab_strip_height"
  47. android:background="@color/white"/>
  48. <android.support.v4.view.ViewPager
  49. android:id="@+id/chat_room_viewpager"
  50. android:layout_width="match_parent"
  51. android:layout_height="match_parent"/>
  52. </LinearLayout>