2021-01-25 11:35:36 +01:00
|
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2017-10-17 20:55:23 +02:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2021-01-25 11:35:36 +01:00
|
|
|
android:orientation="vertical"
|
2021-03-19 18:49:34 +01:00
|
|
|
tools:context="info.nightscout.androidaps.plugins.general.food.TreatmentsFoodFragment">
|
|
|
|
|
|
|
|
<info.nightscout.androidaps.utils.ui.SingleClickButton
|
|
|
|
android:id="@+id/refresh_from_nightscout"
|
|
|
|
style="?android:attr/buttonStyle"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
android:drawableStart="@drawable/ic_refresh"
|
|
|
|
android:text="@string/refresheventsfromnightscout"
|
|
|
|
tools:visibility="visible" />
|
2017-10-17 20:55:23 +02:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
2021-01-25 11:35:36 +01:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="horizontal">
|
2017-10-17 20:55:23 +02:00
|
|
|
|
2021-01-25 11:35:36 +01:00
|
|
|
<ImageView
|
|
|
|
android:layout_width="wrap_content"
|
2017-10-17 20:55:23 +02:00
|
|
|
android:layout_height="wrap_content"
|
2021-01-25 11:35:36 +01:00
|
|
|
android:contentDescription="@string/filter"
|
|
|
|
android:paddingLeft="5dp"
|
|
|
|
android:paddingRight="5dp"
|
|
|
|
app:srcCompat="@android:drawable/ic_menu_search" />
|
|
|
|
|
|
|
|
<EditText
|
|
|
|
android:id="@+id/filter"
|
|
|
|
android:layout_width="0dp"
|
2017-10-17 20:55:23 +02:00
|
|
|
android:layout_height="wrap_content"
|
2021-01-25 11:35:36 +01:00
|
|
|
android:layout_weight="1"
|
|
|
|
android:autofillHints="@string/filter"
|
|
|
|
android:ems="10"
|
|
|
|
android:inputType="text"
|
|
|
|
android:text="" />
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/clearfilter"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:contentDescription="@string/clear_filter"
|
|
|
|
android:paddingLeft="5dp"
|
|
|
|
android:paddingRight="5dp"
|
|
|
|
app:srcCompat="@android:drawable/ic_menu_close_clear_cancel" />
|
|
|
|
</LinearLayout>
|
2017-10-17 20:55:23 +02:00
|
|
|
|
2021-01-25 11:35:36 +01:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginBottom="5dp"
|
|
|
|
android:orientation="horizontal">
|
2017-10-17 20:55:23 +02:00
|
|
|
|
2021-01-25 11:35:36 +01:00
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2021-03-19 18:49:34 +01:00
|
|
|
android:layout_marginEnd="5dp"
|
2021-01-25 11:35:36 +01:00
|
|
|
android:text="@string/category" />
|
2017-10-17 20:55:23 +02:00
|
|
|
|
2021-01-25 11:35:36 +01:00
|
|
|
<Spinner
|
|
|
|
android:id="@+id/category"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:gravity="end"
|
|
|
|
android:minWidth="100dp" />
|
2017-10-17 20:55:23 +02:00
|
|
|
|
2021-01-25 11:35:36 +01:00
|
|
|
<TextView
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="1" />
|
2017-10-17 20:55:23 +02:00
|
|
|
|
2021-01-25 11:35:36 +01:00
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2021-03-19 18:49:34 +01:00
|
|
|
android:layout_marginEnd="5dp"
|
2021-01-25 11:35:36 +01:00
|
|
|
android:text="@string/subcategory" />
|
2017-10-17 20:55:23 +02:00
|
|
|
|
2021-01-25 11:35:36 +01:00
|
|
|
<Spinner
|
|
|
|
android:id="@+id/subcategory"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:gravity="end"
|
|
|
|
android:minWidth="100dp" />
|
2017-10-17 20:55:23 +02:00
|
|
|
|
2021-01-25 11:35:36 +01:00
|
|
|
</LinearLayout>
|
2017-10-17 20:55:23 +02:00
|
|
|
|
2021-01-25 11:35:36 +01:00
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
android:id="@+id/recyclerview"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent">
|
2017-10-17 20:55:23 +02:00
|
|
|
|
2021-01-25 11:35:36 +01:00
|
|
|
</androidx.recyclerview.widget.RecyclerView>
|
2017-10-17 20:55:23 +02:00
|
|
|
|
2021-01-25 11:35:36 +01:00
|
|
|
</LinearLayout>
|