200 lines
6.3 KiB
Plaintext
200 lines
6.3 KiB
Plaintext
|
<?xml version="1.0" encoding="utf-8"?>
|
||
|
<LinearLayout 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="wrap_content"
|
||
|
android:orientation="vertical"
|
||
|
android:id="@+id/llout"
|
||
|
>
|
||
|
|
||
|
|
||
|
<RelativeLayout
|
||
|
android:id="@+id/top_layout"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="120dp"
|
||
|
android:elevation="1dp"
|
||
|
tools:ignore="UnusedAttribute">
|
||
|
|
||
|
<LinearLayout
|
||
|
android:id="@+id/llBookdetail"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="110dp"
|
||
|
android:layout_alignParentBottom="true"
|
||
|
android:background="@color/white"
|
||
|
android:clickable="true"
|
||
|
android:orientation="horizontal"
|
||
|
android:paddingStart="105dp"
|
||
|
android:paddingLeft="120dp">
|
||
|
|
||
|
<LinearLayout
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
|
||
|
android:layout_gravity="top"
|
||
|
android:layout_weight="1"
|
||
|
android:background="@drawable/item_selector"
|
||
|
android:orientation="vertical"
|
||
|
android:paddingStart="15dp"
|
||
|
android:paddingRight="10dp"
|
||
|
android:paddingTop="5dp">
|
||
|
|
||
|
<TextView
|
||
|
android:id="@+id/bdTitle"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:ellipsize="marquee"
|
||
|
android:text="射雕英雄传"
|
||
|
android:textColor="@color/colorPrimary"
|
||
|
android:textSize="16sp"
|
||
|
android:textStyle="bold"
|
||
|
tools:ignore="HardcodedText,TextViewEdits" />
|
||
|
|
||
|
|
||
|
<TextView
|
||
|
android:id="@+id/tvAuthor"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:text="金庸"
|
||
|
android:visibility="visible"
|
||
|
tools:ignore="HardcodedText" />
|
||
|
|
||
|
<TextView
|
||
|
android:id="@+id/txtLatestCate"
|
||
|
style="@style/TextViewDesc"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_marginTop="2dp"
|
||
|
android:ellipsize="end"
|
||
|
android:lines="1"
|
||
|
android:text=""
|
||
|
|
||
|
/>
|
||
|
|
||
|
<TextView
|
||
|
android:id="@+id/txtLatestUpdate"
|
||
|
style="@style/TextViewDesc.small"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:lines="1"
|
||
|
android:text=""
|
||
|
|
||
|
/>
|
||
|
|
||
|
|
||
|
</LinearLayout>
|
||
|
|
||
|
|
||
|
</LinearLayout>
|
||
|
|
||
|
<android.support.v7.widget.CardView
|
||
|
android:id="@+id/cardView"
|
||
|
android:layout_width="80dp"
|
||
|
android:layout_height="100dp"
|
||
|
android:layout_marginStart="20dp"
|
||
|
android:layout_marginLeft="20dp"
|
||
|
android:layout_marginEnd="14dp"
|
||
|
android:layout_marginRight="14dp"
|
||
|
android:layout_marginBottom="5dp"
|
||
|
app:cardBackgroundColor="@color/white"
|
||
|
app:cardCornerRadius="6dp"
|
||
|
app:cardElevation="2dp">
|
||
|
|
||
|
<ImageView
|
||
|
android:id="@+id/imageG1"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="match_parent"
|
||
|
android:scaleType="centerCrop"
|
||
|
android:src="@drawable/googleg_standard_color_18"
|
||
|
tools:ignore="ContentDescription" />
|
||
|
|
||
|
</android.support.v7.widget.CardView>
|
||
|
|
||
|
</RelativeLayout>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<LinearLayout
|
||
|
|
||
|
android:orientation="horizontal"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:gravity="bottom"
|
||
|
android:background="@color/white"
|
||
|
android:padding="40dp"
|
||
|
android:paddingBottom="5dp"
|
||
|
>
|
||
|
|
||
|
|
||
|
<LinearLayout
|
||
|
android:orientation="vertical"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:id="@+id/llClearCache"
|
||
|
android:gravity="bottom"
|
||
|
android:background="@drawable/item_selector"
|
||
|
android:clickable="true"
|
||
|
>
|
||
|
<TextView
|
||
|
android:id="@+id/tvCache"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="20dp"
|
||
|
|
||
|
android:layout_gravity="center"
|
||
|
android:text=""
|
||
|
|
||
|
android:textColor="#212121" />
|
||
|
|
||
|
<TextView
|
||
|
android:id="@+id/tvClearCache"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="20dp"
|
||
|
|
||
|
android:layout_gravity="center"
|
||
|
android:text="清除缓存"
|
||
|
|
||
|
android:textColor="#212121" />
|
||
|
|
||
|
</LinearLayout>.
|
||
|
|
||
|
<LinearLayout
|
||
|
android:id="@+id/llTop"
|
||
|
android:orientation="vertical"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:gravity="bottom|center_horizontal"
|
||
|
|
||
|
android:background="@drawable/item_selector"
|
||
|
android:clickable="true"
|
||
|
android:layout_marginStart="30dp"
|
||
|
android:layout_marginEnd="5dp"
|
||
|
>
|
||
|
<ImageView
|
||
|
android:id="@+id/imageTop"
|
||
|
android:layout_width="30dp"
|
||
|
android:layout_height="30dp"
|
||
|
android:layout_weight="1"
|
||
|
android:gravity="center"
|
||
|
android:src="@mipmap/star_active" />
|
||
|
|
||
|
<TextView
|
||
|
android:id="@+id/tvTop"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="20dp"
|
||
|
android:gravity="center"
|
||
|
android:text="置顶显示"
|
||
|
|
||
|
android:textColor="#212121" />
|
||
|
|
||
|
</LinearLayout>.
|
||
|
|
||
|
|
||
|
</LinearLayout>
|
||
|
|
||
|
|
||
|
|
||
|
</LinearLayout>
|
||
|
|
||
|
|