<?xml version="1.0" encoding="utf-8"?>
|
<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=".MainActivity">
|
|
<EditText
|
android:id="@+id/edit"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:minHeight="200dp"
|
android:maxHeight="500dp"
|
android:hint="输入歌词"
|
android:padding="10dp"
|
android:gravity="left"
|
android:scrollbars="vertical"
|
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintRight_toRightOf="parent"
|
app:layout_constraintLeft_toLeftOf="parent" />
|
|
<androidx.appcompat.widget.AppCompatButton
|
android:id="@+id/button"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="确认"
|
android:layout_margin="10dp"
|
app:layout_constraintBottom_toBottomOf="@id/edit"
|
app:layout_constraintRight_toRightOf="@id/edit"/>
|
|
<TextView
|
android:id="@+id/txt_local"
|
android:layout_width="match_parent"
|
android:layout_height="40dp"
|
android:text="本地歌词"
|
android:gravity="center_vertical"
|
android:paddingLeft="16dp"
|
android:textSize="16sp"
|
android:background="@drawable/bg_white"
|
app:layout_constraintTop_toBottomOf="@id/edit"
|
app:layout_constraintRight_toRightOf="parent"
|
app:layout_constraintLeft_toLeftOf="parent"/>
|
<TextView
|
android:id="@+id/txt_favorite"
|
android:layout_width="match_parent"
|
android:layout_height="40dp"
|
android:text="我的收藏"
|
android:gravity="center_vertical"
|
android:paddingLeft="16dp"
|
android:textSize="16sp"
|
android:background="@drawable/bg_white"
|
app:layout_constraintTop_toBottomOf="@id/txt_local"
|
app:layout_constraintRight_toRightOf="parent"
|
app:layout_constraintLeft_toLeftOf="parent"/>
|
|
|
<TextView
|
android:id="@+id/txt_setting"
|
android:layout_width="match_parent"
|
android:layout_height="40dp"
|
android:text="设置"
|
android:gravity="center_vertical"
|
android:paddingLeft="16dp"
|
android:textSize="16sp"
|
android:background="@drawable/bg_white"
|
app:layout_constraintTop_toBottomOf="@id/txt_favorite"
|
app:layout_constraintRight_toRightOf="parent"
|
app:layout_constraintLeft_toLeftOf="parent"/>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|