|
@ -1,6 +1,5 @@ |
|
|
<?xml version="1.0" encoding="utf-8"?> |
|
|
<?xml version="1.0" encoding="utf-8"?> |
|
|
<android.support.design.widget.CoordinatorLayout |
|
|
<android.support.design.widget.CoordinatorLayout 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/main_content" |
|
|
android:id="@+id/main_content" |
|
@ -9,6 +8,10 @@ |
|
|
android:fitsSystemWindows="true" |
|
|
android:fitsSystemWindows="true" |
|
|
tools:context=".activities.topic.TopicActivity"> |
|
|
tools:context=".activities.topic.TopicActivity"> |
|
|
|
|
|
|
|
|
|
|
|
<RelativeLayout |
|
|
|
|
|
android:layout_width="match_parent" |
|
|
|
|
|
android:layout_height="match_parent" > |
|
|
|
|
|
|
|
|
<android.support.design.widget.AppBarLayout |
|
|
<android.support.design.widget.AppBarLayout |
|
|
android:id="@+id/appbar" |
|
|
android:id="@+id/appbar" |
|
|
android:layout_width="match_parent" |
|
|
android:layout_width="match_parent" |
|
@ -28,33 +31,41 @@ |
|
|
android:id="@+id/toolbar_title" |
|
|
android:id="@+id/toolbar_title" |
|
|
android:layout_width="match_parent" |
|
|
android:layout_width="match_parent" |
|
|
android:layout_height="wrap_content" |
|
|
android:layout_height="wrap_content" |
|
|
android:textColor="@color/white" |
|
|
android:textColor="@color/white" /> |
|
|
/> |
|
|
|
|
|
</android.support.v7.widget.Toolbar> |
|
|
</android.support.v7.widget.Toolbar> |
|
|
</android.support.design.widget.AppBarLayout> |
|
|
</android.support.design.widget.AppBarLayout> |
|
|
|
|
|
|
|
|
<android.support.v7.widget.RecyclerView |
|
|
<android.support.v7.widget.RecyclerView |
|
|
android:id="@+id/topic_recycler_view" |
|
|
android:id="@+id/topic_recycler_view" |
|
|
android:layout_width="match_parent" |
|
|
android:layout_width="match_parent" |
|
|
android:layout_height="match_parent" |
|
|
android:layout_height="wrap_content" |
|
|
android:layout_gravity="top|start" |
|
|
android:layout_gravity="top|start" |
|
|
|
|
|
android:layout_below="@id/appbar" |
|
|
|
|
|
android:layout_above="@id/emoji_keyboard" |
|
|
android:background="@color/background" |
|
|
android:background="@color/background" |
|
|
android:paddingTop="4dp" |
|
|
|
|
|
android:paddingBottom="4dp" |
|
|
|
|
|
android:clipToPadding="false" |
|
|
android:clipToPadding="false" |
|
|
|
|
|
android:paddingBottom="4dp" |
|
|
|
|
|
android:paddingTop="4dp" |
|
|
android:scrollbars="none" |
|
|
android:scrollbars="none" |
|
|
tools:context="gr.thmmy.mthmmy.activities.topic.TopicActivity" |
|
|
app:layout_behavior="@string/appbar_scrolling_view_behavior" |
|
|
app:layout_behavior="@string/appbar_scrolling_view_behavior"> |
|
|
tools:context="gr.thmmy.mthmmy.activities.topic.TopicActivity" /> |
|
|
</android.support.v7.widget.RecyclerView> |
|
|
|
|
|
|
|
|
<gr.thmmy.mthmmy.utils.EmojiKeyboard |
|
|
|
|
|
android:id="@+id/emoji_keyboard" |
|
|
|
|
|
android:layout_width="match_parent" |
|
|
|
|
|
android:layout_height="240dp" |
|
|
|
|
|
android:layout_alignParentBottom="true" |
|
|
|
|
|
android:visibility="gone"/> |
|
|
|
|
|
</RelativeLayout> |
|
|
|
|
|
|
|
|
<TextView |
|
|
<TextView |
|
|
android:id="@+id/error_textview" |
|
|
android:id="@+id/error_textview" |
|
|
android:layout_width="match_parent" |
|
|
android:layout_width="match_parent" |
|
|
android:layout_height="match_parent" |
|
|
android:layout_height="match_parent" |
|
|
|
|
|
android:gravity="center" |
|
|
android:text="@string/network_error_retry_prompt" |
|
|
android:text="@string/network_error_retry_prompt" |
|
|
android:textSize="32sp" |
|
|
|
|
|
android:textColor="@color/white" |
|
|
android:textColor="@color/white" |
|
|
android:gravity="center" |
|
|
android:textSize="32sp" |
|
|
android:visibility="gone" /> |
|
|
android:visibility="gone" /> |
|
|
|
|
|
|
|
|
<LinearLayout |
|
|
<LinearLayout |
|
@ -73,7 +84,7 @@ |
|
|
android:layout_weight="0.8" |
|
|
android:layout_weight="0.8" |
|
|
android:background="?attr/selectableItemBackgroundBorderless" |
|
|
android:background="?attr/selectableItemBackgroundBorderless" |
|
|
android:contentDescription="@string/button_first" |
|
|
android:contentDescription="@string/button_first" |
|
|
app:srcCompat="@drawable/page_first"/> |
|
|
app:srcCompat="@drawable/page_first" /> |
|
|
|
|
|
|
|
|
<ImageButton |
|
|
<ImageButton |
|
|
android:id="@+id/page_previous_button" |
|
|
android:id="@+id/page_previous_button" |
|
@ -82,7 +93,7 @@ |
|
|
android:layout_weight="0.8" |
|
|
android:layout_weight="0.8" |
|
|
android:background="?attr/selectableItemBackgroundBorderless" |
|
|
android:background="?attr/selectableItemBackgroundBorderless" |
|
|
android:contentDescription="@string/button_previous" |
|
|
android:contentDescription="@string/button_previous" |
|
|
app:srcCompat="@drawable/page_previous"/> |
|
|
app:srcCompat="@drawable/page_previous" /> |
|
|
|
|
|
|
|
|
<TextView |
|
|
<TextView |
|
|
android:id="@+id/page_indicator" |
|
|
android:id="@+id/page_indicator" |
|
@ -94,7 +105,7 @@ |
|
|
android:hint="@string/button_page" |
|
|
android:hint="@string/button_page" |
|
|
android:maxLines="1" |
|
|
android:maxLines="1" |
|
|
android:textColor="@color/white" |
|
|
android:textColor="@color/white" |
|
|
android:textSize="22sp"/> |
|
|
android:textSize="22sp" /> |
|
|
|
|
|
|
|
|
<ImageButton |
|
|
<ImageButton |
|
|
android:id="@+id/page_next_button" |
|
|
android:id="@+id/page_next_button" |
|
@ -103,7 +114,7 @@ |
|
|
android:layout_weight="0.8" |
|
|
android:layout_weight="0.8" |
|
|
android:background="?attr/selectableItemBackgroundBorderless" |
|
|
android:background="?attr/selectableItemBackgroundBorderless" |
|
|
android:contentDescription="@string/button_next" |
|
|
android:contentDescription="@string/button_next" |
|
|
app:srcCompat="@drawable/page_next"/> |
|
|
app:srcCompat="@drawable/page_next" /> |
|
|
|
|
|
|
|
|
<ImageButton |
|
|
<ImageButton |
|
|
android:id="@+id/page_last_button" |
|
|
android:id="@+id/page_last_button" |
|
@ -112,7 +123,7 @@ |
|
|
android:layout_weight="0.8" |
|
|
android:layout_weight="0.8" |
|
|
android:background="?attr/selectableItemBackgroundBorderless" |
|
|
android:background="?attr/selectableItemBackgroundBorderless" |
|
|
android:contentDescription="@string/button_last" |
|
|
android:contentDescription="@string/button_last" |
|
|
app:srcCompat="@drawable/page_last"/> |
|
|
app:srcCompat="@drawable/page_last" /> |
|
|
</LinearLayout> |
|
|
</LinearLayout> |
|
|
|
|
|
|
|
|
<me.zhanghai.android.materialprogressbar.MaterialProgressBar |
|
|
<me.zhanghai.android.materialprogressbar.MaterialProgressBar |
|
@ -125,7 +136,7 @@ |
|
|
app:layout_anchor="@id/appbar" |
|
|
app:layout_anchor="@id/appbar" |
|
|
app:layout_anchorGravity="bottom|center" |
|
|
app:layout_anchorGravity="bottom|center" |
|
|
app:mpb_indeterminateTint="@color/accent" |
|
|
app:mpb_indeterminateTint="@color/accent" |
|
|
app:mpb_progressStyle="horizontal"/> |
|
|
app:mpb_progressStyle="horizontal" /> |
|
|
|
|
|
|
|
|
<android.support.design.widget.FloatingActionButton |
|
|
<android.support.design.widget.FloatingActionButton |
|
|
android:id="@+id/topic_fab" |
|
|
android:id="@+id/topic_fab" |
|
@ -135,7 +146,7 @@ |
|
|
android:layout_marginBottom="50dp" |
|
|
android:layout_marginBottom="50dp" |
|
|
android:layout_marginEnd="@dimen/fab_margins" |
|
|
android:layout_marginEnd="@dimen/fab_margins" |
|
|
app:layout_behavior="gr.thmmy.mthmmy.utils.ScrollAwareFABBehavior" |
|
|
app:layout_behavior="gr.thmmy.mthmmy.utils.ScrollAwareFABBehavior" |
|
|
app:srcCompat="@drawable/ic_reply"/> |
|
|
app:srcCompat="@drawable/ic_reply" /> |
|
|
</android.support.design.widget.CoordinatorLayout> |
|
|
</android.support.design.widget.CoordinatorLayout> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|