parent
9b6334bab6
commit
635dd06a54
@ -1,148 +1,147 @@ |
|||||||
<com.scwang.smartrefresh.layout.SmartRefreshLayout |
<com.scwang.smartrefresh.layout.SmartRefreshLayout xmlns:android="http://schemas.android.com/apk/res/android" |
||||||
xmlns:android="http://schemas.android.com/apk/res/android" |
xmlns:app="http://schemas.android.com/apk/res-auto" |
||||||
xmlns:app="http://schemas.android.com/apk/res-auto" |
xmlns:tools="http://schemas.android.com/tools" |
||||||
xmlns:tools="http://schemas.android.com/tools" |
android:id="@+id/srl_content" |
||||||
android:id="@+id/srl_content" |
android:layout_width="match_parent" |
||||||
android:layout_width="match_parent" |
android:layout_height="match_parent" |
||||||
android:layout_height="match_parent" |
android:background="@color/colorBackground" |
||||||
android:background="@color/colorBackground" |
tools:context="xyz.fycz.myreader.ui.fragment.BookcaseFragment"> |
||||||
tools:context="xyz.fycz.myreader.ui.fragment.BookcaseFragment"> |
|
||||||
<com.scwang.smartrefresh.header.MaterialHeader |
<com.scwang.smartrefresh.header.MaterialHeader |
||||||
android:layout_width="match_parent" |
android:layout_width="match_parent" |
||||||
android:layout_height="wrap_content"/> |
android:layout_height="wrap_content" /> |
||||||
|
|
||||||
<RelativeLayout |
<RelativeLayout |
||||||
android:layout_width="match_parent" |
android:layout_width="match_parent" |
||||||
android:layout_height="match_parent" |
android:layout_height="match_parent" |
||||||
android:orientation="vertical" |
android:scrollbars="none"> |
||||||
android:scrollbars="none"> |
|
||||||
|
|
||||||
<LinearLayout |
<LinearLayout |
||||||
android:id="@+id/ll_no_data_tips" |
android:id="@+id/ll_no_data_tips" |
||||||
android:layout_width="wrap_content" |
android:layout_width="wrap_content" |
||||||
android:layout_height="wrap_content" |
android:layout_height="wrap_content" |
||||||
android:layout_centerInParent="true" |
android:layout_centerInParent="true" |
||||||
android:gravity="center" |
android:gravity="center" |
||||||
android:orientation="vertical" |
android:orientation="vertical" |
||||||
android:padding="10dp" |
android:padding="10dp" |
||||||
android:visibility="gone"> |
android:visibility="gone"> |
||||||
|
|
||||||
<ImageView |
<ImageView |
||||||
android:layout_width="100dp" |
android:layout_width="100dp" |
||||||
android:layout_height="100dp" |
android:layout_height="100dp" |
||||||
app:tint="@color/textSecondary" |
app:srcCompat="@drawable/ic_vector_add_bookcase" |
||||||
app:srcCompat="@drawable/ic_vector_add_bookcase"/> |
app:tint="@color/textSecondary" /> |
||||||
|
|
||||||
<TextView |
<TextView |
||||||
android:layout_width="wrap_content" |
android:layout_width="wrap_content" |
||||||
android:layout_height="wrap_content" |
android:layout_height="wrap_content" |
||||||
android:layout_marginTop="10dp" |
android:layout_marginTop="10dp" |
||||||
android:text="当前无任何书籍,点击添加" |
android:text="当前无任何书籍,点击添加" |
||||||
android:textColor="@color/textSecondary" |
android:textColor="@color/textSecondary" |
||||||
android:textSize="16sp"/> |
android:textSize="16sp" /> |
||||||
</LinearLayout> |
</LinearLayout> |
||||||
|
|
||||||
<xyz.fycz.myreader.widget.custom.DragSortGridView |
<xyz.fycz.myreader.widget.custom.DragSortGridView |
||||||
android:id="@+id/gv_book" |
android:id="@+id/gv_book" |
||||||
android:layout_width="match_parent" |
android:layout_width="match_parent" |
||||||
android:layout_height="wrap_content" |
android:layout_height="wrap_content" |
||||||
android:columnWidth="100dp" |
android:layout_above="@+id/rl_book_edit" |
||||||
android:horizontalSpacing="10dp" |
android:layout_alignParentTop="true" |
||||||
android:listSelector="@android:color/transparent" |
android:columnWidth="100dp" |
||||||
android:numColumns="auto_fit" |
android:gravity="center" |
||||||
android:scrollbars="none" |
android:horizontalSpacing="10dp" |
||||||
android:padding="5dp" |
android:listSelector="@android:color/transparent" |
||||||
android:verticalSpacing="10dp"> |
android:numColumns="auto_fit" |
||||||
</xyz.fycz.myreader.widget.custom.DragSortGridView> |
android:scrollbars="none" |
||||||
|
android:verticalSpacing="10dp" /> |
||||||
|
|
||||||
<RelativeLayout |
<RelativeLayout |
||||||
android:id="@+id/rl_download_tip" |
android:id="@+id/rl_download_tip" |
||||||
android:layout_width="match_parent" |
android:layout_width="match_parent" |
||||||
android:layout_height="39dp" |
android:layout_height="39dp" |
||||||
android:layout_alignParentBottom="true" |
android:layout_alignParentBottom="true" |
||||||
android:background="@color/colorForeground" |
android:background="@color/colorForeground" |
||||||
android:visibility="gone"> |
android:visibility="gone"> |
||||||
|
|
||||||
<ProgressBar |
<ProgressBar |
||||||
android:layout_width="match_parent" |
android:id="@+id/pb_download" |
||||||
android:layout_height="4dp" |
style="?android:attr/progressBarStyleHorizontal" |
||||||
android:layout_alignParentTop="true" |
android:layout_width="match_parent" |
||||||
style="?android:attr/progressBarStyleHorizontal" |
android:layout_height="4dp" |
||||||
android:id="@+id/pb_download" |
android:layout_alignParentTop="true" |
||||||
android:max="100" |
android:max="100" /> |
||||||
/> |
|
||||||
|
|
||||||
<TextView |
<TextView |
||||||
android:id="@+id/tv_download_tip" |
android:id="@+id/tv_download_tip" |
||||||
android:layout_width="wrap_content" |
android:layout_width="wrap_content" |
||||||
android:layout_height="match_parent" |
android:layout_height="match_parent" |
||||||
android:textColor="@color/textSecondary" |
android:gravity="center_vertical|start" |
||||||
android:text="正在初始化..." |
android:maxLines="1" |
||||||
android:gravity="center_vertical|start" |
android:paddingStart="15dp" |
||||||
android:maxLines="1" |
android:text="正在初始化..." |
||||||
android:textSize="14sp" |
android:textColor="@color/textSecondary" |
||||||
android:paddingStart="15dp"/> |
android:textSize="14sp" /> |
||||||
|
|
||||||
<TextView |
<TextView |
||||||
android:id="@+id/tv_stop_download" |
android:id="@+id/tv_stop_download" |
||||||
android:layout_width="wrap_content" |
android:layout_width="wrap_content" |
||||||
android:layout_height="match_parent" |
android:layout_height="match_parent" |
||||||
android:textColor="@color/colorAccent" |
android:layout_alignParentEnd="true" |
||||||
android:textSize="14sp" |
android:gravity="center_vertical" |
||||||
android:text="@string/stop_download_tip" |
android:paddingStart="15dp" |
||||||
android:layout_alignParentEnd="true" |
android:paddingEnd="15dp" |
||||||
android:gravity="center_vertical" |
android:text="@string/stop_download_tip" |
||||||
android:paddingEnd="15dp" |
android:textColor="@color/colorAccent" |
||||||
android:paddingStart="15dp" |
android:textSize="14sp" |
||||||
android:visibility="gone"/> |
android:visibility="gone" /> |
||||||
</RelativeLayout> |
</RelativeLayout> |
||||||
|
|
||||||
<RelativeLayout |
<RelativeLayout |
||||||
android:id="@+id/rl_book_edit" |
android:id="@+id/rl_book_edit" |
||||||
android:layout_width="match_parent" |
android:layout_width="match_parent" |
||||||
android:layout_height="52dp" |
android:layout_height="52dp" |
||||||
android:paddingRight="10dp" |
android:layout_alignParentBottom="true" |
||||||
android:layout_alignParentBottom="true" |
android:background="@color/colorForeground" |
||||||
android:background="@color/colorForeground" |
android:gravity="center_vertical" |
||||||
android:gravity="center_vertical" |
android:paddingEnd="10dp" |
||||||
android:visibility="gone"> |
android:visibility="gone"> |
||||||
|
|
||||||
<CheckBox |
<CheckBox |
||||||
android:id="@+id/book_selected_all" |
android:id="@+id/book_selected_all" |
||||||
android:layout_width="120dp" |
android:layout_width="120dp" |
||||||
android:layout_height="40dp" |
android:layout_height="40dp" |
||||||
android:layout_centerVertical="true" |
android:layout_centerVertical="true" |
||||||
android:layout_marginStart="15dp" |
android:layout_marginStart="15dp" |
||||||
android:text="全选" |
android:text="全选" |
||||||
android:textSize="15dp" |
android:textColor="@color/textSecondary" |
||||||
android:textColor="@color/textSecondary" |
android:textSize="15dp" |
||||||
android:theme="@style/MyCheckBox" /> |
android:theme="@style/MyCheckBox" /> |
||||||
|
|
||||||
<Button |
<Button |
||||||
android:id="@+id/book_add_group" |
android:id="@+id/book_add_group" |
||||||
android:layout_width="90dp" |
android:layout_width="90dp" |
||||||
android:layout_height="35dp" |
android:layout_height="35dp" |
||||||
android:minWidth="110dp" |
android:layout_alignParentEnd="true" |
||||||
android:layout_alignParentRight="true" |
android:layout_centerVertical="true" |
||||||
android:layout_centerVertical="true" |
android:background="@drawable/selector_btn_add" |
||||||
android:enabled="false" |
android:clickable="false" |
||||||
android:clickable="false" |
android:enabled="false" |
||||||
android:background="@drawable/selector_btn_add" |
android:minWidth="110dp" |
||||||
android:textColor="@color/selector_btn_file_add" |
android:text="加入分组" |
||||||
android:text="加入分组" /> |
android:textColor="@color/selector_btn_file_add" /> |
||||||
|
|
||||||
<Button |
<Button |
||||||
android:id="@+id/book_btn_delete" |
android:id="@+id/book_btn_delete" |
||||||
android:layout_width="90dp" |
android:layout_width="90dp" |
||||||
android:layout_height="35dp" |
android:layout_height="35dp" |
||||||
android:layout_centerVertical="true" |
android:layout_centerVertical="true" |
||||||
android:layout_marginRight="15dp" |
android:layout_marginEnd="15dp" |
||||||
android:enabled="false" |
android:layout_toLeftOf="@id/book_add_group" |
||||||
android:clickable="false" |
android:background="@drawable/selector_btn_add" |
||||||
android:background="@drawable/selector_btn_add" |
android:clickable="false" |
||||||
android:textColor="@color/selector_btn_file_add" |
android:enabled="false" |
||||||
android:layout_toLeftOf="@id/book_add_group" |
android:text="删除/移除" |
||||||
android:text="删除/移除"/> |
android:textColor="@color/selector_btn_file_add" /> |
||||||
</RelativeLayout> |
</RelativeLayout> |
||||||
</RelativeLayout> |
</RelativeLayout> |
||||||
</com.scwang.smartrefresh.layout.SmartRefreshLayout> |
</com.scwang.smartrefresh.layout.SmartRefreshLayout> |
||||||
|
@ -0,0 +1,17 @@ |
|||||||
|
<?xml version ="1.0" encoding ="utf-8"?> |
||||||
|
<menu xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" |
||||||
|
android:layout_width="match_parent" |
||||||
|
android:layout_height="match_parent"> |
||||||
|
|
||||||
|
<item |
||||||
|
android:id="@+id/action_share" |
||||||
|
android:icon="@drawable/ic_share" |
||||||
|
android:title="@string/menu_share" |
||||||
|
app:showAsAction="ifRoom"/> |
||||||
|
|
||||||
|
<item |
||||||
|
android:id="@+id/action_group_setting" |
||||||
|
android:title="@string/menu_group_setting" |
||||||
|
android:icon="@drawable/ic_group" |
||||||
|
app:showAsAction="never" /> |
||||||
|
</menu> |
@ -1,2 +1,2 @@ |
|||||||
#Mon Feb 01 19:33:27 CST 2021 |
#Wed Feb 03 13:23:18 CST 2021 |
||||||
VERSION_CODE=181 |
VERSION_CODE=181 |
||||||
|
Loading…
Reference in new issue