Some small style fixes

This commit is contained in:
Dominik Schürmann 2014-05-06 23:11:10 +02:00
parent 1c2919f07f
commit 8eb74d171b
8 changed files with 46 additions and 33 deletions

View File

@ -64,16 +64,6 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent"> android:layout_height="match_parent">
<TextView
style="@style/SectionHeader"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:text="@string/section_decrypt_verify"
android:layout_above="@+id/decrypt_file_action_decrypt"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true" />
<TextView <TextView
android:id="@+id/decrypt_file_action_decrypt" android:id="@+id/decrypt_file_action_decrypt"
android:paddingLeft="8dp" android:paddingLeft="8dp"
@ -83,12 +73,21 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:minHeight="?android:attr/listPreferredItemHeight" android:minHeight="?android:attr/listPreferredItemHeight"
android:text="@string/btn_decrypt_verify" android:text="@string/btn_decrypt_verify"
android:clickable="true"
style="@style/SelectableItem"
android:drawableRight="@drawable/ic_action_save" android:drawableRight="@drawable/ic_action_save"
android:drawablePadding="8dp" android:drawablePadding="8dp"
android:gravity="center_vertical" android:gravity="center_vertical"
android:layout_alignParentBottom="true" android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true" android:layout_alignParentLeft="true"
android:layout_alignParentStart="true" /> android:layout_alignParentStart="true"
android:layout_marginBottom="8dp" />
<View
android:layout_width="match_parent"
android:layout_height="1dip"
android:background="?android:attr/listDivider"
android:layout_above="@+id/decrypt_file_action_decrypt" />
</RelativeLayout> </RelativeLayout>
</LinearLayout> </LinearLayout>

View File

@ -37,19 +37,25 @@
android:scrollHorizontally="true" android:scrollHorizontally="true"
android:layout_weight="1" /> android:layout_weight="1" />
<View
android:layout_width="match_parent"
android:layout_height="1dip"
android:background="?android:attr/listDivider" />
<LinearLayout <LinearLayout
android:id="@+id/action_decrypt" android:id="@+id/action_decrypt"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:clickable="true" android:clickable="true"
style="@style/SelectableItem" style="@style/SelectableItem"
android:orientation="horizontal"> android:orientation="horizontal"
android:layout_marginBottom="8dp">
<TextView <TextView
android:paddingLeft="8dp" android:paddingLeft="8dp"
android:paddingRight="8dp" android:paddingRight="8dp"
android:textAppearance="?android:attr/textAppearanceMedium" android:textAppearance="?android:attr/textAppearanceMedium"
android:layout_width="wrap_content" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:minHeight="?android:attr/listPreferredItemHeight" android:minHeight="?android:attr/listPreferredItemHeight"
android:text="@string/btn_decrypt_verify" android:text="@string/btn_decrypt_verify"

View File

@ -58,16 +58,6 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent"> android:layout_height="match_parent">
<TextView
style="@style/SectionHeader"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:text="@string/section_encrypt_and_or_sign"
android:layout_above="@+id/action_encrypt_file"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true" />
<TextView <TextView
android:id="@+id/action_encrypt_file" android:id="@+id/action_encrypt_file"
android:paddingLeft="8dp" android:paddingLeft="8dp"
@ -77,12 +67,21 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:minHeight="?android:attr/listPreferredItemHeight" android:minHeight="?android:attr/listPreferredItemHeight"
android:text="@string/btn_encrypt_file" android:text="@string/btn_encrypt_file"
android:clickable="true"
style="@style/SelectableItem"
android:drawableRight="@drawable/ic_action_save" android:drawableRight="@drawable/ic_action_save"
android:drawablePadding="8dp" android:drawablePadding="8dp"
android:gravity="center_vertical" android:gravity="center_vertical"
android:layout_alignParentBottom="true" android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true" android:layout_alignParentLeft="true"
android:layout_alignParentStart="true" /> android:layout_alignParentStart="true"
android:layout_marginBottom="8dp" />
<View
android:layout_width="match_parent"
android:layout_height="1dip"
android:background="?android:attr/listDivider"
android:layout_above="@+id/action_encrypt_file" />
</RelativeLayout> </RelativeLayout>
</LinearLayout> </LinearLayout>

