mirror of
https://github.com/mihonapp/mihon.git
synced 2025-10-28 12:57:57 +01:00
UI improvements
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
android:layout_height="fill_parent"
|
||||
android:layout_marginLeft="16dp"
|
||||
android:layout_marginRight="16dp"
|
||||
android:descendantFocusability="blocksDescendants"
|
||||
tools:listitem="@layout/item_chapter">
|
||||
|
||||
</android.support.v7.widget.RecyclerView>
|
||||
@@ -37,10 +38,68 @@
|
||||
android:theme="@style/ThemeOverlay.AppTheme.Dark"
|
||||
app:popupTheme="@style/AppTheme.Popup">
|
||||
|
||||
<android.support.v7.widget.ActionMenuView
|
||||
android:id="@+id/bottom_menu"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="?attr/actionBarSize"/>
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginRight="4dp">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="center_vertical">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/action_sort_up"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="fill_parent"
|
||||
android:layout_gravity="center"
|
||||
android:src="@drawable/ic_expand_less_white_36dp"
|
||||
android:title="@string/action_sort_up"
|
||||
android:visible="true"/>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/action_sort_down"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="fill_parent"
|
||||
android:src="@drawable/ic_expand_more_white_36dp"
|
||||
android:title="@string/action_sort_down"
|
||||
android:visible="true"
|
||||
/>
|
||||
|
||||
<View
|
||||
android:layout_width="1dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_margin="4dp"
|
||||
android:background="@color/white"/>
|
||||
|
||||
<CheckBox
|
||||
android:id="@+id/action_show_unread"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="fill_parent"
|
||||
android:checkable="true"
|
||||
android:text="@string/action_show_unread"
|
||||
android:title="@string/action_show_unread"/>
|
||||
|
||||
<CheckBox
|
||||
android:id="@+id/action_show_downloaded"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="fill_parent"
|
||||
android:checkable="true"
|
||||
android:text="@string/action_show_downloaded"
|
||||
android:title="@string/action_show_downloaded"/>
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/action_next_unread"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="fill_parent"
|
||||
android:layout_alignParentRight="true"
|
||||
android:src="@drawable/ic_play_arrow_white_36dp"
|
||||
android:title="@string/action_next_unread"
|
||||
android:visible="true"/>
|
||||
</RelativeLayout>
|
||||
</android.support.v7.widget.Toolbar>
|
||||
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/card_background"
|
||||
android:orientation="vertical">
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/card_background"
|
||||
android:orientation="vertical">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/thumbnail"
|
||||
@@ -27,17 +27,29 @@
|
||||
android:paddingTop="1dp"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="12sp"
|
||||
android:visibility="gone" />
|
||||
android:visibility="gone"/>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/favorite_sticker"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignEnd="@+id/thumbnail"
|
||||
android:layout_alignRight="@+id/thumbnail"
|
||||
android:layout_alignTop="@+id/thumbnail"
|
||||
android:layout_marginRight="5dp"
|
||||
android:layout_marginTop="5dp"
|
||||
android:src="@drawable/ic_action_favorite"
|
||||
android:visibility="invisible"/>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/footerLinearLayout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="36dp"
|
||||
android:background="@color/white"
|
||||
android:orientation="vertical"
|
||||
android:layout_alignBottom="@+id/thumbnail"
|
||||
android:layout_alignLeft="@+id/unreadText"
|
||||
android:layout_alignStart="@+id/unreadText">
|
||||
android:layout_alignStart="@+id/unreadText"
|
||||
android:background="@color/white"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/title"
|
||||
@@ -50,11 +62,10 @@
|
||||
android:paddingRight="8dp"
|
||||
android:textColor="@color/primary_text"
|
||||
android:textSize="13sp"
|
||||
tools:text="Sample name"
|
||||
android:textStyle="bold" />
|
||||
android:textStyle="bold"
|
||||
tools:text="Sample name"/>
|
||||
|
||||
<TextView
|
||||
tools:text="Sample name"
|
||||
android:id="@+id/author"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
@@ -64,7 +75,8 @@
|
||||
android:paddingLeft="8dp"
|
||||
android:paddingRight="8dp"
|
||||
android:textColor="@color/hint_text"
|
||||
android:textSize="13sp" />
|
||||
android:textSize="13sp"
|
||||
tools:text="Sample name"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
@@ -64,7 +64,8 @@
|
||||
android:layout_above="@+id/relativeLayout"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_alignParentTop="true"/>
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_marginRight="30dp"/>
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/chapter_menu"
|
||||
@@ -72,10 +73,10 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentTop="true"
|
||||
android:gravity="center|end"
|
||||
android:layout_alignRight="@+id/chapter_title"
|
||||
android:layout_alignEnd="@+id/chapter_title"
|
||||
android:layout_alignBottom="@+id/relativeLayout"
|
||||
android:paddingBottom="18dp">
|
||||
android:paddingBottom="18dp"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_alignParentEnd="true">
|
||||
<ImageView
|
||||
android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
|
||||
Reference in New Issue
Block a user