|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
android:orientation="vertical"
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="match_parent">
|
|
|
android:layout_height="match_parent"
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
<include layout="@layout/layout_tool_bar" />
|
|
|
|
|
|
<LinearLayout
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="?actionBarSize"
|
|
|
android:background="@color/white"
|
|
|
android:gravity="center_vertical"
|
|
|
android:orientation="horizontal"
|
|
|
android:paddingStart="16dp"
|
|
|
android:paddingEnd="16dp">
|
|
|
|
|
|
<ImageView
|
|
|
android:layout_width="87dp"
|
|
|
android:layout_height="26dp"
|
|
|
android:layout_gravity="center_vertical"
|
|
|
android:background="@color/color_96"
|
|
|
android:contentDescription="@string/logo" />
|
|
|
<EditText
|
|
|
android:id="@+id/search_edit"
|
|
|
android:layout_width="0dp"
|
|
|
android:layout_height="32dp"
|
|
|
android:layout_weight="1"
|
|
|
android:background="@drawable/stroke_25_4"
|
|
|
android:drawableStart="@mipmap/search"
|
|
|
android:drawablePadding="12dp"
|
|
|
android:hint="搜索"
|
|
|
android:maxLines="1"
|
|
|
android:paddingStart="16dp"
|
|
|
android:paddingEnd="10dp"
|
|
|
android:textColor="@color/color_25"
|
|
|
android:textColorHint="@color/color_4025"
|
|
|
android:textSize="14sp" />
|
|
|
|
|
|
<TextView
|
|
|
android:id="@+id/type"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="match_parent"
|
|
|
android:layout_marginStart="40dp"
|
|
|
android:drawableEnd="@mipmap/down_arrow"
|
|
|
android:drawablePadding="8dp"
|
|
|
android:gravity="center_vertical"
|
|
|
android:text="焊工"
|
|
|
android:textColor="@color/color_32"
|
|
|
android:textSize="14sp" />
|
|
|
</LinearLayout>
|
|
|
|
|
|
<RelativeLayout
|
|
|
android:id="@+id/search"
|
|
|
<androidx.core.widget.NestedScrollView
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="0dp"
|
|
|
android:layout_weight="1"
|
|
|
android:overScrollMode="never"
|
|
|
android:scrollbars="none">
|
|
|
|
|
|
<LinearLayout
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="32dp"
|
|
|
android:layout_gravity="center_vertical"
|
|
|
android:layout_marginStart="8dp"
|
|
|
android:background="@drawable/search_back">
|
|
|
android:layout_height="wrap_content"
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
<LinearLayout
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:layout_marginStart="16dp"
|
|
|
android:layout_marginTop="20dp"
|
|
|
android:layout_marginEnd="16dp"
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
<ImageView
|
|
|
android:id="@+id/mock_exam"
|
|
|
android:layout_width="0dp"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:layout_weight="1"
|
|
|
android:src="@mipmap/mock_exam" />
|
|
|
|
|
|
<ImageView
|
|
|
android:id="@+id/practice_daily"
|
|
|
android:layout_width="0dp"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:layout_weight="1"
|
|
|
android:src="@mipmap/practice_daily" />
|
|
|
|
|
|
<ImageView
|
|
|
android:id="@+id/challenge_answer"
|
|
|
android:layout_width="0dp"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:layout_weight="1"
|
|
|
android:src="@mipmap/challenge_answer" />
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
<FrameLayout
|
|
|
android:id="@+id/leaderboard_group"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:layout_marginStart="16dp"
|
|
|
android:layout_marginTop="16dp"
|
|
|
android:layout_marginEnd="16dp"
|
|
|
android:background="@color/color_e3">
|
|
|
|
|
|
<ImageView
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:layout_gravity="start"
|
|
|
android:contentDescription="@string/logo"
|
|
|
android:src="@mipmap/leaderboard" />
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
android:id="@+id/leaderboard"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:layout_gravity="end|center_vertical"
|
|
|
android:layout_marginEnd="16dp"
|
|
|
android:drawableEnd="@mipmap/arrow_right_25"
|
|
|
android:text="1845人参与"
|
|
|
android:textColor="@color/color_25"
|
|
|
android:textSize="12sp" />
|
|
|
</FrameLayout>
|
|
|
|
|
|
<TextView
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:layout_centerInParent="true"
|
|
|
android:text="搜索"
|
|
|
android:textColor="@color/white"
|
|
|
android:textSize="14sp" />
|
|
|
|
|
|
<ImageView
|
|
|
android:layout_width="40dp"
|
|
|
android:layout_height="28dp"
|
|
|
android:layout_alignParentEnd="true"
|
|
|
android:layout_centerVertical="true"
|
|
|
android:layout_marginEnd="2dp"
|
|
|
android:background="@drawable/solid_ff_14"
|
|
|
android:contentDescription="@string/logo"
|
|
|
android:paddingStart="12dp"
|
|
|
android:paddingEnd="12dp"
|
|
|
android:src="@mipmap/search" />
|
|
|
</RelativeLayout>
|
|
|
</LinearLayout>
|
|
|
android:layout_marginStart="16dp"
|
|
|
android:layout_marginTop="24dp"
|
|
|
android:layout_marginBottom="16dp"
|
|
|
android:text="专项练习"
|
|
|
android:textColor="@color/color_32"
|
|
|
android:textSize="18sp" />
|
|
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
android:id="@+id/practice"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="match_parent"
|
|
|
android:layout_marginStart="16dp"
|
|
|
android:layout_marginEnd="16dp"
|
|
|
android:nestedScrollingEnabled="false"
|
|
|
android:overScrollMode="never"
|
|
|
android:scrollbars="none"
|
|
|
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" />
|
|
|
|
|
|
</LinearLayout>
|
|
|
</androidx.core.widget.NestedScrollView>
|
|
|
|
|
|
<FrameLayout
|
|
|
android:id="@+id/change"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="40dp"
|
|
|
android:layout_marginStart="16dp"
|
|
|
android:layout_marginEnd="16dp"
|
|
|
android:layout_marginBottom="6dp"
|
|
|
android:background="@drawable/solid_eff2_4">
|
|
|
|
|
|
<TextView
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="40dp"
|
|
|
android:layout_gravity="center"
|
|
|
android:drawableEnd="@mipmap/change"
|
|
|
android:drawablePadding="4dp"
|
|
|
android:gravity="center"
|
|
|
android:text="换一换"
|
|
|
android:textColor="@color/color_25"
|
|
|
android:textSize="12sp" />
|
|
|
</FrameLayout>
|
|
|
|
|
|
</LinearLayout> |
|
|
\ No newline at end of file |
...
|
...
|
|