|
@@ -1,5 +1,5 @@
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
+<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="match_parent"
|
|
@@ -47,12 +47,12 @@
|
|
|
android:layout_height="0dp"
|
|
|
android:layout_marginTop="9dp"
|
|
|
android:background="@color/white"
|
|
|
+ android:gravity="start|top"
|
|
|
android:hint="请输入标题"
|
|
|
+ android:lineSpacingMultiplier="1.2"
|
|
|
android:maxLength="25"
|
|
|
- android:gravity="start|top"
|
|
|
android:textColor="@color/color_333333"
|
|
|
android:textSize="@dimen/dp_15"
|
|
|
- android:lineSpacingMultiplier="1.2"
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
|
app:layout_constraintTop_toBottomOf="@+id/tv_title" />
|
|
@@ -65,8 +65,8 @@
|
|
|
android:text="0/25"
|
|
|
android:textColor="@color/color_aaaaaa"
|
|
|
android:textSize="@dimen/sp_14"
|
|
|
- app:layout_constraintTop_toTopOf="parent"
|
|
|
- app:layout_constraintRight_toRightOf="parent" />
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
@@ -107,8 +107,8 @@
|
|
|
android:background="@color/white"
|
|
|
android:gravity="start|top"
|
|
|
android:hint="请输入公告内容"
|
|
|
- android:maxLength="200"
|
|
|
android:lineSpacingMultiplier="1.2"
|
|
|
+ android:maxLength="200"
|
|
|
android:textColor="@color/color_333333"
|
|
|
android:textSize="@dimen/dp_15"
|
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
@@ -122,8 +122,8 @@
|
|
|
android:text="0/200"
|
|
|
android:textColor="@color/color_aaaaaa"
|
|
|
android:textSize="@dimen/sp_14"
|
|
|
- app:layout_constraintTop_toTopOf="parent"
|
|
|
- app:layout_constraintRight_toRightOf="parent" />
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent" />
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
<CheckBox
|
|
@@ -145,27 +145,17 @@
|
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
|
app:layout_constraintTop_toBottomOf="@+id/cs_content" />
|
|
|
|
|
|
-
|
|
|
- <LinearLayout
|
|
|
+ <Button
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ android:id="@+id/btn_commit"
|
|
|
+ style="?android:attr/borderlessButtonStyle"
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="@dimen/dp_0"
|
|
|
- android:layout_weight="1"
|
|
|
- android:orientation="vertical"
|
|
|
- android:paddingTop="@dimen/dp_108"
|
|
|
- app:layout_constraintLeft_toLeftOf="parent"
|
|
|
- app:layout_constraintTop_toBottomOf="@+id/cb_roof">
|
|
|
-
|
|
|
- <Button
|
|
|
- android:id="@+id/btn_commit"
|
|
|
- style="?android:attr/borderlessButtonStyle"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="@dimen/dp_44"
|
|
|
- android:layout_marginStart="@dimen/dp_28"
|
|
|
- android:layout_marginEnd="@dimen/dp_28"
|
|
|
- android:layout_marginBottom="@dimen/dp_95"
|
|
|
- android:background="@drawable/btn_primary_default_shape"
|
|
|
- android:text="发布"
|
|
|
- android:textColor="@color/white"
|
|
|
- android:textSize="@dimen/dp_16" />
|
|
|
- </LinearLayout>
|
|
|
-</LinearLayout>
|
|
|
+ android:layout_height="@dimen/dp_44"
|
|
|
+ android:layout_marginStart="@dimen/dp_25"
|
|
|
+ android:layout_marginEnd="@dimen/dp_25"
|
|
|
+ android:layout_marginBottom="@dimen/dp_40"
|
|
|
+ android:background="@drawable/btn_primary_default_shape"
|
|
|
+ android:text="发布"
|
|
|
+ android:textColor="@color/white"
|
|
|
+ android:textSize="@dimen/dp_16" />
|
|
|
+</androidx.constraintlayout.widget.ConstraintLayout>
|