settings.xml 3.8 KB
Newer Older
A
authorfu 已提交
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 74 75
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" >
    <PreferenceCategory android:title="Model Settings">
        <ListPreference
                android:defaultValue="@string/MODEL_PATH_DEFAULT"
                android:key="@string/CHOOSE_PRE_INSTALLED_MODEL_KEY"
                android:negativeButtonText="@null"
                android:positiveButtonText="@null"
                android:title="Choose pre-installed models" />
        <CheckBoxPreference
                android:defaultValue="false"
                android:key="@string/ENABLE_CUSTOM_SETTINGS_KEY"
                android:summaryOn="Enable"
                android:summaryOff="Disable"
                android:title="Enable custom settings"/>
        <EditTextPreference
                android:key="@string/MODEL_PATH_KEY"
                android:defaultValue="@string/MODEL_PATH_DEFAULT"
                android:title="Model Path" />
        <EditTextPreference
                android:key="@string/LABEL_PATH_KEY"
                android:defaultValue="@string/LABEL_PATH_DEFAULT"
                android:title="Label Path" />
        <EditTextPreference
                android:key="@string/IMAGE_PATH_KEY"
                android:defaultValue="@string/IMAGE_PATH_DEFAULT"
                android:title="Image Path" />
    </PreferenceCategory>
    <PreferenceCategory android:title="CPU Settings">
        <ListPreference
                android:defaultValue="@string/CPU_THREAD_NUM_DEFAULT"
                android:key="@string/CPU_THREAD_NUM_KEY"
                android:negativeButtonText="@null"
                android:positiveButtonText="@null"
                android:title="CPU Thread Num"
                android:entries="@array/cpu_thread_num_entries"
                android:entryValues="@array/cpu_thread_num_values"/>
        <ListPreference
                android:defaultValue="@string/CPU_POWER_MODE_DEFAULT"
                android:key="@string/CPU_POWER_MODE_KEY"
                android:negativeButtonText="@null"
                android:positiveButtonText="@null"
                android:title="CPU Power Mode"
                android:entries="@array/cpu_power_mode_entries"
                android:entryValues="@array/cpu_power_mode_values"/>
    </PreferenceCategory>
    <PreferenceCategory android:title="Input Settings">
        <ListPreference
                android:defaultValue="@string/INPUT_COLOR_FORMAT_DEFAULT"
                android:key="@string/INPUT_COLOR_FORMAT_KEY"
                android:negativeButtonText="@null"
                android:positiveButtonText="@null"
                android:title="Input Color Format: BGR or RGB"
                android:entries="@array/input_color_format_entries"
                android:entryValues="@array/input_color_format_values"/>
        <EditTextPreference
                android:key="@string/INPUT_SHAPE_KEY"
                android:defaultValue="@string/INPUT_SHAPE_DEFAULT"
                android:title="Input Shape: (1,1,max_width_height) or (1,3,max_width_height)" />
        <EditTextPreference
                android:key="@string/INPUT_MEAN_KEY"
                android:defaultValue="@string/INPUT_MEAN_DEFAULT"
                android:title="Input Mean: (channel/255-mean)/std" />
        <EditTextPreference
                android:key="@string/INPUT_STD_KEY"
                android:defaultValue="@string/INPUT_STD_DEFAULT"
                android:title="Input Std: (channel/255-mean)/std" />
    </PreferenceCategory>
    <PreferenceCategory android:title="Output Settings">
        <EditTextPreference
                android:key="@string/SCORE_THRESHOLD_KEY"
                android:defaultValue="@string/SCORE_THRESHOLD_DEFAULT"
                android:title="Score Threshold" />
    </PreferenceCategory>
</PreferenceScreen>