Home | History | Annotate | Download | only in xml
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!--
      3 /*
      4 ** Copyright 2016, The Android Open Source Project
      5 **
      6 ** Licensed under the Apache License, Version 2.0 (the "License");
      7 ** you may not use this file except in compliance with the License.
      8 ** You may obtain a copy of the License at
      9 **
     10 **     http://www.apache.org/licenses/LICENSE-2.0
     11 **
     12 ** Unless required by applicable law or agreed to in writing, software
     13 ** distributed under the License is distributed on an "AS IS" BASIS,
     14 ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     15 ** See the License for the specific language governing permissions and
     16 ** limitations under the License.
     17 */
     18 -->
     19 
     20 <PreferenceScreen
     21   xmlns:android="http://schemas.android.com/apk/res/android">
     22   <PreferenceCategory
     23     android:title="General">
     24     <EditTextPreference android:summary="Port to use for running server. Leave at 0 for random selection." android:key="use_service_port" android:title="Server Port" android:defaultValue="0" android:numeric="integer"></EditTextPreference>
     25   </PreferenceCategory>
     26   <PreferenceCategory
     27     android:title="Script Manager">
     28     <CheckBoxPreference
     29       android:key="show_all_files"
     30       android:title="Show all files"
     31       android:defaultValue="false" />
     32   </PreferenceCategory>
     33   <PreferenceCategory
     34     android:title="Script Editor">
     35     <ListPreference
     36       android:key="editor_fontsize"
     37       android:defaultValue="@string/default_value_fontsize_preference"
     38       android:title="@string/title_fontsize_preference"
     39       android:summary="@string/summary_fontsize_preference"
     40       android:entries="@array/entries_fontsize_preference"
     41       android:entryValues="@array/entryvalues_fontsize_preference"
     42       android:dialogTitle="@string/dialog_title_fontsize_preference" />
     43   <CheckBoxPreference android:title="@string/help_force_browser" android:key="helpForceBrowser" android:defaultValue="true" android:summary="Force API Help to use default Android Browser"></CheckBoxPreference>
     44   <CheckBoxPreference android:summary="When enabled, quotes and brackets are automatically completed." android:key="enableAutoClose" android:title="@string/enable_auto_close" android:defaultValue="true"></CheckBoxPreference>
     45   <CheckBoxPreference android:title="No Wrap" android:summary="Don't wrap text in editor" android:key="editor_no_wrap"></CheckBoxPreference>
     46   <CheckBoxPreference android:key="editor_auto_indent" android:defaultValue="false" android:summaryOff="Auto Indent Disabled" android:summaryOn="Auto Indent Enabled" android:title="Auto Indent"></CheckBoxPreference>
     47 </PreferenceCategory>
     48   <PreferenceCategory
     49     android:title="Terminal">
     50     <EditTextPreference
     51       android:key="scrollback"
     52       android:title="@string/pref_scrollback_title"
     53       android:summary="@string/pref_scrollback_summary"
     54       android:defaultValue="140" />
     55     <EditTextPreference
     56       android:key="fontsize"
     57       android:title="@string/pref_fontsize_title"
     58       android:defaultValue="10" />
     59     <org.connectbot.util.EncodingPreference
     60       android:key="encoding"
     61       android:title="@string/pref_encoding_title"
     62       android:summary="@string/pref_encoding_summary" />
     63     <ListPreference
     64       android:key="rotation"
     65       android:title="@string/pref_rotation_title"
     66       android:summary="@string/pref_rotation_summary"
     67       android:entries="@array/list_rotation"
     68       android:entryValues="@array/list_rotation_values"
     69       android:defaultValue="Default" />
     70     <Preference
     71       android:key="color"
     72       android:title="@string/title_color_preference"
     73       android:summary="@string/summary_color_preference">
     74       <intent
     75         android:action="com.googlecode.android_scripting.PICK_TERMINAL_COLORS" />
     76     </Preference>
     77     <CheckBoxPreference
     78       android:key="fullscreen"
     79       android:title="@string/pref_fullscreen_title"
     80       android:summary="@string/pref_fullscreen_summary"
     81       android:defaultValue="false" />
     82     <ListPreference
     83       android:key="delkey"
     84       android:title="@string/pref_delkey_title"
     85       android:summary="@string/pref_delkey_summary"
     86       android:entries="@array/list_delkey"
     87       android:entryValues="@array/list_delkey_values" />
     88     <ListPreference
     89       android:key="keymode"
     90       android:title="@string/pref_keymode_title"
     91       android:summary="@string/pref_keymode_summary"
     92       android:entries="@array/list_keymode"
     93       android:entryValues="@array/list_keymode_values"
     94       android:defaultValue="Use right-side keys" />
     95     <ListPreference
     96       android:key="camera"
     97       android:title="@string/pref_camera_title"
     98       android:summary="@string/pref_camera_summary"
     99       android:entries="@array/list_camera"
    100       android:entryValues="@array/list_camera_values"
    101       android:defaultValue="Ctrl+A then Space" ></ListPreference>
    102     <CheckBoxPreference
    103       android:key="keepalive"
    104       android:title="@string/pref_keepalive_title"
    105       android:summary="@string/pref_keepalive_summary"
    106       android:defaultValue="true" />
    107     <CheckBoxPreference
    108       android:key="bumpyarrows"
    109       android:title="@string/pref_bumpyarrows_title"
    110       android:summary="@string/pref_bumpyarrows_summary"
    111       android:defaultValue="true" />
    112     <CheckBoxPreference
    113       android:key="hidekeyboard"
    114       android:title="@string/pref_hidekeyboard_title"
    115       android:summary="@string/pref_hidekeyboard_summary"
    116       android:defaultValue="false" />
    117   </PreferenceCategory>
    118   <PreferenceCategory
    119     android:title="Terminal bell">
    120     <CheckBoxPreference
    121       android:key="bell"
    122       android:title="@string/pref_bell_title"
    123       android:defaultValue="true" />
    124     <org.connectbot.util.VolumePreference
    125       android:key="bellVolume"
    126       android:title="@string/pref_bell_volume_title" />
    127     <CheckBoxPreference
    128       android:key="bellVibrate"
    129       android:title="@string/pref_bell_vibrate_title"
    130       android:defaultValue="true" />
    131   </PreferenceCategory>
    132   <PreferenceCategory
    133 	  android:title="Trigger Behaviour">
    134 	  <CheckBoxPreference 
    135 	    android:key="hideServiceNotifications"
    136 		android:title="@string/pref_hide_notifications" 
    137 		android:defaultValue="false" />
    138 	</PreferenceCategory>
    139 </PreferenceScreen>
    140