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
74
75
76
77
78
79
80
81
82
83
<?xml version="1.0" encoding="utf-8"?>
<androidx.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto">
 
    <PreferenceScreen
        android:icon="@drawable/ic_voice"
        android:key="pref_screen_alexa"
        android:title="@string/menuitem_alexa">
 
        <ListPreference
            android:defaultValue="auto"
            android:entries="@array/pref_language_all"
            android:entryValues="@array/pref_language_all_values"
            android:icon="@drawable/ic_language"
            android:key="voice_service_language"
            android:summary="%s"
            android:title="@string/pref_title_language" />
 
        <PreferenceCategory
            android:key="pref_header_voice_service"
            android:title="@string/voice_service">
 
            <EditTextPreference
                android:key="voice_service_package"
                android:summary="@string/voice_service_package_summary"
                android:title="@string/voice_service_package_title"
                app:useSimpleSummaryProvider="true" />
 
            <EditTextPreference
                android:key="voice_service_class"
                android:summary="@string/voice_service_class_summary"
                android:title="@string/voice_service_class_title"
                app:useSimpleSummaryProvider="true" />
        </PreferenceCategory>
 
        <!-- Keeping these without a translation intentionally, they should be temporary -->
        <PreferenceCategory
            android:key="pref_header_voice_service_debug"
            android:title="@string/action_debug">
 
            <EditTextPreference
                android:defaultValue=""
                android:key="zepp_os_alexa_reply_title"
                android:title="Reply Title"
                app:useSimpleSummaryProvider="true" />
 
            <EditTextPreference
                android:defaultValue=""
                android:key="zepp_os_alexa_reply_subtitle"
                android:title="Reply Subtitle"
                app:useSimpleSummaryProvider="true" />
 
            <EditTextPreference
                android:defaultValue=""
                android:key="zepp_os_alexa_reply_text"
                android:title="Reply Text"
                app:useSimpleSummaryProvider="true" />
 
            <SwitchPreferenceCompat
                android:defaultValue="false"
                android:key="zepp_os_alexa_ask_more_input"
                android:layout="@layout/preference_checkbox"
                android:summary="Continue listening after sending the reply"
                android:title="Ask for more input" />
 
            <Preference
                android:key="zepp_os_alexa_btn_trigger"
                android:summary="Send a command trigger to the watch (stops sending voice data)"
                android:title="Send command trigger" />
 
            <Preference
                android:key="zepp_os_alexa_btn_send_simple"
                android:summary="Send a simple reply to the watch (just text)"
                android:title="Send simple reply" />
 
            <Preference
                android:key="zepp_os_alexa_btn_send_complex"
                android:summary="Send a complex reply to the watch (title, subtitle, text)"
                android:title="Send complex reply" />
        </PreferenceCategory>
 
    </PreferenceScreen>
</androidx.preference.PreferenceScreen>