|
@ -1,17 +1,20 @@ |
|
|
<?xml version="1.0" encoding="utf-8"?> |
|
|
<?xml version="1.0" encoding="utf-8"?> |
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" |
|
|
<android.support.design.widget.CoordinatorLayout |
|
|
|
|
|
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:layout_width="match_parent" |
|
|
android:layout_width="match_parent" |
|
|
android:layout_height="match_parent" |
|
|
android:layout_height="match_parent" |
|
|
android:background="@color/background" |
|
|
android:fitsSystemWindows="true" |
|
|
tools:context="gr.thmmy.mthmmy.activities.TopicActivity"> |
|
|
tools:context=".activities.MainActivity"> |
|
|
|
|
|
|
|
|
<ScrollView |
|
|
<ScrollView |
|
|
android:layout_width="match_parent" |
|
|
android:layout_width="match_parent" |
|
|
android:layout_height="match_parent" |
|
|
android:layout_height="match_parent" |
|
|
android:layout_alignParentTop="true" |
|
|
android:layout_gravity="top|start" |
|
|
android:layout_marginBottom="50dp" |
|
|
android:layout_marginBottom="50dp" |
|
|
|
|
|
android:background="@color/background" |
|
|
android:scrollbars="none" |
|
|
android:scrollbars="none" |
|
|
tools:context="gr.thmmy.mthmmy.activities.TopicActivity"> |
|
|
tools:context="gr.thmmy.mthmmy.activities.TopicActivity"> |
|
|
|
|
|
|
|
@ -27,26 +30,20 @@ |
|
|
|
|
|
|
|
|
</ScrollView> |
|
|
</ScrollView> |
|
|
|
|
|
|
|
|
<FrameLayout |
|
|
<LinearLayout |
|
|
android:id="@+id/bottom_navigation_bar" |
|
|
android:id="@+id/bottom_navigation_bar" |
|
|
android:layout_width="match_parent" |
|
|
android:layout_width="match_parent" |
|
|
android:layout_height="50dp" |
|
|
android:layout_height="50dp" |
|
|
android:layout_alignParentBottom="true" |
|
|
android:layout_gravity="bottom|end" |
|
|
android:layout_marginTop="-2dp" |
|
|
android:layout_marginTop="-2dp" |
|
|
android:elevation="8dp" |
|
|
app:elevation="8dp"> |
|
|
android:outlineProvider="bounds"> |
|
|
|
|
|
|
|
|
|
|
|
<LinearLayout |
|
|
|
|
|
android:id="@+id/bottom_navigation_bar_content" |
|
|
|
|
|
android:layout_width="match_parent" |
|
|
|
|
|
android:layout_height="match_parent" |
|
|
|
|
|
android:background="@color/primary_dark" |
|
|
|
|
|
android:orientation="horizontal"> |
|
|
|
|
|
|
|
|
|
|
|
<ImageButton |
|
|
<ImageButton |
|
|
android:id="@+id/page_first_button" |
|
|
android:id="@+id/page_first_button" |
|
|
android:layout_width="wrap_content" |
|
|
android:layout_width="wrap_content" |
|
|
android:layout_height="match_parent" |
|
|
android:layout_height="match_parent" |
|
|
|
|
|
android:layout_weight="0.8" |
|
|
|
|
|
android:background="@color/primary" |
|
|
android:contentDescription="@string/text_first" |
|
|
android:contentDescription="@string/text_first" |
|
|
app:srcCompat="@drawable/page_first"/> |
|
|
app:srcCompat="@drawable/page_first"/> |
|
|
|
|
|
|
|
@ -54,12 +51,14 @@ |
|
|
android:id="@+id/page_previous_button" |
|
|
android:id="@+id/page_previous_button" |
|
|
android:layout_width="wrap_content" |
|
|
android:layout_width="wrap_content" |
|
|
android:layout_height="match_parent" |
|
|
android:layout_height="match_parent" |
|
|
|
|
|
android:layout_weight="0.8" |
|
|
|
|
|
android:background="@color/primary" |
|
|
android:contentDescription="@string/text_previous" |
|
|
android:contentDescription="@string/text_previous" |
|
|
app:srcCompat="@drawable/page_previous"/> |
|
|
app:srcCompat="@drawable/page_previous"/> |
|
|
|
|
|
|
|
|
<TextView |
|
|
<TextView |
|
|
android:id="@+id/page_indicator" |
|
|
android:id="@+id/page_indicator" |
|
|
android:layout_width="0dp" |
|
|
android:layout_width="wrap_content" |
|
|
android:layout_height="match_parent" |
|
|
android:layout_height="match_parent" |
|
|
android:layout_gravity="center" |
|
|
android:layout_gravity="center" |
|
|
android:layout_weight="1" |
|
|
android:layout_weight="1" |
|
@ -73,6 +72,8 @@ |
|
|
android:id="@+id/page_next_button" |
|
|
android:id="@+id/page_next_button" |
|
|
android:layout_width="wrap_content" |
|
|
android:layout_width="wrap_content" |
|
|
android:layout_height="match_parent" |
|
|
android:layout_height="match_parent" |
|
|
|
|
|
android:layout_weight="0.8" |
|
|
|
|
|
android:background="@color/primary" |
|
|
android:contentDescription="@string/text_next" |
|
|
android:contentDescription="@string/text_next" |
|
|
app:srcCompat="@drawable/page_next"/> |
|
|
app:srcCompat="@drawable/page_next"/> |
|
|
|
|
|
|
|
@ -80,6 +81,8 @@ |
|
|
android:id="@+id/page_last_button" |
|
|
android:id="@+id/page_last_button" |
|
|
android:layout_width="wrap_content" |
|
|
android:layout_width="wrap_content" |
|
|
android:layout_height="match_parent" |
|
|
android:layout_height="match_parent" |
|
|
|
|
|
android:layout_weight="0.8" |
|
|
|
|
|
android:background="@color/primary" |
|
|
android:contentDescription="@string/text_last" |
|
|
android:contentDescription="@string/text_last" |
|
|
app:srcCompat="@drawable/page_last"/> |
|
|
app:srcCompat="@drawable/page_last"/> |
|
|
|
|
|
|
|
@ -87,17 +90,15 @@ |
|
|
android:layout_width="80dp" |
|
|
android:layout_width="80dp" |
|
|
android:layout_height="match_parent"/> |
|
|
android:layout_height="match_parent"/> |
|
|
</LinearLayout> |
|
|
</LinearLayout> |
|
|
</FrameLayout> |
|
|
|
|
|
|
|
|
|
|
|
<android.support.design.widget.FloatingActionButton |
|
|
<android.support.design.widget.FloatingActionButton |
|
|
android:id="@+id/fab" |
|
|
android:id="@+id/fab" |
|
|
android:layout_width="wrap_content" |
|
|
android:layout_width="wrap_content" |
|
|
android:layout_height="wrap_content" |
|
|
android:layout_height="wrap_content" |
|
|
android:layout_alignParentBottom="true" |
|
|
|
|
|
android:layout_alignParentEnd="true" |
|
|
|
|
|
android:layout_gravity="bottom|end" |
|
|
android:layout_gravity="bottom|end" |
|
|
android:layout_margin="@dimen/fab_margin" |
|
|
android:layout_margin="@dimen/fab_margin" |
|
|
android:elevation="12dp" |
|
|
app:elevation="12dp" |
|
|
|
|
|
app:layout_behavior="gr.thmmy.mthmmy.utils.ScrollAwareFABBehavior" |
|
|
app:srcCompat="@drawable/ic_add_fab"/> |
|
|
app:srcCompat="@drawable/ic_add_fab"/> |
|
|
|
|
|
|
|
|
<ProgressBar |
|
|
<ProgressBar |
|
@ -107,6 +108,6 @@ |
|
|
android:layout_centerHorizontal="true" |
|
|
android:layout_centerHorizontal="true" |
|
|
android:layout_centerVertical="true" |
|
|
android:layout_centerVertical="true" |
|
|
android:visibility="invisible"/> |
|
|
android:visibility="invisible"/> |
|
|
</RelativeLayout> |
|
|
</android.support.design.widget.CoordinatorLayout> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|