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

87 lines
2.9 KiB
XML
Raw Normal View History

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"
2019-02-28 23:16:50 +01:00
tools:context="info.nightscout.androidaps.plugins.treatments.fragments.TreatmentsExtendedBolusesFragment">
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"
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"
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>