From 714245a5ba7222cd34d8dd0857f1ca80eea93db8 Mon Sep 17 00:00:00 2001 From: Jeremy Date: Tue, 17 Oct 2017 17:57:53 +0200 Subject: [PATCH] Add Material style and change layouts --- app/app.iml | 48 ++-- app/src/androidTest/res/drawable/icon.png | Bin 3180 -> 0 bytes app/src/main/AndroidManifest.xml | 69 +++-- .../com/keepassdroid/view/FileNameView.java | 4 +- .../main/res/drawable/button_background.xml | 30 +++ .../drawable/ic_file_upload_white_24dp.xml | 9 + .../res/drawable/ic_folder_white_24dp.xml | 9 + .../main/res/drawable/ic_help_white_24dp.xml | 9 + .../main/res/drawable/ic_key_white_24dp.xml | 9 + .../res/drawable/ic_launcher_folder_small.png | Bin 1522 -> 0 bytes .../main/res/drawable/ic_lock_white_24dp.xml | 9 + .../res/drawable/ic_search_white_24dp.xml | 9 + .../res/drawable/ic_settings_white_24dp.xml | 9 + .../main/res/drawable/ic_share_white_24dp.xml | 9 + .../main/res/drawable/ic_sort_white_24dp.xml | 9 + .../res/drawable/ic_visibility_white_24dp.xml | 9 + .../res/layout-v11/entry_view_contents.xml | 3 +- app/src/main/res/layout/about.xml | 138 +++++----- app/src/main/res/layout/browser_install.xml | 36 ++- app/src/main/res/layout/database_settings.xml | 5 +- app/src/main/res/layout/entry_edit.xml | 251 +++++++++--------- .../main/res/layout/entry_edit_section.xml | 7 +- app/src/main/res/layout/entry_view.xml | 5 +- .../main/res/layout/entry_view_contents.xml | 3 +- app/src/main/res/layout/entry_view_v4.xml | 1 + app/src/main/res/layout/file_selection.xml | 62 +---- .../res/layout/file_selection_filename.xml | 66 ++--- .../res/layout/file_selection_no_recent.xml | 47 +--- app/src/main/res/layout/generate_password.xml | 194 +++++++------- app/src/main/res/layout/group_add_entry.xml | 50 ++-- app/src/main/res/layout/group_edit.xml | 55 ++-- app/src/main/res/layout/group_empty.xml | 5 +- app/src/main/res/layout/password.xml | 114 ++++---- app/src/main/res/layout/set_password.xml | 62 ++--- app/src/main/res/menu-v11/entry.xml | 46 ---- app/src/main/res/menu-v11/entry_edit.xml | 29 -- app/src/main/res/menu-v11/fileselect.xml | 33 --- app/src/main/res/menu-v11/group.xml | 49 ---- app/src/main/res/menu-v11/password.xml | 29 -- app/src/main/res/menu/entry.xml | 47 ++-- app/src/main/res/menu/entry_edit.xml | 13 +- app/src/main/res/menu/fileselect.xml | 22 +- app/src/main/res/menu/group.xml | 51 ++-- app/src/main/res/menu/password.xml | 13 +- app/src/main/res/values-v11/styles.xml | 51 +--- app/src/main/res/values-v21/styles.xml | 54 ++-- app/src/main/res/values/colors.xml | 5 + app/src/main/res/values/dimens.xml | 20 ++ app/src/main/res/values/styles.xml | 30 ++- 49 files changed, 876 insertions(+), 961 deletions(-) delete mode 100644 app/src/androidTest/res/drawable/icon.png create mode 100644 app/src/main/res/drawable/button_background.xml create mode 100644 app/src/main/res/drawable/ic_file_upload_white_24dp.xml create mode 100644 app/src/main/res/drawable/ic_folder_white_24dp.xml create mode 100644 app/src/main/res/drawable/ic_help_white_24dp.xml create mode 100644 app/src/main/res/drawable/ic_key_white_24dp.xml delete mode 100644 app/src/main/res/drawable/ic_launcher_folder_small.png create mode 100644 app/src/main/res/drawable/ic_lock_white_24dp.xml create mode 100644 app/src/main/res/drawable/ic_search_white_24dp.xml create mode 100644 app/src/main/res/drawable/ic_settings_white_24dp.xml create mode 100644 app/src/main/res/drawable/ic_share_white_24dp.xml create mode 100644 app/src/main/res/drawable/ic_sort_white_24dp.xml create mode 100644 app/src/main/res/drawable/ic_visibility_white_24dp.xml delete mode 100644 app/src/main/res/menu-v11/entry.xml delete mode 100644 app/src/main/res/menu-v11/entry_edit.xml delete mode 100644 app/src/main/res/menu-v11/fileselect.xml delete mode 100644 app/src/main/res/menu-v11/group.xml delete mode 100644 app/src/main/res/menu-v11/password.xml create mode 100644 app/src/main/res/values/dimens.xml diff --git a/app/app.iml b/app/app.iml index d2c4e6498..1f01e1168 100644 --- a/app/app.iml +++ b/app/app.iml @@ -53,6 +53,13 @@ + + + + + + + @@ -61,13 +68,6 @@ - - - - - - - @@ -116,14 +116,6 @@ - - - - - - - - @@ -132,14 +124,40 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/src/androidTest/res/drawable/icon.png b/app/src/androidTest/res/drawable/icon.png deleted file mode 100644 index 75024841d327c4fbaefef7c8e9c8d0e892895f93..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3180 zcmV-y43qPTP)-8%y z>?Lk&?1bQy00olTw5rOVwrM3QR77j2sF13vY1JS6sbZvxR;?=9{z8-xlkf-)&`7j@ zLPDIDmN(g8j2*{G>^OcucGvIhdUtxhGxyHUj@Mv*5J2jUj_=Ifnc4H5^PR_?jbWN5 zeUXQUzTo5k06yzs=!5%z{F9Jj7?1K{fTfRP;}p;BPws!b?{g2}k>CBkB{CIxbbfw5 zu&}U@aRCDXfOeKMEa3xB{pG?UJCJiQ7-_%)Z`S)Bu!3D(!%^gw)?^i4ZzND z5(~p)Pqpn2e^vmRc|IAcuA-ZF-YARX;}bMCF~RdV4Gs+pnCaHjJMX;HJ`Mx|A^?UlH$P8vbMxY*I4ckEIFH6+3?ya&Vy|ILPE5)y>q`lz z(_B8xIJ@terw_J$tOrz}(uKZ0DladihaP%}Mn*=ckIx$$8|ksf9uwu9W8J!S0tPdr zzOI(?^78D@alHj9W`m2z6ZWy?t(aVk<50es@0~tF16|#;?eG!uFD%mZ z#`P4b*-V3VTj<2GSHx4#J^Qq=S`UPC{Ql=jJHF3PH~H^w2ExJU@Re6|BvdxuT*%xZB*^{E4!MslIov^*2=VdbYw{>%ralpXsBTJONzHA^PWkyFn>KDF+S*{>I65{i;Ks(rv|-?F(4K05;!qqVhF00Nx$ zk~8}(qlwFkLKy&LVDJ_|m|ufT|5nP)=aFA=D{W&!eNG z@;#V!b$1SU><9PUBi95=OF0HoG%+zzg946vhsUzaSpAi(U13T2?3S4^Ad|rI5NTAH z|5`L4&3_HXO*hFR4sdmKb<1dk*#b8zhQzUe;`Ozhxe&m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W54GoV_c||2t!Y`Y6c-JsI>9-ONt2@s@ zpOo6vD21W;mxf+R}d66yeI1D=%ho34pHmAR_f$)J2sRxo0^+sO}~}! zc)T>sAkJ|S93CE)*OAFoaz(}UggOwAf+hf<^oXL*q8osZ3s#uZ<1g5lO?>&DY}Uty z8?T$f6sh{Qo+F(6pKPhyfXz5I}jZp zkfFeRD`-t>KlN|wJ=ZG<0zH&z2SM86rfQ@0)*Z^HESXimU5sY4zPk>{*jitIlmi?4 zN81}nYdd$|NJB%zszWfOT3dl`*a2#|f*aQj4GnQ0)hjQ*Iy<`=T#0J4NoooDEoT}< z%hG>o0QU}#jgS45moBN+A-VF4E!W^)=wS}XJ#Z|>z-Tb-<}t@CpJ4{|n&R9&;_9`)FSlGI1MWHTHIQEy(%kAJo3 z{PFAkju2a;C2Ji>x$&@3+ zzhQQE_WQ}DymRL-R}*|!4ZueY2C;_~Z{(+hmlBEgtql!Py2|5!0t^7z)gsDo S`hb-H0000 - - + + + - + @@ -25,11 +27,8 @@ - - + + @@ -65,46 +64,44 @@ - + - + - - - - - - - - + + + + + + + - - - + + + + \ No newline at end of file diff --git a/app/src/main/java/com/keepassdroid/view/FileNameView.java b/app/src/main/java/com/keepassdroid/view/FileNameView.java index 1422dd71c..4ff9a33e8 100644 --- a/app/src/main/java/com/keepassdroid/view/FileNameView.java +++ b/app/src/main/java/com/keepassdroid/view/FileNameView.java @@ -40,8 +40,6 @@ public class FileNameView extends RelativeLayout { inflate(context); } - - private void inflate(Context context) { LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); inflater.inflate(R.layout.file_selection_filename, this); @@ -58,7 +56,7 @@ public class FileNameView extends RelativeLayout { TextView tv = (TextView) findViewById(R.id.label_warning); TextView label = (TextView) findViewById(R.id.label_open_by_filename); - RelativeLayout.LayoutParams lp = new RelativeLayout.LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT); + RelativeLayout.LayoutParams lp = new RelativeLayout.LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT); if (warning != -1) { tv.setText(warning); diff --git a/app/src/main/res/drawable/button_background.xml b/app/src/main/res/drawable/button_background.xml new file mode 100644 index 000000000..09bb31e1c --- /dev/null +++ b/app/src/main/res/drawable/button_background.xml @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/drawable/ic_file_upload_white_24dp.xml b/app/src/main/res/drawable/ic_file_upload_white_24dp.xml new file mode 100644 index 000000000..e90605c08 --- /dev/null +++ b/app/src/main/res/drawable/ic_file_upload_white_24dp.xml @@ -0,0 +1,9 @@ + + + diff --git a/app/src/main/res/drawable/ic_folder_white_24dp.xml b/app/src/main/res/drawable/ic_folder_white_24dp.xml new file mode 100644 index 000000000..504d3c6fa --- /dev/null +++ b/app/src/main/res/drawable/ic_folder_white_24dp.xml @@ -0,0 +1,9 @@ + + + diff --git a/app/src/main/res/drawable/ic_help_white_24dp.xml b/app/src/main/res/drawable/ic_help_white_24dp.xml new file mode 100644 index 000000000..d813b72b8 --- /dev/null +++ b/app/src/main/res/drawable/ic_help_white_24dp.xml @@ -0,0 +1,9 @@ + + + diff --git a/app/src/main/res/drawable/ic_key_white_24dp.xml b/app/src/main/res/drawable/ic_key_white_24dp.xml new file mode 100644 index 000000000..197163858 --- /dev/null +++ b/app/src/main/res/drawable/ic_key_white_24dp.xml @@ -0,0 +1,9 @@ + + + diff --git a/app/src/main/res/drawable/ic_launcher_folder_small.png b/app/src/main/res/drawable/ic_launcher_folder_small.png deleted file mode 100644 index 5df8d60f04bcd636d11402840ef9cccaf4aad404..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1522 zcmVPx#24YJ`L;(K){{a7>y{D4^000SaNLh0L01FcU01FcV0GgZ_00007bV*G`2iOb; z5DW@B*yK0>00nYML_t(o!|j(%Y+P3r$A9PE`{w(N$JkErIH{f3b!@5>B`9eTin@Xg z5+GJ=sVae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mh{+x66tP6t4%2?%8HkZx01k4?ymN5q*3(Fzv>+7vXqfrOe z69AQmI5pdJ*$jdpx3si8y?Eh5b$R(?=Yt@aFO|Ye)79$2=~Ji9T4!<2VU5K(J5bCR z!@c|WSy@@R|LvDv{1)&B;P1yOFjCTtjet(C*K4k>-rQVWy}6b^IUon*X6NQ+E?#`{ ziK|zix->U;Zr)f^4V)Vf!*C*BC=^7*H0t$tfp>uWK>R4~1u~+P1v2@3A^-T|;`Hq7 z?CFJt$7jMYoUzV5xpr&yFF$_cN3R3_N}PIh7n5U(84Y2w0ku=(|7(Dg?jQQ$g><<5 Y8^FyV#?4~7fdBvi07*qoM6N<$f={f|vj6}9 diff --git a/app/src/main/res/drawable/ic_lock_white_24dp.xml b/app/src/main/res/drawable/ic_lock_white_24dp.xml new file mode 100644 index 000000000..27a2aa1dc --- /dev/null +++ b/app/src/main/res/drawable/ic_lock_white_24dp.xml @@ -0,0 +1,9 @@ + + + diff --git a/app/src/main/res/drawable/ic_search_white_24dp.xml b/app/src/main/res/drawable/ic_search_white_24dp.xml new file mode 100644 index 000000000..47432c174 --- /dev/null +++ b/app/src/main/res/drawable/ic_search_white_24dp.xml @@ -0,0 +1,9 @@ + + + diff --git a/app/src/main/res/drawable/ic_settings_white_24dp.xml b/app/src/main/res/drawable/ic_settings_white_24dp.xml new file mode 100644 index 000000000..ce997a727 --- /dev/null +++ b/app/src/main/res/drawable/ic_settings_white_24dp.xml @@ -0,0 +1,9 @@ + + + diff --git a/app/src/main/res/drawable/ic_share_white_24dp.xml b/app/src/main/res/drawable/ic_share_white_24dp.xml new file mode 100644 index 000000000..904066636 --- /dev/null +++ b/app/src/main/res/drawable/ic_share_white_24dp.xml @@ -0,0 +1,9 @@ + + + diff --git a/app/src/main/res/drawable/ic_sort_white_24dp.xml b/app/src/main/res/drawable/ic_sort_white_24dp.xml new file mode 100644 index 000000000..a0c153ad0 --- /dev/null +++ b/app/src/main/res/drawable/ic_sort_white_24dp.xml @@ -0,0 +1,9 @@ + + + diff --git a/app/src/main/res/drawable/ic_visibility_white_24dp.xml b/app/src/main/res/drawable/ic_visibility_white_24dp.xml new file mode 100644 index 000000000..6c95a5d29 --- /dev/null +++ b/app/src/main/res/drawable/ic_visibility_white_24dp.xml @@ -0,0 +1,9 @@ + + + diff --git a/app/src/main/res/layout-v11/entry_view_contents.xml b/app/src/main/res/layout-v11/entry_view_contents.xml index 2a9543e56..917075af7 100644 --- a/app/src/main/res/layout-v11/entry_view_contents.xml +++ b/app/src/main/res/layout-v11/entry_view_contents.xml @@ -17,7 +17,8 @@ You should have received a copy of the GNU General Public License along with KeePassDroid. If not, see . --> -. --> - + + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/AboutText"/> + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:scaleType="fitXY" + tools:ignore="ContentDescription" + android:src="@android:drawable/divider_horizontal_dark"/> + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/version_label"/> + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="end"/> + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:scaleType="fitXY" + tools:ignore="ContentDescription" + android:src="@android:drawable/divider_horizontal_dark"/> + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/about_homepage"/> + + - - + android:layout_height="wrap_content" + android:text="@string/issues" + android:layout_gravity="end" + android:autoLink="web"/> + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/about_twitter"/> + android:layout_height="wrap_content" + android:text="@string/twitter" + android:layout_gravity="end" + android:autoLink="web"/> + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:scaleType="fitXY" + tools:ignore="ContentDescription" + android:src="@android:drawable/divider_horizontal_dark"/> + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:text="@string/disclaimer_formal"/>