item_view_student_exam.xml 5.27 KB
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:custom="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="horizontal">

    <ListView
        android:layout_width="0dp"
        android:layout_height="match_parent"
        android:layout_weight="1">

    </ListView>

    <LinearLayout
        android:layout_width="0dp"
        android:layout_height="match_parent"
        android:layout_weight="6"
        android:orientation="vertical">

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:layout_weight="1"
            android:background="#50B4C8"
            android:orientation="vertical">

            <RelativeLayout
                android:id="@+id/username_linear"
                android:layout_width="match_parent"
                android:layout_height="40dp"
                android:layout_marginTop="10dp">

                <TextView
                    android:id="@+id/username"
                    android:layout_width="wrap_content"
                    android:layout_height="match_parent"
                    android:layout_centerHorizontal="true"
                    android:textSize="@dimen/big_text_p3"
                    android:gravity="center"
                    android:textColor="@color/white"
                    android:text="陈为民"/>

                <TextView
                    android:id="@+id/wrong_book"
                    android:layout_width="wrap_content"
                    android:layout_height="match_parent"
                    android:layout_alignParentRight="true"
                    android:textColor="#9BFBFF"
                    android:gravity="center"
                    android:textSize="@dimen/big_text_p3"
                    android:layout_marginRight="20dp"
                    android:text="个人错题本"
                    android:paddingLeft="10dp"
                    android:paddingRight="10dp"
                    android:background="@drawable/rancnge_background"/>

            </RelativeLayout>

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="0dp"
                android:layout_weight="1"
                android:orientation="horizontal">

                <com.sunvote.txpad.view.SemiCircleView
                    android:layout_width="0dp"
                    android:layout_height="match_parent"
                    android:layout_weight="1"
                    custom:bgColor="#30888888"
                    custom:currProgress="216"
                    custom:foreEndColor="#fc8378"
                    custom:foreStartColor="#ffd994"
                    custom:maxProgress="240"
                    custom:progressInitialPosition="150"
                    custom:progressWidth="8dp"
                    android:layout_gravity="center_horizontal"
                    custom:desc="参与测试"
                    custom:useAnimation="true"/>

                <com.sunvote.txpad.view.SemiCircleView
                    android:layout_width="0dp"
                    android:layout_height="match_parent"
                    android:layout_weight="1"
                    custom:bgColor="#30888888"
                    custom:currProgress="171"
                    custom:foreEndColor="#fc8378"
                    custom:foreStartColor="#ffd994"
                    custom:maxProgress="240"
                    custom:progressInitialPosition="150"
                    custom:progressWidth="8dp"
                    custom:desc="个人平均得分率"
                    android:layout_gravity="center_horizontal"
                    custom:useAnimation="true"/>

            </LinearLayout>

            <View
                android:layout_width="match_parent"
                android:layout_height="1dp"
                android:layout_marginRight="30dp"
                android:layout_marginLeft="30dp"
                android:background="@color/blue"/>

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="40dp"
                android:orientation="horizontal">

                <TextView
                    android:layout_width="0dp"
                    android:layout_height="match_parent"
                    android:layout_weight="1"
                    android:gravity="center"
                    android:textColor="@color/text_blank"
                    android:textSize="@dimen/big_text_p4"
                    android:text="班级平均得分率58%"/>

                <TextView
                    android:layout_width="0dp"
                    android:layout_height="match_parent"
                    android:layout_weight="1"
                    android:gravity="center"
                    android:textColor="@color/text_blank"
                    android:textSize="@dimen/big_text_p4"
                    android:text="班级平均得分率58%"/>

            </LinearLayout>

        </LinearLayout>

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:layout_weight="1">

        </LinearLayout>

    </LinearLayout>


</LinearLayout>