From 21ff02a69331fbcd53dc93a1af9a93618225b4bf Mon Sep 17 00:00:00 2001 From: Ethan Yonker Date: Wed, 18 Feb 2015 14:35:00 -0600 Subject: GUI: Support styles in xml to reduce xml file size Also allow sliders to have their own text label instead of requiring a whole separate text object for the label in the xml. Change-Id: I6e314efb4bb454d496555ff7e003d743063a1308 --- gui/devices/landscape/res/landscape.xml | 1191 +++++++------------------------ 1 file changed, 269 insertions(+), 922 deletions(-) (limited to 'gui/devices/landscape/res/landscape.xml') diff --git a/gui/devices/landscape/res/landscape.xml b/gui/devices/landscape/res/landscape.xml index eb6d9ddd6..fd5fcfe42 100644 --- a/gui/devices/landscape/res/landscape.xml +++ b/gui/devices/landscape/res/landscape.xml @@ -1,6 +1,107 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -15,11 +116,8 @@ - - Install - install @@ -27,65 +125,44 @@ - - Backup - backup - - Restore - restore - - Wipe - wipe - - Mount - mount - - Settings - settings - - Advanced - advanced - - Reboot - reboot @@ -95,17 +172,13 @@ - - + Select Zip to Install - - - + - Storage: %tw_storage_display_name% (%tw_storage_free_size% MB) tw_back=install @@ -114,32 +187,16 @@ - -
- Folders: - - - - -
- -
- %tw_zip_location% - - - - - @@ -149,11 +206,8 @@ - - Images... - install_image @@ -183,72 +237,57 @@ - - + WARNING: This operation may install incompatible software and render your device unusable. - - + Folder: - - + %tw_zip_location% - - + File to flash: - - + %tw_file% - - + Press back to cancel adding this zip. - Zip file signature verification? - - - + File %tw_zip_queue_count% of max of 10 - - + - Add More Zips - install - - + - Clear Queue - install @@ -256,15 +295,8 @@ - - - flash_zip - - - - - Swipe to Confirm Flash + flash_zip @@ -288,14 +320,12 @@ - - + Flashing file %tw_zip_index% of %tw_zip_queue_count% - - + %tw_filename% @@ -313,26 +343,23 @@ - + - + Failed - + - + Successful - - Wipe Cache/Dalvik - tw_back=flash_done tw_action=wipe @@ -348,36 +375,13 @@ - - - + - - Reboot System - - - tw_back=main2 - tw_action=reboot - tw_action_param=system - tw_has_action2=0 - tw_text1=No OS Installed! Are you - tw_text2=sure you wish to reboot? - tw_text3= - tw_text4= - tw_action_text1=Rebooting... - tw_action_text2= - tw_complete_text1=Rebooting... - tw_slider_text=Swipe to Reboot - rebootcheck - - - Home - tw_clear_destination=main2 clear_vars @@ -404,17 +408,13 @@ - - + Select Image to Flash - - - + - Storage: %tw_storage_display_name% (%tw_storage_free_size% MB) tw_back=install_image @@ -423,32 +423,16 @@ - -
- Folders: - - - - -
- -
- %tw_zip_location% - - - - - @@ -458,11 +442,8 @@ - - Zips... - install @@ -490,46 +471,35 @@ - -
- Select Partition to Flash Image: - - -
- - + Folder: - - + %tw_zip_location% - - + File to flash: - - + %tw_file% - - + Swipe to Confirm Flash tw_back=flashimage_confirm tw_action=flashimage @@ -542,12 +512,6 @@ - - - - Swipe to Confirm Flash - - @@ -592,46 +556,34 @@ - - + %tw_text1% - - + %tw_text2% - - + %tw_text3% - - + %tw_text4% - - + Press back button to cancel. - - - action_page - - - - - %tw_slider_text% + action_page @@ -653,14 +605,12 @@ - - + %tw_action_text1% - - + %tw_action_text2% @@ -668,12 +618,9 @@ - - - + Cancel - %tw_cancel_param% @@ -705,14 +652,12 @@ - - + %tw_action_text1% - - + %tw_action_text2% @@ -747,22 +692,21 @@ - - + %tw_complete_text1% - + - + Failed - + - + Successful @@ -770,40 +714,18 @@ - - Back - tw_clear_destination=%tw_back% clear_vars - - + - - Reboot System - - - tw_back=main2 - tw_action=reboot - tw_action_param=system - tw_has_action2=0 - tw_text1=No OS Installed! Are you - tw_text2=sure you wish to reboot? - tw_text3= - tw_text4= - tw_action_text1=Rebooting... - tw_action_text2= - tw_complete_text1=Rebooting... - tw_slider_text=Swipe to Reboot - rebootcheck - @@ -866,40 +788,20 @@ - - + Reboot Menu - - - + - System - - - tw_back=reboot - tw_action=reboot - tw_action_param=system - tw_has_action2=0 - tw_text1=No OS Installed! Are you - tw_text2=sure you wish to reboot? - tw_action_text1=Rebooting... - tw_complete_text1=Rebooting... - tw_slider_text=Swipe to Reboot - rebootcheck - - - Power Off - tw_back=reboot tw_action=reboot @@ -915,12 +817,9 @@ - - Recovery - tw_back=reboot tw_action=reboot @@ -936,12 +835,9 @@ - - Bootloader - tw_back=reboot tw_action=reboot @@ -957,12 +853,9 @@ - - Download - tw_back=reboot tw_action=reboot @@ -994,25 +887,16 @@ - -
- Select Storage: - - -
- - OK - tw_clear_destination=%tw_back% clear_vars @@ -1037,91 +921,66 @@ - - + Mount Menu - -
- Select Partitions to Mount: - - - -
- - Decrypt Data - decrypt - Mount USB Storage - usb_mount - - Enable MTP - - - Disable MTP - - - Decrypt Data - decrypt - - - + - Storage: %tw_storage_display_name% (%tw_storage_free_size% MB) tw_back=mount @@ -1145,24 +1004,14 @@ - + - USB Storage Mounted -- Be sure to safely remove your device from your computer before unmounting! - - - - - - - - Unmount - usb_umount @@ -1188,58 +1037,47 @@ - - + Factory Reset: Wipes Data, Cache, and Dalvik - + - (not including internal storage) - + - Android Secure - + - SD-EXT - - + Most of the time this is the only wipe that you need. - - Advanced Wipe - advancedwipe - - Format Data - formatdata @@ -1250,11 +1088,8 @@ - - Wipe Encryption - tw_back=wipe tw_action=wipe @@ -1269,15 +1104,13 @@ - - + Press back button to cancel. - - + Swipe to Factory Reset tw_back=wipe tw_action=wipe @@ -1288,12 +1121,6 @@ - - - - Swipe to Factory Reset - - main @@ -1311,24 +1138,14 @@ - -
- Select Partitions to Wipe: - - - -
- - - + - Repair or Change File System @@ -1336,16 +1153,15 @@ - + - + Invalid partition selection - - + Swipe to Wipe tw_back=advancedwipe tw_action=wipe @@ -1357,12 +1173,6 @@ - - - - Swipe to Wipe - - main @@ -1379,35 +1189,28 @@ - - + Format Data will wipe all of your apps, backups, pictures, - - + videos, media, and removes encryption on internal storage. - - + This cannot be undone. Press back to cancel. - - + Type yes to continue. - - - %tw_confirm_formatdata% @@ -1471,83 +1274,69 @@ - - + Partition Options for: %tw_partition_name% - - + Mount Point: %tw_partition_mount_point% - - + Current file system: %tw_partition_file_system% - + - Present: Yes - + - Present: No - + - Removable: Yes - + - Removable: No - - + Size: %tw_partition_size%MB - - + Used: %tw_partition_used%MB - - + Free: %tw_partition_free%MB - - + Backup Size: %tw_partition_backup_size%MB - - Repair - tw_back=partitionoptions tw_action=repair @@ -1563,11 +1352,8 @@ - - Change File System - selectfilesystem @@ -1607,37 +1393,30 @@ - - + Change file system for: %tw_partition_name% - - + Mount Point: %tw_partition_mount_point% - - + Current file system: %tw_partition_file_system% - - + Some ROMs or kernels may not support some file systems. Proceed with caution! - - EXT2 - tw_back=refreshfilesystem tw_action=changefilesystem @@ -1655,11 +1434,8 @@ - - EXT3 - tw_back=refreshfilesystem tw_action=changefilesystem @@ -1677,11 +1453,8 @@ - - EXT4 - tw_back=refreshfilesystem tw_action=changefilesystem @@ -1699,11 +1472,8 @@ - - F2FS - tw_back=refreshfilesystem tw_action=changefilesystem @@ -1721,11 +1491,8 @@ - - FAT - tw_back=refreshfilesystem tw_action=changefilesystem @@ -1743,11 +1510,8 @@ - - exFAT - tw_back=refreshfilesystem tw_action=changefilesystem @@ -1779,38 +1543,26 @@ - - + Back Up Device - -
- Select Partitions to Back Up: - - - -
- - + Backup Name: %tw_backup_name% - - Refresh Sizes - backup @@ -1818,22 +1570,16 @@ - - Set Backup Name - tw_fileexists=0 backupname1 - - - + - Storage: %tw_storage_display_name% (%tw_storage_free_size% MB) tw_back=backup @@ -1841,30 +1587,24 @@ - + - - - No Encryption backupencryption - + - - - Using Encryption backupencryption @@ -1873,35 +1613,24 @@ - Enable Compression (Requires more time) - - Skip MD5 generation on backups - - - + Swipe to Back Up tw_operation_state=0 backup_run - - - - Swipe to Back Up - - main @@ -1929,17 +1658,13 @@ - + - Please Enter a Backup Name - - - %tw_backup_name% @@ -1951,28 +1676,22 @@ - + - + A backup with that name already exists! - - Append Date - - - Cancel / Clear - tw_backup_name=(Auto Generate) backup @@ -2003,36 +1722,29 @@ - - + Encrypt your backup? Please enter a password: - - - %tw_backup_encrypt_display% backupencryption2 - + - + Passwords Do Not Match - - Cancel - tw_encrypt_backup=0 tw_backup_password= @@ -2061,17 +1773,13 @@ - - + Encrypt your backup? Please Enter Password Again: - - - %tw_backup_encrypt_display2% @@ -2081,11 +1789,8 @@ - - Cancel - tw_encrypt_backup=0 tw_backup_password= @@ -2137,32 +1842,26 @@ - - + %tw_operation% %tw_partition% - - + %tw_file_progress% - - + %tw_size_progress% - - - - + + Cancel - @@ -2202,11 +1901,8 @@ - - - + - Storage: %tw_storage_display_name% (%tw_storage_free_size% MB) tw_back=restore @@ -2215,16 +1911,8 @@ - -
- Select Package to Restore: - - - - - @@ -2274,17 +1962,13 @@ - - + Backup encrypted. Please enter your password: - - - %tw_restore_display% @@ -2293,19 +1977,16 @@ - + - + Password Failed, Please Try Again - - Cancel - tw_page_done=1 restore @@ -2313,11 +1994,8 @@ - - Delete - tw_back=restore tw_action=cmd @@ -2349,8 +2027,7 @@ - - + Trying Decryption with Your Password @@ -2389,46 +2066,32 @@ - - + Package to Restore: %tw_restore_name% - - + Package Date: %tw_restore_file_date% - -
- Select Partitions to Restore: - - - -
- Enable MD5 checking of backup files - - - Rename Backup - tw_backup_rename= tw_fileexists=0 @@ -2437,11 +2100,8 @@ - - Delete Backup - tw_back=restore tw_action=cmd @@ -2456,15 +2116,8 @@ - - - restore_run - - - - - Swipe to Restore + restore_run @@ -2483,17 +2136,13 @@ - + - Please Enter a New Backup Name - - - %tw_backup_rename% @@ -2513,19 +2162,16 @@ - + - + A backup with that name already exists! - - Cancel - restore_select @@ -2547,14 +2193,12 @@ - - + %tw_operation% %tw_partition% - - + %tw_size_progress% @@ -2581,102 +2225,75 @@ - - + Settings - Zip file signature verification? - - + > - Use rm -rf instead of formatting? - - Skip MD5 generation on backups - - Enable MD5 checking of backup files - - Use 24-hour clock - - Simulate most actions for theme testing - - Simulate failure for actions - - - Time Zone - timezone - - Restore Defaults - - - Vibration Duration - Vibrate - - Screen - screen @@ -2696,22 +2313,15 @@ - - + Select Time Zone - - + -
- Select Time Zone: - - - BST11;BDT HST10;HDT @@ -2741,65 +2351,46 @@ - Do you use daylight savings time (DST)? - - - + Offset (usually 0): %tw_time_zone_guioffset% - - + - 0 - tw_time_zone_guioffset=0 - - + - 15 - tw_time_zone_guioffset=15 - - + - 30 - tw_time_zone_guioffset=30 - - + - 45 - tw_time_zone_guioffset=45 - - Set Time Zone - - - + Current Time Zone: %tw_time_zone% @@ -2820,15 +2411,13 @@ - - + Screen Settings - Enable screen timeout. @@ -2838,7 +2427,6 @@ - Enable screen timeout. @@ -2847,12 +2435,11 @@ - - + + + + - - - Screen timeout in seconds: @@ -2860,9 +2447,6 @@ - - - Brightness: %tw_brightness_pct%% @@ -2889,15 +2473,13 @@ - - + Vibration Settings : - Button Vibration: @@ -2905,7 +2487,6 @@ - Keyboard Vibration: @@ -2913,7 +2494,6 @@ - Action Vibration: @@ -2935,18 +2515,14 @@ - - + Advanced - - Copy Log to SD - tw_back=advanced tw_action=copylog @@ -2959,67 +2535,46 @@ - - Fix Permissions - fixperms - - Terminal Command - terminalfolder - - ADB Sideload - sideload - - Partition SD Card - partsdcard - - File Manager - filemanagerlist - - Reload Theme - - - HTC Dumlock - htcdumlock @@ -3039,100 +2594,79 @@ - - + Partition SD Card - - tw_sdext_size-128 - - tw_sdext_size+128 - - + EXT Size: %tw_sdext_size% - - tw_swap_size-32 - - tw_swap_size+32 - - + Swap Size: %tw_swap_size% - - + File system: %tw_sdpart_file_system% - - + - EXT3 - tw_sdpart_file_system=ext3 - - + - EXT4 - tw_sdpart_file_system=ext4 - - + You will lose all files on your SD card! - - + This action cannot be undone! - - + Swipe to Confirm Partition tw_back=partsdcard tw_action=partitionsd @@ -3146,12 +2680,6 @@ - - - - Swipe to Confirm Partition - - main @@ -3169,19 +2697,14 @@ - - + HTC Dumlock - - - Restore Original Boot - tw_back=htcdumlock tw_action=htcdumlockrestoreboot @@ -3194,12 +2717,8 @@ - - - Reflash Recovery->Boot - tw_back=htcdumlock tw_action=htcdumlockreflashrecovery @@ -3212,12 +2731,8 @@ - - - Install HTC Dumlock - tw_back=htcdumlock tw_action=installhtcdumlock @@ -3251,15 +2766,8 @@ - - - - - - - - Swipe to Unlock + @@ -3267,23 +2775,14 @@ - - + File Manager: Select a File or Folder - -
- Folders: - - - - - @@ -3291,16 +2790,8 @@
- -
- %tw_file_location1% - - - - - @@ -3334,11 +2825,8 @@
- - Select Folder - tw_filename1=tw_file_location1 tw_fm_isfolder=1 @@ -3353,25 +2841,20 @@ - - + %tw_fm_type% Selected: - - + %tw_filename1% - - Copy File - tw_filemanager_command=cp tw_fm_text1=Copying @@ -3380,12 +2863,9 @@ - - Copy Folder - tw_filemanager_command=cd "%tw_file_location1%" && cd .. && cp -R tw_fm_text1=Copying @@ -3394,11 +2874,8 @@ - - Move - tw_filemanager_command=mv tw_fm_text1=Moving @@ -3407,11 +2884,8 @@ - - chmod 755 - tw_filemanager_command=chmod 755 tw_fm_text1=chmod 755 @@ -3424,11 +2898,8 @@ - - chmod - tw_filemanager_rename=0000 tw_fm_text2= @@ -3440,11 +2911,8 @@ - - Delete - tw_filemanager_command=rm -rf tw_fm_text1=Deleting @@ -3457,12 +2925,9 @@ - - Rename File - tw_filemanager_rename=tw_selection1 tw_fm_text1=Renaming @@ -3472,12 +2937,9 @@ - - Rename Folder - tw_filemanager_rename=tw_selection1 tw_fm_text1=Renaming @@ -3502,22 +2964,14 @@ - - + Browse to Destination Folder & Press Select - -
- %tw_file_location2% - - - - @@ -3537,11 +2991,8 @@
- - Select Folder - tw_fm_text2=to tw_fm_text3=%tw_file_location2% @@ -3557,17 +3008,14 @@ - + - + Please Enter a New %tw_fm_type% Name - - - %tw_filemanager_rename% @@ -3581,11 +3029,8 @@ - - Cancel - filemanageroptions @@ -3607,17 +3052,13 @@ - + - Please Enter a New %tw_fm_type% Name - - - %tw_filemanager_rename% @@ -3631,11 +3072,8 @@ - - Cancel - filemanageroptions @@ -3657,17 +3095,13 @@ - + - Please Enter New Permissions - - - %tw_filemanager_rename% @@ -3680,11 +3114,8 @@ - - Cancel - filemanageroptions @@ -3706,48 +3137,35 @@ - - + %tw_fm_text1% - - + %tw_filename1% - - + %tw_fm_text2% - - + %tw_fm_text3% - - + Press back button to cancel. - - filemanageracction - - - - Swipe to Confirm - - %tw_back% @@ -3764,8 +3182,7 @@ - - + %tw_fm_text1% @@ -3815,17 +3232,13 @@ - - + Please Enter Your Password - - - %tw_crypto_display% @@ -3834,19 +3247,16 @@ - + - + Password Failed, Please Try Again - - Cancel - tw_page_done=1 main @@ -3861,8 +3271,7 @@ - - + Trying Decryption with Your Password @@ -3901,23 +3310,14 @@ - - + Browse to Starting Folder - -
- %tw_terminal_location% - - - - - @@ -3937,11 +3337,8 @@
- - Select Folder - terminalcommand @@ -3955,42 +3352,31 @@ - - - + - Starting Path: %tw_terminal_location% - - - %tw_terminal_command% %tw_terminal_command% - - + - KILL - - - @@ -3998,9 +3384,7 @@ - - @@ -4033,31 +3417,25 @@ - - + ADB Sideload - Wipe Dalvik Cache. - - Wipe Cache. - - - + Swipe to Start Sideload tw_back=advanced tw_action=adbsideload @@ -4071,12 +3449,6 @@ - - - - Swipe to Start Sideload - - main @@ -4093,35 +3465,29 @@ - - + Fix Permissions - - + Note: Fixing permissions is rarely needed. - Also fix SELinux contexts - - - + Fixing SELinux contexts may cause your device to not boot properly. - - + Swipe to Fix Permissions tw_back=advanced tw_action=fixpermissions @@ -4133,12 +3499,6 @@ - - - - Swipe to Fix Permissions - - main @@ -4155,36 +3515,29 @@ - - + Install SuperSU? - - + Your device does not appear to be rooted. - - + Install SuperSU now? This will root your device. - - Do Not Install - tw_page_done=1 - - + Swipe to Install tw_action=installsu tw_action_text1=Installing SuperSU @@ -4192,12 +3545,6 @@ singleaction_page - - - - - Swipe to Install - -- cgit v1.2.3