Material Design: Full screen dialogs
|
Before Width: | Height: | Size: 467 B |
|
Before Width: | Height: | Size: 415 B |
BIN
OpenKeychain/src/main/res/drawable-hdpi/ic_check_white_24dp.png
Normal file
|
After Width: | Height: | Size: 309 B |
BIN
OpenKeychain/src/main/res/drawable-hdpi/ic_close_white_24dp.png
Normal file
|
After Width: | Height: | Size: 324 B |
|
After Width: | Height: | Size: 234 B |
|
After Width: | Height: | Size: 244 B |
|
After Width: | Height: | Size: 531 B |
|
Before Width: | Height: | Size: 404 B |
|
Before Width: | Height: | Size: 345 B |
BIN
OpenKeychain/src/main/res/drawable-mdpi/ic_check_white_24dp.png
Normal file
|
After Width: | Height: | Size: 243 B |
BIN
OpenKeychain/src/main/res/drawable-mdpi/ic_close_white_24dp.png
Normal file
|
After Width: | Height: | Size: 279 B |
|
After Width: | Height: | Size: 206 B |
|
After Width: | Height: | Size: 206 B |
|
After Width: | Height: | Size: 346 B |
|
Before Width: | Height: | Size: 631 B |
|
Before Width: | Height: | Size: 582 B |
BIN
OpenKeychain/src/main/res/drawable-xhdpi/ic_check_white_24dp.png
Normal file
|
After Width: | Height: | Size: 363 B |
BIN
OpenKeychain/src/main/res/drawable-xhdpi/ic_close_white_24dp.png
Normal file
|
After Width: | Height: | Size: 402 B |
|
After Width: | Height: | Size: 259 B |
|
After Width: | Height: | Size: 272 B |
|
After Width: | Height: | Size: 637 B |
|
Before Width: | Height: | Size: 901 B |
|
Before Width: | Height: | Size: 974 B |
|
After Width: | Height: | Size: 460 B |
|
After Width: | Height: | Size: 492 B |
|
After Width: | Height: | Size: 304 B |
|
After Width: | Height: | Size: 316 B |
|
After Width: | Height: | Size: 875 B |
|
After Width: | Height: | Size: 587 B |
|
After Width: | Height: | Size: 662 B |
|
After Width: | Height: | Size: 360 B |
|
After Width: | Height: | Size: 379 B |
|
After Width: | Height: | Size: 1.1 KiB |
@@ -1,26 +0,0 @@
|
||||
<!--
|
||||
Copyright 2013 The Android Open Source Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:dividerPadding="12dp"
|
||||
android:orientation="horizontal"
|
||||
android:showDividers="end" >
|
||||
|
||||
<include layout="@layout/actionbar_include_done_button" />
|
||||
|
||||
</LinearLayout>
|
||||
@@ -1,28 +0,0 @@
|
||||
<!--
|
||||
Copyright 2013 The Android Open Source Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:dividerPadding="12dp"
|
||||
android:orientation="horizontal"
|
||||
android:showDividers="middle">
|
||||
|
||||
<include layout="@layout/actionbar_include_cancel_button" />
|
||||
|
||||
<include layout="@layout/actionbar_include_done_button" />
|
||||
|
||||
</LinearLayout>
|
||||
@@ -17,7 +17,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_marginRight="10dp"
|
||||
android:src="@drawable/ic_action_expand"/>
|
||||
android:src="@drawable/ic_expand_more_black_24dp"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/foldableText"
|
||||
|
||||
10
OpenKeychain/src/main/res/layout/full_screen_dialog.xml
Normal file
@@ -0,0 +1,10 @@
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:dividerPadding="12dp"
|
||||
android:orientation="horizontal"
|
||||
android:showDividers="middle">
|
||||
|
||||
<include layout="@layout/full_screen_dialog_done_button" />
|
||||
|
||||
</LinearLayout>
|
||||
12
OpenKeychain/src/main/res/layout/full_screen_dialog_2.xml
Normal file
@@ -0,0 +1,12 @@
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:dividerPadding="12dp"
|
||||
android:orientation="horizontal"
|
||||
android:showDividers="middle">
|
||||
|
||||
<include layout="@layout/full_screen_dialog_2_cancel_button" />
|
||||
|
||||
<include layout="@layout/full_screen_dialog_2_done_button" />
|
||||
|
||||
</LinearLayout>
|
||||
@@ -1,19 +1,3 @@
|
||||
<!--
|
||||
Copyright 2013 The Android Open Source Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/actionbar_cancel"
|
||||
style="@style/Widget.AppCompat.ActionButton"
|
||||
@@ -30,12 +14,14 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:drawableLeft="@drawable/ic_action_cancel"
|
||||
android:drawableLeft="@drawable/ic_close_white_24dp"
|
||||
android:drawablePadding="8dp"
|
||||
android:gravity="center_vertical"
|
||||
android:paddingRight="20dp"
|
||||
android:filterTouchesWhenObscured="true"
|
||||
style="@style/Widget.AppCompat.Light.ActionBar.TabText"
|
||||
android:textAllCaps="true"
|
||||
android:textSize="14sp"
|
||||
android:text="Cancel (set in-code!)" />
|
||||
|
||||
</FrameLayout>
|
||||
@@ -1,19 +1,3 @@
|
||||
<!--
|
||||
Copyright 2013 The Android Open Source Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/actionbar_done"
|
||||
style="@style/Widget.AppCompat.ActionButton"
|
||||
@@ -30,12 +14,14 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:drawableLeft="@drawable/ic_action_done"
|
||||
android:drawableLeft="@drawable/ic_check_white_24dp"
|
||||
android:drawablePadding="8dp"
|
||||
android:gravity="center_vertical"
|
||||
android:paddingRight="20dp"
|
||||
android:filterTouchesWhenObscured="true"
|
||||
style="@style/Widget.AppCompat.Light.ActionBar.TabText"
|
||||
android:textAllCaps="true"
|
||||
android:textSize="14sp"
|
||||
android:text="Done (set in-code!)" />
|
||||
|
||||
</FrameLayout>
|
||||
@@ -0,0 +1,25 @@
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/full_screen_dialog_done"
|
||||
style="@style/Widget.AppCompat.ActionButton"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<!--
|
||||
android:filterTouchesWhenObscured="true" to prevent Touch-Event Hijacking
|
||||
https://blog.lookout.com/blog/2010/12/09/android-touch-event-hijacking/
|
||||
-->
|
||||
<TextView
|
||||
android:id="@+id/full_screen_dialog_done_text"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="center"
|
||||
android:gravity="center_vertical"
|
||||
android:paddingRight="16dp"
|
||||
android:paddingEnd="16dp"
|
||||
style="@style/Widget.AppCompat.Light.ActionBar.TabText"
|
||||
android:textAllCaps="true"
|
||||
android:textSize="14sp"
|
||||
android:filterTouchesWhenObscured="true"
|
||||
android:text="Done (set in-code!)" />
|
||||
|
||||
</FrameLayout>
|
||||
10
OpenKeychain/src/main/res/layout/full_screen_dialog_old.xml
Normal file
@@ -0,0 +1,10 @@
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:dividerPadding="12dp"
|
||||
android:orientation="horizontal"
|
||||
android:showDividers="end" >
|
||||
|
||||
<include layout="@layout/full_screen_dialog_2_done_button" />
|
||||
|
||||
</LinearLayout>
|
||||
@@ -20,7 +20,7 @@
|
||||
<string name="title_preferences">"Settings"</string>
|
||||
<string name="title_cloud_search_preferences">"Cloud Search Preferences"</string>
|
||||
<string name="title_api_registered_apps">"Apps"</string>
|
||||
<string name="title_key_server_preference">"Keyserver Preference"</string>
|
||||
<string name="title_key_server_preference">"Keyservers"</string>
|
||||
<string name="title_change_passphrase">"Change Passphrase"</string>
|
||||
<string name="title_share_fingerprint_with">"Share fingerprint with…"</string>
|
||||
<string name="title_share_key">"Share key with…"</string>
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
<!-- Background for the actions section (e.g. voice, submit) -->
|
||||
<!--<item name="submitBackground">...</item>-->
|
||||
<!-- Close button icon -->
|
||||
<!--<item name="closeIcon">...</item>-->
|
||||
<item name="closeIcon">@drawable/ic_close_white_24dp</item>
|
||||
<!-- Search button icon -->
|
||||
<!--<item name="searchIcon">...</item>-->
|
||||
<!-- Go/commit button icon -->
|
||||
|
||||