wangzhibo
4 天以前 ae6f40460dcd56af6c5f60ba52c883854c3bac55
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    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"
    tools:context=".devices.qhybrid.WidgetSettingsActivity">
 
    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent">
 
        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:orientation="vertical"
            android:weightSum="1">
 
            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="widget name" />
 
            <EditText
                android:id="@+id/qhybrid_widget_name"
                android:layout_width="match_parent"
                android:layout_height="wrap_content" />
 
            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="elements" />
 
            <ListView
                android:id="@+id/qhybrid_widget_elements_list"
                android:layout_width="match_parent"
                android:layout_height="0dp"
                android:layout_weight="0.4" />
 
            <Button
                android:id="@+id/qhybrid_widget_elements_add"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:text="add element" />
 
        </LinearLayout>
 
        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_alignParentBottom="true"
            android:weightSum="1">
 
 
            <Button
                android:id="@+id/qhybrid_widget_delete"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:text="delete"
                android:layout_weight="0.5" />
 
            <Button
                android:id="@+id/qhybrid_widget_save"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:text="save"
                android:layout_weight="0.5" />
 
        </LinearLayout>
 
    </RelativeLayout>
 
</androidx.constraintlayout.widget.ConstraintLayout>