mirror of
https://codeberg.org/comaps/comaps
synced 2026-01-09 22:04:43 +00:00
Signed-off-by: Jean-Baptiste <jeanbaptiste.charron@outlook.fr> Co-authored by: Séverin Lemaignan <severin@guakamole.org>
77 lines
3.1 KiB
XML
77 lines
3.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:padding="20dp"
|
|
android:baselineAligned="false">
|
|
|
|
<!-- Left Side: Icon Grid -->
|
|
<ScrollView
|
|
android:layout_width="0dp"
|
|
android:layout_weight="2"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="top"
|
|
android:scrollbarFadeDuration="0"
|
|
android:verticalScrollbarPosition="left">
|
|
<GridLayout
|
|
android:id="@+id/edit_socket_type_grid"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:columnCount="3"
|
|
android:paddingEnd="16dp"/>
|
|
</ScrollView>
|
|
|
|
<!-- Right Side: Input Fields -->
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:layout_gravity="top"
|
|
android:orientation="vertical">
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
android:id="@+id/edit_socket_power_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="8dp"
|
|
style="@style/Widget.Material3.TextInputLayout.OutlinedBox"
|
|
android:hint="@string/charge_socket_power">
|
|
|
|
<com.google.android.material.textfield.MaterialAutoCompleteTextView
|
|
android:id="@+id/edit_socket_power"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:completionThreshold="1"
|
|
android:gravity="center|end"
|
|
android:minHeight="35dp"
|
|
android:paddingEnd="@dimen/margin_half"
|
|
android:inputType="numberDecimal"
|
|
app:simpleItems="@array/charge_sockets_common_powers" />
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
<com.google.android.material.textfield.TextInputLayout
|
|
android:id="@+id/edit_socket_count_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
style="@style/Widget.Material3.TextInputLayout.OutlinedBox"
|
|
android:hint="@string/charge_socket_count">
|
|
|
|
<com.google.android.material.textfield.MaterialAutoCompleteTextView
|
|
android:id="@+id/edit_socket_count"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:completionThreshold="1"
|
|
android:gravity="center|end"
|
|
android:minHeight="35dp"
|
|
android:paddingEnd="@dimen/margin_half"
|
|
android:inputType="numberDecimal"
|
|
app:simpleItems="@array/charge_sockets_common_counts" />
|
|
</com.google.android.material.textfield.TextInputLayout>
|
|
|
|
</LinearLayout>
|
|
</LinearLayout>
|