settings.xml 2.3 KB
Newer Older
K
kevinkong 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:orientation="vertical" >

    <LinearLayout
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal" >

        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="@string/collect" />

        <!-- 允许输入数据为正整数 -->
        <!-- android:numeric="integer" -->

		<!--采集频率 -->
        <EditText
            android:id="@+id/time"
            android:layout_width="120dp"
            android:maxLength="5"
A
andrewleo2013 已提交
25 26
            android:layout_height="wrap_content"
            android:inputType="number" />
K
kevinkong 已提交
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

        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="@string/seconds" />
    </LinearLayout>

    <RelativeLayout
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:orientation="horizontal" >

        <TextView
            android:id="@+id/floating_Window"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="@string/window" />

        <CheckBox
            android:id="@+id/floating"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentRight="true" />
    </RelativeLayout>

    <RelativeLayout
        android:layout_width="fill_parent"
        android:layout_height="fill_parent" >

        <ScrollView
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:scrollbars="vertical" >
        </ScrollView>

        <Button
            android:id="@+id/save"
            android:layout_width="200dp"
            android:gravity="center_horizontal" 
            android:layout_height="wrap_content"
            android:layout_centerHorizontal="true" 
            android:layout_alignParentBottom="true"
            android:text="@string/ok" />
    </RelativeLayout>

</LinearLayout>