circle_new_tweeting.xml 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:tools="http://schemas.android.com/tools"
  4. xmlns:app="http://schemas.android.com/apk/res-auto"
  5. android:orientation="vertical"
  6. android:layout_width="match_parent"
  7. android:layout_height="match_parent">
  8. <com.sheishuo.app.common.views.BaseToolbar
  9. android:layout_width="0dp"
  10. android:layout_height="wrap_content"
  11. style="@style/fullToolbarStyle"
  12. app:title="发布"
  13. app:left_text="返回"
  14. app:right_text="确定"
  15. app:layout_constraintRight_toRightOf="parent"
  16. app:layout_constraintLeft_toLeftOf="parent"
  17. app:layout_constraintTop_toTopOf="parent"
  18. android:id="@+id/new_tweet_toolbar" />
  19. <EditText
  20. android:id="@+id/new_tweet_content"
  21. android:layout_width="0dp"
  22. android:layout_height="256dp"
  23. android:ems="10"
  24. android:inputType="textPersonName"
  25. android:layout_marginRight="8dp"
  26. app:layout_constraintRight_toRightOf="@+id/new_tweet_toolbar"
  27. android:layout_marginLeft="8dp"
  28. app:layout_constraintLeft_toLeftOf="@+id/new_tweet_toolbar"
  29. android:layout_marginTop="20dp"
  30. app:layout_constraintTop_toBottomOf="@+id/new_tweet_toolbar"
  31. android:gravity="start"
  32. android:hint="您想说点什么..."
  33. app:layout_constraintHorizontal_bias="0.0"
  34. android:layout_marginStart="8dp"
  35. android:layout_marginEnd="8dp" />
  36. <HorizontalScrollView
  37. android:layout_width="wrap_content"
  38. android:layout_height="wrap_content"
  39. android:orientation="horizontal"
  40. android:layout_marginTop="8dp"
  41. app:layout_constraintTop_toBottomOf="@+id/linearLayout2"
  42. app:layout_constraintLeft_toLeftOf="@+id/new_tweet_content"
  43. android:scrollbarAlwaysDrawHorizontalTrack="true">
  44. <LinearLayout
  45. android:id="@+id/new_tweet_img_layout"
  46. android:layout_width="wrap_content"
  47. android:layout_height="wrap_content"
  48. android:orientation="horizontal">
  49. <ImageView
  50. android:id="@+id/new_tweet_add_imgs"
  51. android:layout_width="128dp"
  52. android:layout_height="128dp"
  53. android:src="@drawable/circle_new_tweet_img"/>
  54. </LinearLayout>
  55. </HorizontalScrollView>
  56. <LinearLayout
  57. android:layout_width="wrap_content"
  58. android:layout_height="wrap_content"
  59. android:background="@color/grey_light_light"
  60. android:padding="4dp"
  61. android:layout_marginLeft="8dp"
  62. app:layout_constraintLeft_toLeftOf="@+id/new_tweet_content"
  63. android:layout_marginTop="8dp"
  64. app:layout_constraintTop_toBottomOf="@+id/new_tweet_content"
  65. android:id="@+id/linearLayout2"
  66. android:layout_marginStart="8dp">
  67. <ImageView
  68. android:layout_width="wrap_content"
  69. android:layout_height="wrap_content"
  70. android:src="@drawable/location"/>
  71. <TextView
  72. android:id="@+id/new_tweet_location_tv"
  73. android:layout_width="wrap_content"
  74. android:layout_height="wrap_content"
  75. android:text="未定位"
  76. android:textColor="@color/grey_light"/>
  77. </LinearLayout>
  78. </android.support.constraint.ConstraintLayout>