circle_new_tweeting.xml 4.3 KB

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