AndroidAPS/app/src/main/res/layout/activity_profilehelper.xml

263 lines
11 KiB
XML
Raw Normal View History

2020-07-06 21:14:00 +02:00
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
2020-07-14 16:51:13 +02:00
xmlns:app="http://schemas.android.com/apk/res-auto"
2020-07-06 21:14:00 +02:00
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
2020-07-16 17:30:04 +02:00
tools:context=".activities.ProfileHelperActivity">
2020-07-06 21:14:00 +02:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
2020-12-25 14:42:39 +01:00
<info.nightscout.androidaps.utils.ui.SingleClickButton
2020-07-14 16:51:13 +02:00
android:id="@+id/profilehelper_compareprofile"
2020-12-25 14:42:39 +01:00
style="?android:attr/buttonStyle"
2020-07-06 21:14:00 +02:00
android:layout_width="match_parent"
2020-07-14 16:51:13 +02:00
android:layout_height="wrap_content"
android:drawableStart="@drawable/ic_compare_profiles"
2020-07-14 16:51:13 +02:00
android:text="@string/comapareprofile" />
2020-07-06 21:14:00 +02:00
2020-07-14 16:51:13 +02:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
android:background="@color/defaultbackground"
android:orientation="horizontal">
<TextView
android:id="@+id/profilehelper_menu1"
android:layout_width="0dp"
android:layout_height="30dp"
android:layout_weight="1"
android:gravity="center"
android:paddingLeft="5dp"
android:paddingRight="5dp"
android:text="1" />
<TextView
android:id="@+id/profilehelper_menu2"
android:layout_width="0dp"
android:layout_height="30dp"
android:layout_weight="1"
android:gravity="center"
android:paddingLeft="5dp"
android:paddingRight="5dp"
android:text="2" />
</LinearLayout>
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/profilehelper_profiletype_title"
2020-12-25 14:42:39 +01:00
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
2020-07-14 16:51:13 +02:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/profiletype"
android:textColorHint="@color/tabBgColorSelected"
app:boxStrokeColor="@color/tabBgColorSelected">
2020-07-06 21:14:00 +02:00
2020-07-14 16:51:13 +02:00
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/profilehelper_profiletype"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
android:clickable="true"
android:cursorVisible="false"
android:focusable="false"
android:focusableInTouchMode="false"
android:importantForAutofill="no" />
</com.google.android.material.textfield.TextInputLayout>
<LinearLayout
android:id="@+id/profilehelper_default_profile"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
2020-07-06 21:14:00 +02:00
2020-07-14 16:51:13 +02:00
<TableLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TableRow
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:id="@+id/profilehelper_age_label"
android:layout_width="150dp"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:labelFor="@+id/profilehelper_age"
android:text="@string/age"
android:textAppearance="@style/TextAppearance.AppCompat.Medium" />
2020-07-27 21:11:57 +02:00
<info.nightscout.androidaps.utils.ui.NumberPicker
2020-07-14 16:51:13 +02:00
android:id="@+id/profilehelper_age"
android:layout_width="130dp"
android:layout_height="40dp" />
</TableRow>
<TableRow
android:id="@+id/profilehelper_tdd_row"
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:id="@+id/profilehelper_tdd_label"
android:layout_width="150dp"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:labelFor="@+id/profilehelper_weight"
android:text="@string/tdd_total"
android:textAppearance="@style/TextAppearance.AppCompat.Medium" />
2020-07-27 21:11:57 +02:00
<info.nightscout.androidaps.utils.ui.NumberPicker
2020-07-14 16:51:13 +02:00
android:id="@+id/profilehelper_tdd"
android:layout_width="130dp"
android:layout_height="40dp" />
</TableRow>
<TableRow
android:id="@+id/profilehelper_weight_row"
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:id="@+id/profilehelper_weigth_label"
android:layout_width="150dp"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:labelFor="@+id/profilehelper_weight"
android:text="@string/weight_label"
android:textAppearance="@style/TextAppearance.AppCompat.Medium" />
2020-07-27 21:11:57 +02:00
<info.nightscout.androidaps.utils.ui.NumberPicker
2020-07-14 16:51:13 +02:00
android:id="@+id/profilehelper_weight"
android:layout_width="130dp"
android:layout_height="40dp" />
</TableRow>
2020-07-16 17:30:04 +02:00
<TableRow
android:id="@+id/profilehelper_basalpctfromtdd_row"
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:id="@+id/profilehelper_basalpctfromtdd_label"
android:layout_width="150dp"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:labelFor="@+id/profilehelper_basalpctfromtdd"
android:text="@string/basalpctfromtdd_label"
android:textAppearance="@style/TextAppearance.AppCompat.Medium" />
2020-07-27 21:11:57 +02:00
<info.nightscout.androidaps.utils.ui.NumberPicker
2020-07-16 17:30:04 +02:00
android:id="@+id/profilehelper_basalpctfromtdd"
android:layout_width="130dp"
android:layout_height="40dp" />
</TableRow>
2020-07-14 16:51:13 +02:00
</TableLayout>
<TextView
android:id="@+id/profilehelper_tdds"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:textAppearance="@style/TextAppearance.AppCompat.Small" />
2020-12-25 14:42:39 +01:00
<info.nightscout.androidaps.utils.ui.SingleClickButton
2020-07-14 16:51:13 +02:00
android:id="@+id/profilehelper_copytolocalprofile"
2020-12-25 14:42:39 +01:00
style="?android:attr/buttonStyle"
2020-07-14 16:51:13 +02:00
android:layout_width="match_parent"
2020-12-25 14:42:39 +01:00
android:layout_height="wrap_content"
2020-07-14 16:51:13 +02:00
android:drawableStart="@drawable/ic_clone_48"
android:text="@string/clone_label" />
2020-07-06 21:14:00 +02:00
2020-07-14 16:51:13 +02:00
</LinearLayout>
2020-07-06 21:14:00 +02:00
2020-07-14 16:51:13 +02:00
<LinearLayout
android:id="@+id/profilehelper_current_profile"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
2020-07-06 21:14:00 +02:00
2020-07-14 16:51:13 +02:00
<TextView
android:id="@+id/profilehelper_current_profile_text"
android:layout_width="150dp"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:textAppearance="@style/TextAppearance.AppCompat.Medium" />
2020-07-06 21:14:00 +02:00
2020-07-14 16:51:13 +02:00
</LinearLayout>
2020-07-06 21:14:00 +02:00
2020-07-14 16:51:13 +02:00
<LinearLayout
android:id="@+id/profilehelper_available_profile"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
2020-07-06 21:14:00 +02:00
2020-07-14 16:51:13 +02:00
<com.google.android.material.textfield.TextInputLayout
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
2020-07-06 21:14:00 +02:00
android:layout_width="match_parent"
2020-07-14 16:51:13 +02:00
android:layout_height="wrap_content"
android:hint="@string/selected_profile"
android:textColorHint="@color/white"
app:boxStrokeColor="@color/white">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/profilehelper_available_profile_list"
android:layout_width="match_parent"
2020-07-06 21:14:00 +02:00
android:layout_height="wrap_content"
2020-07-14 16:51:13 +02:00
android:layout_marginBottom="10dp"
android:clickable="true"
android:cursorVisible="false"
android:focusable="false"
android:focusableInTouchMode="false"
android:importantForAutofill="no" />
2020-07-06 21:14:00 +02:00
2020-07-14 16:51:13 +02:00
</com.google.android.material.textfield.TextInputLayout>
2020-07-06 21:14:00 +02:00
2020-07-14 16:51:13 +02:00
</LinearLayout>
2020-07-06 21:14:00 +02:00
2020-07-14 16:51:13 +02:00
<LinearLayout
android:id="@+id/profilehelper_profile_switch"
2020-07-06 21:14:00 +02:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2020-07-14 16:51:13 +02:00
android:orientation="vertical">
<com.google.android.material.textfield.TextInputLayout
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/careportal_profileswitch"
android:textColorHint="@color/white"
app:boxStrokeColor="@color/white">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/profilehelper_profileswitch_list"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
android:clickable="true"
android:cursorVisible="false"
android:focusable="false"
android:focusableInTouchMode="false"
android:importantForAutofill="no" />
</com.google.android.material.textfield.TextInputLayout>
2020-07-06 21:14:00 +02:00
2020-07-14 16:51:13 +02:00
</LinearLayout>
2020-07-06 21:14:00 +02:00
</LinearLayout>
</ScrollView>