3.13

页面上方有导航栏,导航栏左侧为返回键,右侧为功能键
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MoodRecordActivity">

<androidx.appcompat.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/colorPrimary"
android:theme="@style/ThemeOverlay.AppCompat.ActionBar"
app:layout_constraintTop_toTopOf="parent" />

<TextView
android:id="@+id/textView_result"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:textSize="20sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/toolbar" />

<ImageView
android:id="@+id/imageView_result"
android:layout_width="289dp"
android:layout_height="290dp"
android:padding="16dp"
app:layout_constraintBottom_toTopOf="@+id/editText_mood"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.495"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/textView_result" />

<EditText
android:id="@+id/editText_mood"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:hint="⭐️"
android:minHeight="48dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/imageView_result" />
</androidx.constraintlayout.widget.ConstraintLayout>
posted @ 2024-03-13 23:57  涨涨涨张  阅读(2)  评论(0编辑  收藏  举报