View File

@ -21,19 +21,25 @@
android:hint="@string/encrypt_content_edit_text_hint" android:hint="@string/encrypt_content_edit_text_hint"
android:layout_weight="1" /> android:layout_weight="1" />
<View
android:layout_width="match_parent"
android:layout_height="1dip"
android:background="?android:attr/listDivider" />
<LinearLayout <LinearLayout
android:id="@+id/action_encrypt_share" android:id="@+id/action_encrypt_share"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:clickable="true" android:clickable="true"
style="@style/SelectableItem" style="@style/SelectableItem"
android:orientation="horizontal"> android:orientation="horizontal"
android:layout_marginBottom="8dp">
<TextView <TextView
android:paddingLeft="8dp" android:paddingLeft="8dp"
android:paddingRight="8dp" android:paddingRight="8dp"
android:textAppearance="?android:attr/textAppearanceMedium" android:textAppearance="?android:attr/textAppearanceMedium"
android:layout_width="wrap_content" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:minHeight="?android:attr/listPreferredItemHeight" android:minHeight="?android:attr/listPreferredItemHeight"
android:text="@string/btn_share_encrypted_signed" android:text="@string/btn_share_encrypted_signed"

View File

@ -19,13 +19,14 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginBottom="4dp" android:layout_marginBottom="4dp"
android:layout_marginTop="14dp" android:layout_marginTop="8dp"
android:text="@string/section_keys" /> android:text="@string/section_keys" />
<org.sufficientlysecure.keychain.ui.widget.FixedListView <org.sufficientlysecure.keychain.ui.widget.FixedListView
android:id="@+id/keys" android:id="@+id/keys"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" /> android:layout_height="wrap_content"
android:layout_marginBottom="8dp" />
</LinearLayout> </LinearLayout>

View File

@ -43,7 +43,7 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="0dp" android:layout_height="0dp"
android:layout_marginBottom="4dp" android:layout_marginBottom="4dp"
android:layout_marginTop="14dp" android:layout_marginTop="8dp"
android:text="@string/section_user_ids" android:text="@string/section_user_ids"
android:layout_weight="1" /> android:layout_weight="1" />
@ -109,6 +109,7 @@
android:id="@+id/view_key_action_encrypt" android:id="@+id/view_key_action_encrypt"
android:paddingLeft="8dp" android:paddingLeft="8dp"
android:paddingRight="8dp" android:paddingRight="8dp"
android:layout_marginBottom="8dp"
android:textAppearance="?android:attr/textAppearanceMedium" android:textAppearance="?android:attr/textAppearanceMedium"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"

View File

@ -19,7 +19,7 @@
style="@style/SectionHeader" style="@style/SectionHeader"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="0dp" android:layout_height="0dp"
android:layout_marginTop="14dp" android:layout_marginTop="8dp"
android:text="@string/section_fingerprint" android:text="@string/section_fingerprint"
android:layout_weight="1" /> android:layout_weight="1" />
@ -141,7 +141,8 @@
android:minHeight="?android:attr/listPreferredItemHeight" android:minHeight="?android:attr/listPreferredItemHeight"
android:clickable="true" android:clickable="true"
style="@style/SelectableItem" style="@style/SelectableItem"
android:orientation="horizontal"> android:orientation="horizontal"
android:layout_marginBottom="8dp">
<TextView <TextView
android:paddingLeft="8dp" android:paddingLeft="8dp"

View File

@ -48,9 +48,9 @@
<!-- button --> <!-- button -->
<string name="btn_certify">Certify</string> <string name="btn_certify">Certify</string>
<string name="btn_decrypt_verify">Decrypt and Verify</string> <string name="btn_decrypt_verify">Verify and save decrypted file</string>
<string name="btn_decrypt_verify_clipboard">From Clipboard</string> <string name="btn_decrypt_verify_clipboard">From Clipboard</string>
<string name="btn_encrypt_file">Encrypt File</string> <string name="btn_encrypt_file">Save encrypt file</string>
<string name="btn_save">Save</string> <string name="btn_save">Save</string>
<string name="btn_do_not_save">Cancel</string> <string name="btn_do_not_save">Cancel</string>
<string name="btn_delete">Delete</string> <string name="btn_delete">Delete</string>