Newer
Older
MathsCalc / app / src / main / res / layout / lt_result.xml
bello on 11 Nov 2018 2 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/score_layout"
        android:orientation="vertical"
        android:layout_width="match_parent"
        android:padding="30dp"
        android:layout_height="wrap_content">

        <ImageView
            android:id="@+id/score_image"
            android:layout_width="80dp"
            android:layout_height="80dp"
            android:layout_gravity="center"
            android:layout_centerInParent="true"
            android:src="@drawable/ic_score1" />

        <TextView
            android:id="@+id/score_desc_text"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_below="@+id/score_image"
            android:gravity="center"
            android:paddingTop="10dp"
            android:text="你真棒!" />

    </LinearLayout>

    <LinearLayout
        android:id="@+id/bottom_layout"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:layout_margin="20dp"
        android:orientation="horizontal">

        <Button
            android:id="@+id/reset_btn"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginRight="10dp"
            android:layout_marginLeft="0dp"
            android:layout_marginTop="0dp"
            android:layout_marginBottom="0dp"
            style="@style/ButtonStyle"
            android:layout_weight="1"
            android:text="再来一次" />

        <Button
            android:id="@+id/close_btn"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginLeft="10dp"
            style="@style/ButtonStyle"
            android:layout_weight="1"
            android:text="退出" />
    </LinearLayout>

    <ListView
        android:id="@+id/question_list_view"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_above="@id/bottom_layout"
        android:dividerHeight="0.2dp"
        android:divider="@color/line"
        android:layout_below="@+id/score_layout" />

</RelativeLayout>