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