mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-12-11 19:27:50 +01:00
e89ba529c3
- replace the PagerTabStrip with a TabLayout (moved to top and scrollable) - move the date selection to the bottom - do not update the activity title as the tab name is much more visible now
60 lines
2.3 KiB
XML
60 lines
2.3 KiB
XML
<android.support.v4.widget.SwipeRefreshLayout 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:id="@+id/activity_swipe_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
tools:context="nodomain.freeyourgadget.gadgetbridge.activities.charts.ChartsActivity">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/charts_main_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical">
|
|
|
|
<android.support.v4.view.ViewPager
|
|
android:id="@+id/charts_pager"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:layout_weight="1"
|
|
tools:context="nodomain.freeyourgadget.gadgetbridge.activities.charts.ChartsActivity">
|
|
|
|
<android.support.design.widget.TabLayout
|
|
android:id="@+id/charts_pagerTabStrip"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="top"
|
|
app:tabMode="scrollable" />
|
|
</android.support.v4.view.ViewPager>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/charts_date_bar"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="fill_horizontal"
|
|
android:orientation="horizontal">
|
|
|
|
<Button
|
|
android:id="@+id/charts_previous"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="<" />
|
|
|
|
<TextView
|
|
android:id="@+id/charts_text_date"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_horizontal"
|
|
android:layout_weight="1"
|
|
android:text="Today" />
|
|
|
|
<Button
|
|
android:id="@+id/charts_next"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text=">" />
|
|
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</android.support.v4.widget.SwipeRefreshLayout>
|