ai_list_activity.xml 2.42 KB
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout 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"
    android:background="@drawable/aibg"
    tools:context="com.studymachine.www.ui.activity.AiListActivity">

    <androidx.appcompat.widget.AppCompatImageView
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:src="@drawable/ai_person_bg"
        android:translationZ="@dimen/dp_2" />


    <androidx.appcompat.widget.AppCompatImageView
        android:id="@+id/iv_person"
        android:layout_width="@dimen/dp_500"
        android:layout_centerVertical="true"
        android:layout_height="wrap_content"
        android:src="@drawable/ai_person_to"
        android:translationZ="@dimen/dp_2" />

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical">

        <com.hjq.bar.TitleBar
            style="@style/ActionBarStyle"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:translationZ="@dimen/dp_3"
            app:barStyle="transparent"
            app:leftIconWidth="@dimen/dp_22"
            app:titleIcon="@drawable/ai_title"
            app:titleIconWidth="@dimen/dp_79" />

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="0px"
            android:layout_marginTop="@dimen/dp_16"
            android:layout_weight="1"
            android:gravity="center_vertical"
            android:paddingStart="@dimen/dp_150"
            android:paddingBottom="@dimen/dp_48">

            <androidx.recyclerview.widget.RecyclerView
                android:id="@+id/rv_list"
                android:layout_width="match_parent"
                android:layout_height="@dimen/dp_200"
                android:fadingEdgeLength="@dimen/dp_40"
                android:orientation="horizontal"
                android:overScrollMode="ifContentScrolls"
                android:requiresFadingEdge="horizontal"
                app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
                tools:listitem="@layout/ai_list_item" />
        </LinearLayout>
    </LinearLayout>


</RelativeLayout>