Newer
Older
dictation / app / src / main / res / layout / activity_test.xml
bello on 17 Jul 2020 3 KB init
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <LinearLayout
        android:id="@+id/page_layout"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:layout_centerHorizontal="true"
        android:layout_marginBottom="40dp"
        android:orientation="horizontal">

        <TextView
            android:id="@+id/page_left_text"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="1"
            android:textColor="@color/blue_m" />

        <TextView
            android:id="@+id/page_right_text"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text=" / 30"
            android:textColor="@color/gray_m" />
    </LinearLayout>

    <TextView
        android:id="@+id/next_btn"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_above="@+id/page_layout"
        android:layout_margin="40dp"
        android:background="@drawable/press_blue_btn_2"
        android:gravity="center"
        android:padding="10dp"
        android:text="跳过" />

    <LinearLayout
        android:id="@+id/text_layout"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_above="@+id/next_btn"
        android:layout_centerHorizontal="true"
        android:layout_marginBottom="60dp"
        android:orientation="horizontal">

        <TextView
            android:layout_width="60dp"
            android:layout_height="60dp"
            android:layout_margin="5dp"
            android:background="@drawable/shape_text_bg"
            android:gravity="center"
            android:text=""
            android:textColor="@color/red_m"
            android:textSize="42sp" />

        <TextView
            android:layout_width="60dp"
            android:layout_height="60dp"
            android:layout_margin="5dp"
            android:background="@drawable/shape_text_bg"
            android:gravity="center"
            android:text=""
            android:textColor="@color/red_m"
            android:textSize="42sp" />

        <TextView
            android:layout_width="60dp"
            android:layout_height="60dp"
            android:layout_margin="5dp"
            android:background="@drawable/shape_text_bg"
            android:gravity="center"
            android:text=""
            android:textColor="@color/red_m"
            android:textSize="42sp" />

        <TextView
            android:layout_width="60dp"
            android:layout_height="60dp"
            android:layout_margin="5dp"
            android:background="@drawable/shape_text_bg"
            android:gravity="center"
            android:text=""
            android:textColor="@color/red_m"
            android:textSize="42sp" />

    </LinearLayout>

    <me.bello.dictation.view.DicRunView
        android:id="@+id/run_view"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_above="@+id/text_layout" />

</RelativeLayout>