1<?xml version="1.0" encoding="utf-8"?>
2<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
3 xmlns:app="http://schemas.android.com/apk/res-auto"
4 xmlns:tools="http://schemas.android.com/tools"
5 android:id="@+id/main"
6 android:layout_height="match_parent"
7 android:layout_width="match_parent">
8
9 <LinearLayout
10 android:fitsSystemWindows="true"
11 android:layout_width="match_parent"
12 android:layout_height="match_parent"
13 android:orientation="vertical"
14 android:layout_marginEnd="4dp"
15 tools:context=".MainActivity">
16
17 <ScrollView
18 android:layout_width="match_parent"
19 android:layout_height="0dp"
20 android:layout_weight="1"
21 android:fadeScrollbars="false">
22
23 <TextView
24 android:id="@+id/gguf"
25 android:layout_width="match_parent"
26 android:layout_height="wrap_content"
27 android:padding="16dp"
28 android:text="Selected GGUF model's metadata will show here."
29 style="@style/TextAppearance.MaterialComponents.Body2" />
30
31 </ScrollView>
32
33 <com.google.android.material.divider.MaterialDivider
34 android:layout_width="match_parent"
35 android:layout_height="2dp"
36 android:layout_marginHorizontal="16dp" />
37
38 <androidx.recyclerview.widget.RecyclerView
39 android:id="@+id/messages"
40 android:layout_width="match_parent"
41 android:layout_height="0dp"
42 android:layout_weight="4"
43 android:fadeScrollbars="false"
44 android:scrollbars="vertical"
45 app:reverseLayout="true"
46 tools:listitem="@layout/item_message_assistant"/>
47
48 <LinearLayout
49 android:layout_width="match_parent"
50 android:layout_height="wrap_content"
51 android:orientation="horizontal"
52 android:paddingStart="16dp"
53 android:paddingEnd="4dp">
54
55 <EditText
56 android:id="@+id/user_input"
57 android:enabled="false"
58 android:layout_width="0dp"
59 android:layout_weight="1"
60 android:layout_height="match_parent"
61 android:padding="8dp"
62 style="@style/TextAppearance.MaterialComponents.Body2"
63 android:hint="Please first pick a GGUF model file to import." />
64
65 <com.google.android.material.floatingactionbutton.FloatingActionButton
66 android:id="@+id/fab"
67 android:enabled="true"
68 style="@style/Widget.Material3.FloatingActionButton.Primary"
69 android:layout_width="wrap_content"
70 android:layout_height="wrap_content"
71 android:layout_margin="12dp"
72 android:src="@drawable/outline_folder_open_24" />
73
74 </LinearLayout>
75
76 </LinearLayout>
77</androidx.constraintlayout.widget.ConstraintLayout>