fedilab-Android-App/app/src/main/res/layout/activity_ower_charts.xml

87 lines
3.0 KiB
XML
Raw Normal View History

2019-07-28 15:55:25 +02:00
<?xml version="1.0" encoding="utf-8"?>
2019-11-15 16:32:25 +01:00
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
2019-07-28 15:55:25 +02:00
android:layout_height="match_parent"
2019-11-15 16:32:25 +01:00
android:orientation="vertical">
2019-09-06 17:55:14 +02:00
2019-07-29 14:48:53 +02:00
<LinearLayout
2019-11-07 18:57:05 +01:00
2019-11-15 16:32:25 +01:00
android:id="@+id/date_container"
2019-07-28 15:55:25 +02:00
android:layout_width="match_parent"
2019-07-29 14:48:53 +02:00
android:layout_height="wrap_content"
android:layout_gravity="center"
android:gravity="center"
2019-11-15 16:32:25 +01:00
android:orientation="horizontal"
android:paddingBottom="10dp">
2019-09-06 17:55:14 +02:00
2019-07-29 14:48:53 +02:00
<TextView
android:layout_width="wrap_content"
2019-11-15 16:32:25 +01:00
android:layout_height="wrap_content"
android:text="@string/settings_time_from" />
2019-09-06 17:55:14 +02:00
2019-07-29 14:48:53 +02:00
<Button
android:id="@+id/settings_time_from"
android:layout_width="wrap_content"
2019-11-15 16:32:25 +01:00
android:layout_height="wrap_content"
2019-09-06 17:55:14 +02:00
2019-07-29 14:48:53 +02:00
android:layout_marginStart="10dp"
2019-11-15 16:32:25 +01:00
android:focusableInTouchMode="false" />
<TextView
2019-07-29 14:48:53 +02:00
android:layout_width="wrap_content"
2019-11-15 16:32:25 +01:00
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:text="@string/settings_time_to" />
2019-09-06 17:55:14 +02:00
2019-07-29 14:48:53 +02:00
<Button
android:id="@+id/settings_time_to"
android:layout_width="wrap_content"
2019-11-15 16:32:25 +01:00
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:focusableInTouchMode="false" />
2019-09-06 17:55:14 +02:00
2019-07-29 17:03:36 +02:00
<ImageButton
android:id="@+id/validate"
style="@style/Widget.AppCompat.Button.Colored"
android:layout_width="40dp"
android:layout_height="40dp"
2019-11-15 16:32:25 +01:00
android:contentDescription="@string/validate"
android:scaleType="centerCrop"
android:src="@drawable/ic_check_white_24" />
2019-07-29 14:48:53 +02:00
</LinearLayout>
2019-09-06 17:55:14 +02:00
2019-07-29 17:03:36 +02:00
<RelativeLayout
2019-07-29 14:48:53 +02:00
android:layout_width="match_parent"
2019-07-29 17:03:36 +02:00
android:layout_height="match_parent">
2019-09-06 17:55:14 +02:00
2019-07-29 17:03:36 +02:00
<RelativeLayout
android:id="@+id/loader"
android:layout_width="match_parent"
android:layout_height="match_parent"
2019-09-06 17:55:14 +02:00
android:gravity="center">
2019-07-29 17:03:36 +02:00
<TextView
android:id="@+id/text"
2019-11-15 16:32:25 +01:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-07-29 17:03:36 +02:00
android:layout_centerInParent="true"
android:gravity="center"
2019-11-15 16:32:25 +01:00
android:text="@string/collecting_data_wait" />
2019-09-06 17:55:14 +02:00
2019-07-29 17:03:36 +02:00
<ProgressBar
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2019-11-15 16:32:25 +01:00
android:layout_below="@+id/text"
android:layout_centerHorizontal="true"
2019-07-29 17:03:36 +02:00
android:indeterminate="true" />
</RelativeLayout>
2019-09-06 17:55:14 +02:00
2019-07-29 17:03:36 +02:00
<com.github.mikephil.charting.charts.LineChart
android:id="@+id/chart"
android:layout_width="match_parent"
2019-11-15 16:32:25 +01:00
android:layout_height="match_parent"
android:visibility="gone" />
2019-07-29 17:03:36 +02:00
</RelativeLayout>
2019-07-29 14:48:53 +02:00
</LinearLayout>