161 lines
6.5 KiB
XML
161 lines
6.5 KiB
XML
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
tools:context=".plugins.ProfileLocal.LocalProfileFragment">
|
|
|
|
<ScrollView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:id="@+id/invalidprofile"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_horizontal"
|
|
android:text="@string/invalidprofile"
|
|
android:textAppearance="?android:attr/textAppearanceLarge"
|
|
android:textColor="@android:color/holo_red_light"
|
|
android:textStyle="bold" />
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="@color/linearBlockBackground"
|
|
android:layout_marginLeft="10px"
|
|
android:text="@string/units"
|
|
android:textAppearance="?android:attr/textAppearanceMedium" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:gravity="center_horizontal"
|
|
android:orientation="horizontal">
|
|
|
|
<RadioButton
|
|
android:id="@+id/localprofile_mgdl"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/mgdl" />
|
|
|
|
<RadioButton
|
|
android:id="@+id/localprofile_mmol"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/mmol" />
|
|
|
|
</LinearLayout>
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="@color/linearBlockBackground"
|
|
android:layout_marginLeft="10px"
|
|
android:text="@string/dia"
|
|
android:textAppearance="?android:attr/textAppearanceMedium" />
|
|
|
|
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_horizontal"
|
|
android:orientation="horizontal"
|
|
android:paddingTop="5dp"
|
|
android:textAppearance="?android:attr/textAppearanceSmall">
|
|
|
|
<!-- dummy to align with TimeListEdits added dynamically -->
|
|
<Spinner
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:layout_marginRight="10dp"
|
|
android:minWidth="80dp"
|
|
android:visibility="invisible"/>
|
|
|
|
<info.nightscout.utils.NumberPicker
|
|
android:id="@+id/localprofile_dia"
|
|
android:layout_width="130dp"
|
|
android:layout_height="40dp"
|
|
android:layout_marginRight="5dp"
|
|
android:layout_marginBottom="10dp"/>
|
|
|
|
<!-- dummy to align with TimeListEdits added dynamically -->
|
|
<ImageView
|
|
android:id="@+id/timelistedit_add"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_marginLeft="15dp"
|
|
android:src="@drawable/add"
|
|
android:visibility="invisible"/>
|
|
|
|
<!-- dummy to align with TimeListEdits added dynamically -->
|
|
<ImageView
|
|
android:id="@+id/timelistedit_remove"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_marginLeft="15dp"
|
|
android:src="@drawable/remove"
|
|
android:visibility="invisible"/>
|
|
</LinearLayout>
|
|
|
|
|
|
<LinearLayout
|
|
android:id="@+id/localprofile_ic"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_marginBottom="10dp"
|
|
android:orientation="vertical" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/localprofile_isf"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_marginBottom="10dp"
|
|
android:orientation="vertical" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/localprofile_basal"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_marginBottom="10dp"
|
|
android:orientation="vertical" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/localprofile_target"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_marginBottom="10dp"
|
|
android:orientation="vertical">
|
|
|
|
</LinearLayout>
|
|
|
|
<Button
|
|
android:id="@+id/localprofile_profileswitch"
|
|
style="?android:attr/buttonStyle"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_horizontal"
|
|
android:layout_marginBottom="3dp"
|
|
android:layout_marginLeft="10dp"
|
|
android:layout_marginRight="10dp"
|
|
android:layout_marginTop="3dp"
|
|
android:layout_weight="1"
|
|
android:paddingLeft="10dp"
|
|
android:paddingRight="10dp"
|
|
android:text="@string/activate_profile"
|
|
android:textColor="@color/colorProfileSwitchButton" />
|
|
|
|
</LinearLayout>
|
|
</ScrollView>
|
|
|
|
|
|
</FrameLayout>
|