diff options
Diffstat (limited to 'main/res/layout/settings_activity.xml')
| -rw-r--r-- | main/res/layout/settings_activity.xml | 853 |
1 files changed, 853 insertions, 0 deletions
diff --git a/main/res/layout/settings_activity.xml b/main/res/layout/settings_activity.xml new file mode 100644 index 0000000..ae70fa7 --- /dev/null +++ b/main/res/layout/settings_activity.xml @@ -0,0 +1,853 @@ +<?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:background="?background_color" + android:orientation="vertical" > + + <include layout="@layout/actionbar" /> + + <ScrollView + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:orientation="vertical" + android:padding="4dip" > + + <LinearLayout + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:orientation="vertical" > + + <!-- ** --> + + <RelativeLayout style="@style/separator_horizontal_layout" > + + <View style="@style/separator_horizontal" /> + + <TextView + style="@style/separator_horizontal_headline" + android:text="@string/init_geocaching" /> + </RelativeLayout> + + <LinearLayout + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_margin="3dip" + android:orientation="horizontal" + android:padding="3dip" > + + <CheckBox + android:id="@+id/gc_option" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="left" + android:gravity="center" + android:padding="1dip" /> + + <TextView + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical" + android:gravity="left" + android:paddingRight="3dip" + android:text="@string/init_gc_activate" + android:textColor="?text_color" + android:textSize="14sp" /> + </LinearLayout> + + <TextView + android:id="@+id/legal_note" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="left" + android:layout_marginBottom="5dip" + android:layout_marginLeft="10dip" + android:layout_marginRight="10dip" + android:linksClickable="true" + android:padding="3dip" + android:text="@string/legal_note" + android:textColor="?text_color" + android:textColorLink="?text_color_link" + android:textSize="14sp" /> + + <EditText + android:id="@+id/username" + style="@style/edittext_full" + android:hint="@string/init_username" /> + + <EditText + android:id="@+id/password" + style="@style/edittext_full" + android:hint="@string/init_password" + android:inputType="textPassword" /> + + <Button + android:id="@+id/log_me_in" + style="@style/button_full" + android:lines="2" + android:scrollHorizontally="false" + android:singleLine="false" + android:text="@string/init_login" /> + <!-- ** --> + + <RelativeLayout style="@style/separator_horizontal_layout" > + + <View style="@style/separator_horizontal" /> + + <TextView + style="@style/separator_horizontal_headline" + android:text="@string/init_oc" /> + </RelativeLayout> + + <CheckBox + android:id="@+id/oc_option" + style="@style/checkbox_full" + android:text="@string/init_oc_activate" /> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginBottom="5dip" + android:layout_marginLeft="10dip" + android:layout_marginRight="10dip" + android:padding="3dip" + android:text="@string/init_oc_de_description" + android:textColor="?text_color" + android:textSize="14sp" /> + + <Button + android:id="@+id/register_oc_de" + style="@style/button_full" + android:text="@string/init_register_oc_de" /> + <!-- ** --> + + <RelativeLayout style="@style/separator_horizontal_layout" > + + <View style="@style/separator_horizontal" /> + + <TextView + style="@style/separator_horizontal_headline" + android:text="@string/init_gcvote" /> + </RelativeLayout> + + <EditText + android:id="@+id/passvote" + style="@style/edittext_full" + android:hint="@string/init_passvote" + android:inputType="textPassword" /> + <!-- ** --> + + <RelativeLayout style="@style/separator_horizontal_layout" > + + <View style="@style/separator_horizontal" /> + + <TextView + style="@style/separator_horizontal_headline" + android:text="@string/init_twitter" /> + </RelativeLayout> + + <TextView + android:id="@+id/about_twitter" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="left" + android:layout_marginBottom="5dip" + android:layout_marginLeft="10dip" + android:layout_marginRight="10dip" + android:linksClickable="true" + android:padding="3dip" + android:text="@string/about_twitter" + android:textColor="?text_color" + android:textColorLink="?text_color_link" + android:textSize="14sp" /> + + <Button + android:id="@+id/authorize_twitter" + style="@style/button_full" + android:text="@string/init_twitter_authorize" /> + + <CheckBox + android:id="@+id/twitter_option" + style="@style/checkbox_full" + android:text="@string/init_twitter_publish" /> + + <RelativeLayout style="@style/separator_horizontal_layout" > + + <View style="@style/separator_horizontal" /> + + <TextView + style="@style/separator_horizontal_headline" + android:text="@string/init_signature" /> + </RelativeLayout> + + <EditText + android:id="@+id/signature" + style="@style/edittext_full" + android:layout_height="wrap_content" + android:hint="@string/init_signature" + android:inputType="textMultiLine|textCapSentences" + android:minLines="3" + android:singleLine="false" /> + + <LinearLayout + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:orientation="horizontal" > + + <Button + android:id="@+id/signature_template" + style="@style/button_full" + android:layout_width="wrap_content" + android:layout_weight="2" + android:text="@string/init_signature_template_button" + android:textSize="14sp" /> + + <Button + android:id="@+id/signature_help" + style="@style/button_full" + android:layout_width="wrap_content" + android:layout_weight="1" + android:text="@string/init_signature_help_button" + android:textSize="14sp" /> + </LinearLayout> + + <CheckBox + android:id="@+id/sigautoinsert" + style="@style/checkbox_full" + android:text="@string/init_sigautoinsert" /> + + <RelativeLayout style="@style/separator_horizontal_layout" > + + <View style="@style/separator_horizontal" /> + + <TextView + style="@style/separator_horizontal_headline" + android:text="@string/init_details" /> + </RelativeLayout> + + <LinearLayout + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:layout_margin="3dip" + android:orientation="vertical" + android:padding="3dip" > + + <CheckBox + android:id="@+id/autoload" + style="@style/checkbox_full" + android:text="@string/init_autoload" /> + + <CheckBox + android:id="@+id/ratingwanted" + style="@style/checkbox_full" + android:text="@string/init_ratingwanted" /> + + <CheckBox + android:id="@+id/elevationwanted" + style="@style/checkbox_full" + android:text="@string/init_elevationwanted" /> + + <CheckBox + android:id="@+id/friendlogswanted" + style="@style/checkbox_full" + android:text="@string/init_friendlogswanted" /> + + <CheckBox + android:id="@+id/openlastdetailspage" + style="@style/checkbox_full" + android:text="@string/init_openlastdetailspage" /> + + <CheckBox + android:id="@+id/offline" + style="@style/checkbox_full" + android:text="@string/init_offline" /> + + <CheckBox + android:id="@+id/offline_wp" + style="@style/checkbox_full" + android:text="@string/init_offline_wp" /> + + <CheckBox + android:id="@+id/save_log_img" + style="@style/checkbox_full" + android:text="@string/init_save_log_img" /> + </LinearLayout> + <!-- ** --> + + <RelativeLayout style="@style/separator_horizontal_layout" > + + <View style="@style/separator_horizontal" /> + + <TextView + style="@style/separator_horizontal_headline" + android:text="@string/init_other" /> + </RelativeLayout> + + <LinearLayout + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:layout_margin="3dip" + android:orientation="vertical" + android:padding="3dip" > + + <CheckBox + android:id="@+id/skin" + style="@style/checkbox_full" + android:text="@string/init_skin" /> + + <CheckBox + android:id="@+id/address" + style="@style/checkbox_full" + android:text="@string/init_address" /> + + <CheckBox + android:id="@+id/captcha" + style="@style/checkbox_full" + android:text="@string/init_captcha" /> + + <CheckBox + android:id="@+id/livelist" + style="@style/checkbox_full" + android:text="@string/init_livelist" /> + + <CheckBox + android:id="@+id/loaddirectionimg" + style="@style/checkbox_full" + android:text="@string/init_loaddirectionimg" /> + + <CheckBox + android:id="@+id/useenglish" + style="@style/checkbox_full" + android:text="@string/init_useenglish" /> + + <CheckBox + android:id="@+id/units" + style="@style/checkbox_full" + android:text="@string/init_units" /> + + <CheckBox + android:id="@+id/exclude" + style="@style/checkbox_full" + android:text="@string/init_exclude" /> + + <CheckBox + android:id="@+id/disabled" + style="@style/checkbox_full" + android:text="@string/init_disabled" /> + + <CheckBox + android:id="@+id/trackautovisit" + style="@style/checkbox_full" + android:text="@string/init_trackautovisit" /> + + <CheckBox + android:id="@+id/log_offline" + style="@style/checkbox_full" + android:text="@string/init_log_offline" /> + + <CheckBox + android:id="@+id/choose_list" + style="@style/checkbox_full" + android:text="@string/init_choose_list" /> + + <CheckBox + android:id="@+id/trail" + style="@style/checkbox_full" + android:text="@string/init_maptrail" /> + + <CheckBox + android:id="@+id/plain_logs" + style="@style/checkbox_full" + android:text="@string/init_plain_logs" /> + + <CheckBox + android:id="@+id/use_native_ua" + style="@style/checkbox_full" + android:text="@string/init_use_native_ua" /> + </LinearLayout> + <!-- ** --> + + <RelativeLayout style="@style/separator_horizontal_layout" > + + <View style="@style/separator_horizontal" /> + + <TextView + style="@style/separator_horizontal_headline" + android:text="@string/init_showwaypoints" /> + </RelativeLayout> + + <EditText + android:id="@+id/showwaypointsthreshold" + style="@style/edittext_full" + android:inputType="number" + android:lines="1" + android:scrollHorizontally="true" + android:singleLine="true" /> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="left" + android:layout_marginBottom="5dip" + android:layout_marginLeft="10dip" + android:layout_marginRight="10dip" + android:linksClickable="true" + android:padding="3dip" + android:text="@string/init_showwaypoint_description" + android:textColor="?text_color" + android:textColorLink="?text_color_link" + android:textSize="14sp" /> + <!-- maps --> + + <RelativeLayout style="@style/separator_horizontal_layout" > + + <View style="@style/separator_horizontal" /> + + <TextView + style="@style/separator_horizontal_headline" + android:text="@string/init_mapsources" /> + </RelativeLayout> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="left" + android:layout_marginBottom="5dip" + android:layout_marginLeft="10dip" + android:layout_marginRight="10dip" + android:autoLink="web" + android:linksClickable="true" + android:padding="3dip" + android:text="@string/init_mapsources_description" + android:textColor="?text_color" + android:textColorLink="?text_color_link" + android:textSize="14sp" /> + + <Spinner + android:id="@+id/mapsource" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:prompt="@string/init_mapsource_select" /> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="left" + android:layout_marginBottom="5dip" + android:layout_marginLeft="10dip" + android:layout_marginRight="10dip" + android:autoLink="web" + android:linksClickable="true" + android:padding="3dip" + android:text="@string/init_map_directory_description" + android:textColor="?text_color" + android:textColorLink="?text_color_link" + android:textSize="14sp" /> + + <LinearLayout + android:id="@+id/init_mapdir_group" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:orientation="horizontal" > + + <Button + android:id="@+id/select_map_directory" + style="@style/button_full" + android:layout_width="wrap_content" + android:text="@string/init_select_map_directory" /> + + <EditText + android:id="@+id/map_directory" + style="@style/edittext_full" + android:inputType="textNoSuggestions" + android:lines="1" + android:scrollHorizontally="true" + android:singleLine="true" /> + </LinearLayout> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical" + android:layout_marginBottom="5dip" + android:layout_marginLeft="10dip" + android:layout_marginRight="10dip" + android:gravity="left" + android:padding="3dip" + android:text="@string/init_rendertheme_folder" + android:textColor="?text_color" + android:textSize="14sp" /> + + <LinearLayout + android:id="@+id/init_themefilegroup" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:orientation="horizontal" > + + <Button + android:id="@+id/select_themefolder" + style="@style/button_full" + android:layout_width="wrap_content" + android:text="@string/init_select_themefolder" /> + + <EditText + android:id="@+id/themefolder" + style="@style/edittext_full" + android:inputType="textNoSuggestions" + android:lines="1" + android:scrollHorizontally="true" + android:singleLine="true" /> + </LinearLayout> + + <!-- GPX --> + + <RelativeLayout style="@style/separator_horizontal_layout" > + + <View style="@style/separator_horizontal" /> + + <TextView + style="@style/separator_horizontal_headline" + android:text="@string/init_gpx_exportdir" /> + </RelativeLayout> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="left" + android:layout_marginBottom="5dip" + android:layout_marginLeft="10dip" + android:layout_marginRight="10dip" + android:autoLink="web" + android:linksClickable="true" + android:padding="3dip" + android:text="@string/init_gpx_exportdir_description" + android:textColor="?text_color" + android:textColorLink="?text_color_link" + android:textSize="14sp" /> + + <LinearLayout + android:id="@+id/init_gpx_export_group" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:orientation="horizontal" > + + <Button + android:id="@+id/select_gpx_exportdir" + style="@style/button_full" + android:layout_width="wrap_content" + android:text="@string/init_select_gpx_exportdir" /> + + <EditText + android:id="@+id/gpx_exportdir" + style="@style/edittext_full" + android:inputType="textNoSuggestions" + android:lines="1" + android:scrollHorizontally="true" + android:singleLine="true" /> + </LinearLayout> + <!-- ** --> + + <RelativeLayout style="@style/separator_horizontal_layout" > + + <View style="@style/separator_horizontal" /> + + <TextView + style="@style/separator_horizontal_headline" + android:text="@string/init_gpx_importdir" /> + </RelativeLayout> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="left" + android:layout_marginBottom="5dip" + android:layout_marginLeft="10dip" + android:layout_marginRight="10dip" + android:autoLink="web" + android:linksClickable="true" + android:padding="3dip" + android:text="@string/init_gpx_importdir_description" + android:textColor="?text_color" + android:textColorLink="?text_color_link" + android:textSize="14sp" /> + + <LinearLayout + android:id="@+id/init_gpx_import_group" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:orientation="horizontal" > + + <Button + android:id="@+id/select_gpx_importdir" + style="@style/button_full" + android:layout_width="wrap_content" + android:text="@string/init_select_gpx_importdir" /> + + <EditText + android:id="@+id/gpx_importdir" + style="@style/edittext_full" + android:inputType="textNoSuggestions" + android:lines="1" + android:scrollHorizontally="true" + android:singleLine="true" /> + </LinearLayout> + <!-- ** --> + + <RelativeLayout style="@style/separator_horizontal_layout" > + + <View style="@style/separator_horizontal" /> + + <TextView + style="@style/separator_horizontal_headline" + android:text="@string/init_altitude" /> + </RelativeLayout> + + <EditText + android:id="@+id/altitude" + style="@style/edittext_full" + android:inputType="numberSigned" + android:lines="1" + android:scrollHorizontally="true" + android:singleLine="true" /> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="left" + android:layout_marginBottom="5dip" + android:layout_marginLeft="10dip" + android:layout_marginRight="10dip" + android:linksClickable="true" + android:padding="3dip" + android:text="@string/init_altitude_description" + android:textColor="?text_color" + android:textColorLink="?text_color_link" + android:textSize="14sp" /> + <!-- ** --> + + <RelativeLayout style="@style/separator_horizontal_layout" > + + <View style="@style/separator_horizontal" /> + + <TextView + style="@style/separator_horizontal_headline" + android:text="@string/init_default_navigation_tool" /> + </RelativeLayout> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="left" + android:layout_marginBottom="5dip" + android:layout_marginLeft="10dip" + android:layout_marginRight="10dip" + android:linksClickable="true" + android:padding="3dip" + android:text="@string/init_default_navigation_tool_description" + android:textColor="?text_color" + android:textColorLink="?text_color_link" + android:textSize="14sp" /> + + <Spinner + android:id="@+id/default_navigation_tool" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:prompt="@string/init_default_navigation_tool_select" /> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="left" + android:layout_marginBottom="5dip" + android:layout_marginLeft="10dip" + android:layout_marginRight="10dip" + android:linksClickable="true" + android:padding="3dip" + android:text="@string/init_default_navigation_tool_2_description" + android:textColor="?text_color" + android:textColorLink="?text_color_link" + android:textSize="14sp" /> + + <Spinner + android:id="@+id/default_navigation_tool_2" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:prompt="@string/init_default_navigation_tool_select" /> + <!-- ** --> + + <RelativeLayout style="@style/separator_horizontal_layout" > + + <View style="@style/separator_horizontal" /> + + <TextView + style="@style/separator_horizontal_headline" + android:text="@string/init_sendToCgeo" /> + </RelativeLayout> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="left" + android:layout_marginBottom="5dip" + android:layout_marginLeft="10dip" + android:layout_marginRight="10dip" + android:linksClickable="true" + android:padding="3dip" + android:text="@string/init_sendToCgeo_name" + android:textColor="?text_color" + android:textColorLink="?text_color_link" + android:textSize="14sp" /> + + <EditText + android:id="@+id/webDeviceName" + style="@style/edittext_full" + android:inputType="textNoSuggestions" + android:lines="1" + android:maxLength="15" + android:scrollHorizontally="true" + android:singleLine="true" /> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="left" + android:layout_marginBottom="5dip" + android:layout_marginLeft="10dip" + android:layout_marginRight="10dip" + android:autoLink="web" + android:linksClickable="true" + android:padding="3dip" + android:text="@string/init_sendToCgeo_description" + android:textColor="?text_color" + android:textColorLink="?text_color_link" + android:textSize="14sp" /> + + <Button + android:id="@+id/sendToCgeo_register" + style="@style/button_full" + android:text="@string/init_sendToCgeo_register" /> + <!-- ** --> + + <RelativeLayout style="@style/separator_horizontal_layout" > + + <View style="@style/separator_horizontal" /> + + <TextView + style="@style/separator_horizontal_headline" + android:text="@string/init_backup" /> + </RelativeLayout> + + <TextView + android:id="@+id/backup_last" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="left" + android:layout_marginBottom="5dip" + android:layout_marginLeft="10dip" + android:layout_marginRight="10dip" + android:linksClickable="true" + android:padding="3dip" + android:text="@null" + android:textColor="?text_color" + android:textColorLink="?text_color_link" + android:textSize="14sp" /> + + <LinearLayout + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_margin="3dip" + android:orientation="horizontal" + android:padding="3dip" > + + <Button + android:id="@+id/backup_backup" + style="@style/button_full" + android:layout_width="0dip" + android:layout_weight="1" + android:onClick="backup" + android:text="@string/init_backup_backup" /> + + <Button + android:id="@+id/backup_restore" + style="@style/button_full" + android:layout_width="0dip" + android:layout_weight="1" + android:onClick="restore" + android:text="@string/init_backup_restore" /> + </LinearLayout> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="left" + android:layout_marginBottom="5dip" + android:layout_marginLeft="10dip" + android:layout_marginRight="10dip" + android:linksClickable="true" + android:padding="3dip" + android:text="@string/init_backup_note" + android:textColor="?text_color" + android:textColorLink="?text_color_link" + android:textSize="14sp" /> + <!-- ** --> + + <RelativeLayout style="@style/separator_horizontal_layout" > + + <View style="@style/separator_horizontal" /> + + <TextView + style="@style/separator_horizontal_headline" + android:text="@string/init_dbonsdcard_title" /> + </RelativeLayout> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="left" + android:layout_marginBottom="5dip" + android:layout_marginLeft="10dip" + android:layout_marginRight="10dip" + android:linksClickable="true" + android:padding="3dip" + android:text="@string/init_dbonsdcard_note" + android:textColor="?text_color" + android:textColorLink="?text_color_link" + android:textSize="14sp" /> + + <CheckBox + android:id="@+id/dbonsdcard" + style="@style/checkbox_full" + android:text="@string/init_dbonsdcard" /> + <!-- ** --> + + <RelativeLayout style="@style/separator_horizontal_layout" > + + <View style="@style/separator_horizontal" /> + + <TextView + style="@style/separator_horizontal_headline" + android:text="@string/init_debug_title" /> + </RelativeLayout> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="left" + android:layout_marginBottom="5dip" + android:layout_marginLeft="10dip" + android:layout_marginRight="10dip" + android:linksClickable="true" + android:padding="3dip" + android:text="@string/init_debug_note" + android:textColor="?text_color" + android:textColorLink="?text_color_link" + android:textSize="14sp" /> + + <CheckBox + android:id="@+id/debug" + style="@style/checkbox_full" + android:text="@string/init_debug" /> + </LinearLayout> + </ScrollView> + +</LinearLayout>
\ No newline at end of file |
