circle_new_tweeting.xml 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. xmlns:tools="http://schemas.android.com/tools"
  5. android:layout_width="match_parent"
  6. android:layout_height="match_parent"
  7. android:orientation="vertical">
  8. <android.support.design.widget.AppBarLayout
  9. android:id="@+id/new_tweet_appbar"
  10. android:layout_width="0dp"
  11. android:layout_height="wrap_content"
  12. app:layout_constraintLeft_toLeftOf="parent"
  13. app:layout_constraintRight_toRightOf="parent"
  14. app:layout_constraintTop_toTopOf="parent">
  15. <com.shuishuo.app.common.views.BaseToolbar
  16. android:id="@+id/new_tweet_toolbar"
  17. style="@style/fullToolbarStyle"
  18. android:layout_width="match_parent"
  19. android:layout_height="wrap_content"/>
  20. </android.support.design.widget.AppBarLayout>
  21. <EditText
  22. android:id="@+id/new_tweet_content"
  23. android:layout_width="0dp"
  24. android:layout_height="128dp"
  25. android:layout_marginEnd="8dp"
  26. android:layout_marginLeft="8dp"
  27. android:layout_marginRight="8dp"
  28. android:layout_marginStart="8dp"
  29. android:layout_marginTop="20dp"
  30. android:ems="10"
  31. android:gravity="start"
  32. android:hint="您想说点什么..."
  33. android:inputType="textPersonName"
  34. app:layout_constraintHorizontal_bias="0.0"
  35. app:layout_constraintLeft_toLeftOf="@+id/new_tweet_appbar"
  36. app:layout_constraintRight_toRightOf="@+id/new_tweet_appbar"
  37. app:layout_constraintTop_toBottomOf="@+id/new_tweet_appbar" />
  38. <HorizontalScrollView
  39. android:layout_width="wrap_content"
  40. android:layout_height="wrap_content"
  41. android:layout_marginTop="8dp"
  42. android:orientation="horizontal"
  43. android:scrollbarAlwaysDrawHorizontalTrack="true"
  44. app:layout_constraintLeft_toLeftOf="@+id/new_tweet_content"
  45. app:layout_constraintTop_toBottomOf="@+id/linearLayout2"
  46. android:id="@+id/horizontalScrollView">
  47. </HorizontalScrollView>
  48. <GridLayout
  49. android:id="@+id/new_tweet_img_layout"
  50. android:layout_width="wrap_content"
  51. android:layout_height="wrap_content"
  52. android:layout_marginLeft="8dp"
  53. android:layout_marginStart="7dp"
  54. android:columnCount="5"
  55. android:orientation="horizontal"
  56. app:layout_constraintLeft_toRightOf="@+id/horizontalScrollView"
  57. app:layout_constraintTop_toBottomOf="@+id/horizontalScrollView">
  58. <ImageView
  59. android:id="@+id/new_tweet_add_imgs"
  60. android:layout_width="wrap_content"
  61. android:layout_height="wrap_content"
  62. android:src="@drawable/circle_new_tweet_img" />
  63. </GridLayout>
  64. <LinearLayout
  65. android:id="@+id/linearLayout2"
  66. android:layout_width="wrap_content"
  67. android:layout_height="wrap_content"
  68. android:layout_marginLeft="8dp"
  69. android:layout_marginStart="8dp"
  70. android:layout_marginTop="8dp"
  71. android:gravity="center_vertical"
  72. app:layout_constraintLeft_toLeftOf="@+id/new_tweet_content"
  73. app:layout_constraintTop_toBottomOf="@+id/new_tweet_content">
  74. <LinearLayout
  75. android:layout_width="wrap_content"
  76. android:layout_height="wrap_content"
  77. android:background="@color/grey_light_light"
  78. android:gravity="center_vertical"
  79. android:orientation="horizontal"
  80. android:padding="4dp">
  81. <ImageView
  82. android:id="@+id/imageView6"
  83. android:layout_width="wrap_content"
  84. android:layout_height="wrap_content"
  85. android:src="@drawable/location" />
  86. <TextView
  87. android:id="@+id/new_tweet_location_tv"
  88. android:layout_width="wrap_content"
  89. android:layout_height="wrap_content"
  90. android:text="未定位"
  91. android:textColor="@color/grey_light" />
  92. </LinearLayout>
  93. <CheckBox
  94. android:id="@+id/check_show_loc"
  95. android:layout_width="wrap_content"
  96. android:layout_height="wrap_content"
  97. android:layout_marginLeft="10dp"
  98. android:text="不显示位置"
  99. android:textColor="@color/grey_light" />
  100. </LinearLayout>
  101. </android.support.constraint.ConstraintLayout>