Gadgetbridge/app/src/main/res/layout/activity_charts.xml

98 lines
3.8 KiB
XML
Raw Normal View History

<androidx.swiperefreshlayout.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">
<nodomain.freeyourgadget.gadgetbridge.activities.charts.NonSwipeableViewPager
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">
<com.google.android.material.tabs.TabLayout
android:id="@+id/charts_pagerTabStrip"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="top"
app:tabMode="scrollable" />
</nodomain.freeyourgadget.gadgetbridge.activities.charts.NonSwipeableViewPager>
2019-11-01 23:40:17 +01:00
<LinearLayout
android:id="@+id/charts_date_bar"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:gravity="fill_horizontal"
android:orientation="horizontal">
<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" />
</LinearLayout>
<LinearLayout
2019-11-01 23:40:17 +01:00
android:id="@+id/charts_date_button_bar"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:gravity="fill_horizontal"
android:orientation="horizontal">
<Button
2019-11-01 23:40:17 +01:00
android:id="@+id/charts_previous_month"
android:layout_width="wrap_content"
2019-11-01 23:40:17 +01:00
android:layout_weight="1"
android:layout_height="wrap_content"
2019-11-01 23:40:17 +01:00
android:text="&lt;&lt;&lt;" />
2019-11-01 23:40:17 +01:00
<Button
android:id="@+id/charts_previous_week"
android:layout_width="wrap_content"
android:layout_weight="1"
2019-11-01 23:40:17 +01:00
android:layout_height="wrap_content"
android:text="&lt;&lt;" />
<Button
2019-11-01 23:40:17 +01:00
android:id="@+id/charts_previous_day"
android:layout_width="wrap_content"
android:layout_weight="1"
android:layout_height="wrap_content"
android:text="&lt;" />
<Button
android:id="@+id/charts_next_day"
android:layout_width="wrap_content"
2019-11-01 23:40:17 +01:00
android:layout_weight="1"
android:layout_height="wrap_content"
android:text=">" />
2019-11-01 23:40:17 +01:00
<Button
android:id="@+id/charts_next_week"
android:layout_width="wrap_content"
android:layout_weight="1"
android:layout_height="wrap_content"
android:text=">>" />
<Button
android:id="@+id/charts_next_month"
android:layout_width="wrap_content"
android:layout_weight="1"
android:layout_height="wrap_content"
android:text=">>>" />
</LinearLayout>
</LinearLayout>
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>