diff options
author | Thialfihar <thialfihar@gmail.com> | 2010-04-06 19:54:51 +0000 |
---|---|---|
committer | Thialfihar <thialfihar@gmail.com> | 2010-04-06 19:54:51 +0000 |
commit | 42f1720bb32b5404ae9b78c0b042b143b6f507af (patch) | |
tree | 9fc2abf69b8e8d0a7268a044ca6dfa301bd4f252 /res/layout | |
parent | af9342a2cc06b070f1537f69d11d4f1d5a4578ce (diff) | |
download | open-keychain-42f1720bb32b5404ae9b78c0b042b143b6f507af.tar.gz open-keychain-42f1720bb32b5404ae9b78c0b042b143b6f507af.tar.bz2 open-keychain-42f1720bb32b5404ae9b78c0b042b143b6f507af.zip |
initial commit of v0.8.0
Diffstat (limited to 'res/layout')
-rw-r--r-- | res/layout/account_item.xml | 35 | ||||
-rw-r--r-- | res/layout/create_key.xml | 52 | ||||
-rw-r--r-- | res/layout/decrypt_message.xml | 97 | ||||
-rw-r--r-- | res/layout/edit_key.xml | 58 | ||||
-rw-r--r-- | res/layout/edit_key_key_item.xml | 113 | ||||
-rw-r--r-- | res/layout/edit_key_section.xml | 66 | ||||
-rw-r--r-- | res/layout/edit_key_user_id_item.xml | 96 | ||||
-rw-r--r-- | res/layout/encrypt_message.xml | 95 | ||||
-rw-r--r-- | res/layout/key_list_child_item_master_key.xml | 72 | ||||
-rw-r--r-- | res/layout/key_list_child_item_sub_key.xml | 70 | ||||
-rw-r--r-- | res/layout/key_list_child_item_user_id.xml | 33 | ||||
-rw-r--r-- | res/layout/key_list_group_item.xml | 52 | ||||
-rw-r--r-- | res/layout/mailbox_message_item.xml | 57 | ||||
-rw-r--r-- | res/layout/main.xml | 61 | ||||
-rw-r--r-- | res/layout/select_public_key.xml | 54 | ||||
-rw-r--r-- | res/layout/select_public_key_item.xml | 96 | ||||
-rw-r--r-- | res/layout/select_secret_key.xml | 30 | ||||
-rw-r--r-- | res/layout/select_secret_key_item.xml | 88 |
18 files changed, 1225 insertions, 0 deletions
diff --git a/res/layout/account_item.xml b/res/layout/account_item.xml new file mode 100644 index 000000000..e37000ff0 --- /dev/null +++ b/res/layout/account_item.xml @@ -0,0 +1,35 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2010 Thialfihar <thi@thialfihar.org> + + 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:singleLine="true" + android:layout_marginRight="?android:attr/scrollbarSize" + android:paddingLeft="6dip" + android:paddingTop="6dip" + android:paddingBottom="6dip" + android:layout_width="fill_parent" + android:layout_height="?android:attr/listPreferredItemHeight"> + +<TextView + android:id="@+id/account_name" + android:text="someone@gmail.com" + android:textAppearance="?android:attr/textAppearanceLarge" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical"/> + +</LinearLayout> diff --git a/res/layout/create_key.xml b/res/layout/create_key.xml new file mode 100644 index 000000000..569b703f5 --- /dev/null +++ b/res/layout/create_key.xml @@ -0,0 +1,52 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2010 Thialfihar <thi@thialfihar.org> + + 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. +--> + +<ScrollView + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_height="fill_parent" + android:layout_width="fill_parent"> + <TableLayout + android:layout_height="fill_parent" + android:layout_width="fill_parent" + android:stretchColumns="1" + android:layout_marginRight="?android:attr/scrollbarSize" + android:paddingLeft="6dip"> + <TableRow> + <TextView android:id="@+id/label_algorithm" + android:text="Algorithm" + android:layout_height="wrap_content" + android:layout_width="wrap_content" + android:layout_gravity="center_vertical" + android:paddingRight="10dip"/> + <Spinner + android:id="@+id/algorithm" + android:layout_width="fill_parent" + android:layout_height="wrap_content"/> + </TableRow> + <TableRow> + <TextView android:id="@+id/label_size" + android:text="Key Size" + android:layout_height="wrap_content" + android:layout_width="wrap_content" + android:layout_gravity="center_vertical" + android:paddingRight="10dip"/> + <EditText android:id="@+id/size" + android:text="1024" + android:layout_height="wrap_content" + android:layout_width="fill_parent" android:gravity="right" android:numeric="integer"/> + </TableRow> + </TableLayout> +</ScrollView> diff --git a/res/layout/decrypt_message.xml b/res/layout/decrypt_message.xml new file mode 100644 index 000000000..2a0aa153d --- /dev/null +++ b/res/layout/decrypt_message.xml @@ -0,0 +1,97 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2010 Thialfihar <thi@thialfihar.org> + + 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:orientation="vertical" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:fillViewport="true"> + +<EditText + android:id="@+id/message" + android:inputType="text|textCapSentences|textMultiLine|textLongMessage" + android:layout_width="fill_parent" + android:layout_height="0dip" + android:layout_weight="1" + android:gravity="top"/> + +<LinearLayout + android:orientation="horizontal" + android:layout_height="wrap_content" + android:layout_width="fill_parent" + android:paddingLeft="5dip" + android:paddingRight="5dip"> + +<LinearLayout + android:id="@+id/layout_signature" + android:orientation="horizontal" + android:layout_height="wrap_content" + android:layout_width="wrap_content" + android:layout_weight="2"> + +<RelativeLayout + android:layout_height="wrap_content" + android:layout_width="wrap_content"> +<ImageView + android:id="@+id/ic_signature" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:src="@drawable/signed_large"/> + +<ImageView + android:id="@+id/ic_signature_status" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:src="@drawable/overlay_error"/> + +</RelativeLayout> + +<LinearLayout + android:orientation="vertical" + android:layout_height="wrap_content" + android:layout_width="wrap_content" + android:paddingLeft="5dip"> + +<TextView + android:id="@+id/main_user_id" + android:text="Main User Id" + android:textAppearance="?android:attr/textAppearanceMedium" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="left"/> + +<TextView + android:id="@+id/main_user_id_rest" + android:text="Main User Id Rest" + android:textAppearance="?android:attr/textAppearanceSmall" + android:layout_width="wrap_content" + android:layout_height="wrap_content" android:layout_gravity="left"/> + +</LinearLayout> +</LinearLayout> + +<Button + android:id="@+id/btn_decrypt" + android:text="@string/btn_decrypt" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_weight="1"/> + +</LinearLayout> + +</LinearLayout> + diff --git a/res/layout/edit_key.xml b/res/layout/edit_key.xml new file mode 100644 index 000000000..2fceeb5a3 --- /dev/null +++ b/res/layout/edit_key.xml @@ -0,0 +1,58 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2010 Thialfihar <thi@thialfihar.org> + + 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:orientation="vertical" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:paddingTop="5dip" + android:fillViewport="true"> + +<ScrollView + android:layout_width="fill_parent" + android:layout_height="0dip" + android:layout_weight="1"> +<LinearLayout + android:id="@+id/container" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:orientation="vertical" + android:layout_marginRight="?android:attr/scrollbarSize"/> +</ScrollView> + +<LinearLayout + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:orientation="horizontal" + style="@android:style/ButtonBar"> + + <Button + android:id="@+id/btn_save" + android:layout_width="0dip" + android:layout_height="wrap_content" + android:layout_weight="1" + android:text="@string/btn_save"/> + + <Button + android:id="@+id/btn_discard" + android:layout_width="0dip" + android:layout_height="wrap_content" + android:layout_weight="1" + android:text="@string/btn_doNotSave"/> +</LinearLayout> + +</LinearLayout> diff --git a/res/layout/edit_key_key_item.xml b/res/layout/edit_key_key_item.xml new file mode 100644 index 000000000..46de4a977 --- /dev/null +++ b/res/layout/edit_key_key_item.xml @@ -0,0 +1,113 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2010 Thialfihar <thi@thialfihar.org> + + 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. +--> + +<org.thialfihar.android.apg.ui.widget.KeyEditor + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:orientation="vertical" + android:paddingLeft="5dip"> + +<View + android:id="@+id/separator" + android:layout_width="fill_parent" + android:layout_height="1dip" + android:background="?android:attr/listDivider"/> + +<LinearLayout + android:layout_height="wrap_content" + android:layout_width="fill_parent" + android:orientation="horizontal"> + <TableLayout + android:layout_height="wrap_content" + android:layout_width="0dip" + android:layout_weight="1" + android:layout_marginLeft="16dip" + android:stretchColumns="1"> + <TableRow> + <TextView android:id="@+id/label_key_id" android:text="Key ID" + android:layout_height="wrap_content" + android:layout_width="wrap_content" + android:layout_gravity="center_vertical" + android:paddingRight="10dip"/> + <TextView + android:id="@+id/key_id" + android:text="00000000 00000000" + android:layout_height="wrap_content" + android:layout_width="wrap_content" + android:paddingRight="5dip" + android:typeface="monospace"/> + </TableRow> + <TableRow> + <TextView android:id="@+id/label_algorithm" + android:text="Algorithm" + android:layout_height="wrap_content" + android:layout_width="wrap_content" + android:layout_gravity="center_vertical" + android:paddingRight="10dip"/> + <TextView android:id="@+id/algorithm" + android:text="Name" + android:layout_height="wrap_content" + android:layout_width="wrap_content" + android:paddingRight="5dip"/> + </TableRow> + <TableRow> + <TextView android:id="@+id/label_creation" + android:text="Creation" + android:layout_height="wrap_content" + android:layout_width="wrap_content" + android:layout_gravity="center_vertical" + android:paddingRight="10dip"/> + <TextView + android:id="@+id/creation" + android:layout_width="fill_parent" + android:layout_height="wrap_content"/> + </TableRow> + <TableRow> + <TextView android:id="@+id/label_expiry" + android:text="Expiry" + android:layout_height="wrap_content" + android:layout_width="wrap_content" + android:layout_gravity="center_vertical" + android:paddingRight="10dip"/> + <Button + android:id="@+id/expiry" + android:layout_width="fill_parent" + android:layout_height="wrap_content"/> + </TableRow> + <TableRow> + <TextView android:id="@+id/label_usage" + android:text="Usage" + android:layout_height="wrap_content" + android:layout_width="wrap_content" + android:layout_gravity="center_vertical" + android:paddingRight="10dip"/> + <Spinner + android:id="@+id/usage" + android:layout_width="fill_parent" + android:layout_height="wrap_content"/> + </TableRow> + </TableLayout> + + <ImageButton + android:id="@+id/edit_delete" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + style="@style/MinusButton" + android:layout_gravity="center_vertical"/> + +</LinearLayout> +</org.thialfihar.android.apg.ui.widget.KeyEditor> diff --git a/res/layout/edit_key_section.xml b/res/layout/edit_key_section.xml new file mode 100644 index 000000000..b3a48f87e --- /dev/null +++ b/res/layout/edit_key_section.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2010 Thialfihar <thi@thialfihar.org> + + 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. +--> + +<org.thialfihar.android.apg.ui.widget.SectionView + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:orientation="vertical"> + + <View + android:layout_width="fill_parent" + android:layout_height="1dip" + android:background="?android:attr/listDivider"/> + + <LinearLayout + android:id="@+id/header" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_marginLeft="14dip" + android:layout_marginTop="2dip" + android:layout_marginBottom="2dip" + android:orientation="horizontal" + android:gravity="center_vertical" + android:focusable="true" + android:clickable="true"> + + <TextView + android:id="@+id/title" + android:text="Section Name" + android:layout_width="0dip" + android:layout_height="wrap_content" + android:layout_weight="1" + android:textAppearance="?android:attr/textAppearanceMedium" + android:singleLine="true" + android:ellipsize="marquee" + android:fadingEdge="horizontal"/> + + <ImageView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:duplicateParentState="true" + style="@style/PlusButton"/> + + </LinearLayout> + + <LinearLayout + android:id="@+id/editors" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:paddingBottom="6dip" + android:orientation="vertical"/> + +</org.thialfihar.android.apg.ui.widget.SectionView> diff --git a/res/layout/edit_key_user_id_item.xml b/res/layout/edit_key_user_id_item.xml new file mode 100644 index 000000000..998c436cb --- /dev/null +++ b/res/layout/edit_key_user_id_item.xml @@ -0,0 +1,96 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2010 Thialfihar <thi@thialfihar.org> + + 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. +--> + +<org.thialfihar.android.apg.ui.widget.UserIdEditor + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:orientation="vertical" + android:paddingLeft="5dip"> + +<View + android:id="@+id/separator" + android:layout_width="fill_parent" + android:layout_height="1dip" + android:background="?android:attr/listDivider"/> + +<RadioButton + android:id="@+id/is_main_user_id" android:text="Main User ID" + android:layout_height="wrap_content" android:layout_width="wrap_content" + android:layout_marginLeft="20dip"/> + +<LinearLayout + android:layout_height="wrap_content" + android:layout_width="fill_parent" + android:orientation="horizontal"> + <TableLayout + android:layout_height="wrap_content" + android:layout_width="0dip" + android:layout_weight="1" + android:layout_marginLeft="16dip"> + <TableRow> + <TextView + android:id="@+id/name_label" + android:text="Name" + android:layout_gravity="center_vertical" + android:layout_height="wrap_content" + android:layout_width="wrap_content" + android:paddingRight="5dip"/> + <EditText + android:id="@+id/name" + android:layout_weight="1" + android:layout_height="wrap_content" + android:layout_width="fill_parent"/> + </TableRow> + <TableRow> + <TextView + android:id="@+id/email_label" + android:text="Email" + android:layout_gravity="center_vertical" + android:layout_height="wrap_content" + android:layout_width="wrap_content" + android:paddingRight="5dip"/> + <EditText + android:id="@+id/email" + android:layout_weight="1" + android:layout_height="wrap_content" + android:layout_width="fill_parent"/> + </TableRow> + <TableRow> + <TextView + android:id="@+id/comment_label" + android:text="Comment" + android:layout_gravity="center_vertical" + android:layout_height="wrap_content" + android:layout_width="wrap_content" + android:paddingRight="5dip"/> + <EditText + android:id="@+id/comment" + android:layout_weight="1" + android:layout_height="wrap_content" + android:layout_width="fill_parent"/> + </TableRow> + </TableLayout> + + <ImageButton + android:id="@+id/edit_delete" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + style="@style/MinusButton" + android:layout_gravity="center_vertical"/> + +</LinearLayout> +</org.thialfihar.android.apg.ui.widget.UserIdEditor> diff --git a/res/layout/encrypt_message.xml b/res/layout/encrypt_message.xml new file mode 100644 index 000000000..254552e03 --- /dev/null +++ b/res/layout/encrypt_message.xml @@ -0,0 +1,95 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2010 Thialfihar <thi@thialfihar.org> + + 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:orientation="vertical" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:fillViewport="true"> + +<EditText + android:id="@+id/message" + android:layout_width="fill_parent" + android:layout_height="0dip" + android:layout_weight="1" + android:gravity="top" + android:inputType="text|textCapSentences|textMultiLine|textLongMessage"> +</EditText> + +<LinearLayout + android:layout_height="wrap_content" + android:layout_width="fill_parent" android:paddingBottom="3dip"> + +<CheckBox + android:text="@string/sign" + android:id="@+id/sign" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical"/> + +<LinearLayout + android:orientation="vertical" + android:layout_height="wrap_content" + android:layout_width="fill_parent" + android:layout_gravity="center_vertical" + android:paddingRight="5dip"> + +<TextView + android:id="@+id/main_user_id" + android:text="Main User Id" + android:textAppearance="?android:attr/textAppearanceMedium" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="right"> +</TextView> + +<TextView + android:id="@+id/main_user_id_rest" + android:text="Main User Id Rest" + android:textAppearance="?android:attr/textAppearanceSmall" + android:layout_width="wrap_content" + android:layout_height="wrap_content" android:layout_gravity="right"> +</TextView> + +</LinearLayout> +</LinearLayout> + +<LinearLayout + android:orientation="horizontal" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + style="@android:style/ButtonBar"> + +<Button + android:text="@string/btn_selectEncryptKeys" + android:id="@+id/btn_selectEncryptKeys" + android:layout_weight="1" + android:layout_width="0dip" + android:layout_height="wrap_content"/> + +<Button + android:id="@+id/btn_send" + android:text="@string/btn_send" + android:layout_weight="1" + android:layout_width="0dip" + android:layout_height="wrap_content"/> + +</LinearLayout> + +</LinearLayout> + + diff --git a/res/layout/key_list_child_item_master_key.xml b/res/layout/key_list_child_item_master_key.xml new file mode 100644 index 000000000..47eba65b5 --- /dev/null +++ b/res/layout/key_list_child_item_master_key.xml @@ -0,0 +1,72 @@ +<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2010 Thialfihar <thi@thialfihar.org>
+
+ 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:singleLine="true"
+ android:paddingLeft="10dip"
+ android:layout_marginRight="?android:attr/scrollbarSize"
+ android:layout_height="?android:attr/listPreferredItemHeight" android:layout_width="fill_parent">
+
+<LinearLayout
+ android:layout_height="wrap_content"
+ android:layout_width="fill_parent"
+ android:orientation="horizontal"
+ android:paddingRight="3dip">
+
+<ImageView
+ android:id="@+id/ic_master_key"
+ android:src="@drawable/key_small"
+ android:paddingRight="6dip"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content" android:layout_gravity="center_vertical"/>
+
+<TextView
+ android:id="@+id/key_id"
+ android:text="Key ID"
+ android:textAppearance="?android:attr/textAppearanceMedium"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content" android:paddingRight="5dip" android:typeface="monospace"/>
+
+<TextView
+ android:id="@+id/key_details"
+ android:text="(RSA, 1024bit)"
+ android:textAppearance="?android:attr/textAppearanceSmall"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"/>
+
+
+<LinearLayout
+ android:gravity="right"
+ android:orientation="horizontal"
+ android:layout_width="fill_parent" android:paddingBottom="2dip" android:paddingTop="2dip" android:layout_height="fill_parent" android:layout_gravity="center_vertical">
+
+<ImageView
+ android:id="@+id/ic_encrypt_key"
+ android:src="@drawable/encrypted_small"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"/>
+
+<ImageView
+ android:id="@+id/ic_sign_key"
+ android:src="@drawable/signed_small"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"/>
+
+</LinearLayout>
+
+</LinearLayout>
+</LinearLayout>
\ No newline at end of file diff --git a/res/layout/key_list_child_item_sub_key.xml b/res/layout/key_list_child_item_sub_key.xml new file mode 100644 index 000000000..085d78f05 --- /dev/null +++ b/res/layout/key_list_child_item_sub_key.xml @@ -0,0 +1,70 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2010 Thialfihar <thi@thialfihar.org> + + 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:singleLine="true" + android:paddingLeft="40dip" + android:layout_marginRight="?android:attr/scrollbarSize" + android:layout_height="?android:attr/listPreferredItemHeight" + android:layout_width="fill_parent"> + +<LinearLayout + android:layout_height="wrap_content" + android:layout_width="fill_parent" + android:orientation="horizontal" + android:paddingRight="3dip"> + +<TextView + android:id="@+id/key_id" + android:text="Key ID" + android:textAppearance="?android:attr/textAppearanceMedium" + android:layout_width="wrap_content" + android:layout_height="wrap_content" android:paddingRight="5dip" android:typeface="monospace"/> + +<TextView + android:id="@+id/key_details" + android:text="(RSA, 1024bit)" + android:textAppearance="?android:attr/textAppearanceSmall" + android:layout_width="wrap_content" + android:layout_height="wrap_content"/> + + +<LinearLayout + android:gravity="right" + android:orientation="horizontal" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:paddingBottom="2dip" + android:paddingTop="2dip" + android:layout_gravity="center_vertical"> + +<ImageView + android:id="@+id/ic_encrypt_key" + android:src="@drawable/encrypted_small" + android:layout_width="wrap_content" + android:layout_height="wrap_content"/> + +<ImageView + android:id="@+id/ic_sign_key" + android:src="@drawable/signed_small" + android:layout_width="wrap_content" + android:layout_height="wrap_content"/> + +</LinearLayout> + +</LinearLayout> +</LinearLayout>
\ No newline at end of file diff --git a/res/layout/key_list_child_item_user_id.xml b/res/layout/key_list_child_item_user_id.xml new file mode 100644 index 000000000..80cdd2867 --- /dev/null +++ b/res/layout/key_list_child_item_user_id.xml @@ -0,0 +1,33 @@ +<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2010 Thialfihar <thi@thialfihar.org>
+
+ 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:paddingLeft="40dip"
+ android:layout_marginRight="?android:attr/scrollbarSize"
+ android:singleLine="true"
+ android:layout_width="fill_parent"
+ android:layout_height="?android:attr/listPreferredItemHeight">
+
+<TextView
+ android:id="@+id/user_id"
+ android:text="User ID"
+ android:textAppearance="?android:attr/textAppearanceSmall"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:paddingRight="3dip"/>
+
+</LinearLayout>
diff --git a/res/layout/key_list_group_item.xml b/res/layout/key_list_group_item.xml new file mode 100644 index 000000000..aaada82e3 --- /dev/null +++ b/res/layout/key_list_group_item.xml @@ -0,0 +1,52 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2010 Thialfihar <thi@thialfihar.org> + + 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:singleLine="true" + android:layout_marginRight="?android:attr/scrollbarSize" + android:layout_width="fill_parent" + android:layout_height="?android:attr/listPreferredItemHeight"> + +<LinearLayout + android:orientation="vertical" + android:layout_width="fill_parent" + android:layout_height="wrap_content" android:paddingLeft="36dip"> + +<TextView + android:id="@+id/main_user_id" + android:text="Main User ID" + android:textAppearance="?android:attr/textAppearanceMedium" + android:layout_width="wrap_content" + android:layout_height="wrap_content"/> + +<TextView + android:id="@+id/main_user_id_rest" + android:text="<user@somewhere.com>" + android:textAppearance="?android:attr/textAppearanceSmall" + android:layout_width="wrap_content" + android:layout_height="wrap_content"/> + +</LinearLayout> + +<LinearLayout + android:orientation="vertical" + android:layout_width="fill_parent" + android:layout_height="wrap_content"> + +</LinearLayout> + +</LinearLayout>
\ No newline at end of file diff --git a/res/layout/mailbox_message_item.xml b/res/layout/mailbox_message_item.xml new file mode 100644 index 000000000..b2b5e91d4 --- /dev/null +++ b/res/layout/mailbox_message_item.xml @@ -0,0 +1,57 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2010 Thialfihar <thi@thialfihar.org> + + 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:singleLine="true" + android:paddingLeft="3dip" + android:layout_marginRight="?android:attr/scrollbarSize" + android:paddingTop="3dip" + android:paddingBottom="3dip" + android:layout_height="?android:attr/listPreferredItemHeight" + android:layout_width="fill_parent"> + +<ImageView + android:id="@+id/ic_encrypted" + android:src="@drawable/encrypted" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_centerVertical="true"/> + +<LinearLayout + android:orientation="vertical" + android:paddingLeft="5dip" + android:layout_weight="1" + android:layout_width="fill_parent" + android:layout_height="wrap_content"> + +<TextView + android:id="@+id/subject" + android:text="Subject" + android:textAppearance="?android:attr/textAppearanceMedium" + android:layout_width="wrap_content" + android:layout_height="wrap_content"/> + +<TextView + android:id="@+id/email_address" + android:text="user@somewhere.com" + android:textAppearance="?android:attr/textAppearanceSmall" + android:layout_width="wrap_content" + android:layout_height="wrap_content"/> + +</LinearLayout> + +</LinearLayout>
\ No newline at end of file diff --git a/res/layout/main.xml b/res/layout/main.xml new file mode 100644 index 000000000..81c5f224b --- /dev/null +++ b/res/layout/main.xml @@ -0,0 +1,61 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2010 Thialfihar <thi@thialfihar.org> + + 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:orientation="vertical" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:paddingTop="5dip" + android:fillViewport="true"> + +<ScrollView + android:layout_marginTop="10dip" + android:layout_width="fill_parent" + android:layout_height="0dip" + android:layout_weight="1"> + +<ListView + android:id="@+id/account_list" + android:layout_width="fill_parent" + android:layout_height="wrap_content"> +</ListView> + +</ScrollView> + +<LinearLayout + android:orientation="horizontal" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + style="@android:style/ButtonBar"> + +<Button + android:id="@+id/btn_encryptMessage" + android:text="@string/btn_encryptMessage" + android:layout_width="wrap_content" + android:layout_weight="1" + android:layout_height="wrap_content"/> + +<Button + android:id="@+id/btn_decryptMessage" + android:text="@string/btn_decryptMessage" + android:layout_width="wrap_content" + android:layout_weight="1" + android:layout_height="wrap_content"/> + +</LinearLayout> + +</LinearLayout>
\ No newline at end of file diff --git a/res/layout/select_public_key.xml b/res/layout/select_public_key.xml new file mode 100644 index 000000000..9a2d9f578 --- /dev/null +++ b/res/layout/select_public_key.xml @@ -0,0 +1,54 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2010 Thialfihar <thi@thialfihar.org> + + 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:orientation="vertical" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:fillViewport="true"> + +<ListView + android:id="@+id/list" + android:choiceMode="multipleChoice" + android:layout_width="fill_parent" + android:layout_height="0dip" + android:layout_weight="1"> +</ListView> + +<LinearLayout + android:orientation="horizontal" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + style="@android:style/ButtonBar"> + +<Button + android:text="@android:string/ok" + android:id="@+id/btn_ok" + android:layout_width="0dip" + android:layout_height="wrap_content" + android:layout_weight="1"/> + +<Button + android:text="@android:string/cancel" + android:id="@+id/btn_cancel" + android:layout_width="0dip" + android:layout_height="wrap_content" + android:layout_weight="1"/> + +</LinearLayout> + +</LinearLayout> diff --git a/res/layout/select_public_key_item.xml b/res/layout/select_public_key_item.xml new file mode 100644 index 000000000..aba0c09b9 --- /dev/null +++ b/res/layout/select_public_key_item.xml @@ -0,0 +1,96 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2010 Thialfihar <thi@thialfihar.org> + + 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:singleLine="true" + android:paddingLeft="3dip" + android:paddingRight="?android:attr/scrollbarSize" + android:layout_height="?android:attr/listPreferredItemHeight" + android:layout_width="fill_parent"> + +<CheckBox + android:id="@+id/selected" + android:focusable="false" + android:focusableInTouchMode="false" + android:clickable="false" + android:layout_width="wrap_content" + android:layout_height="wrap_content"/> + +<LinearLayout + android:orientation="vertical" + android:paddingLeft="5dip" + android:layout_width="0dip" + android:layout_height="wrap_content" + android:layout_weight="1"> + +<TextView + android:id="@+id/main_user_id" + android:text="Main User ID" + android:textAppearance="?android:attr/textAppearanceLarge" + android:layout_width="wrap_content" + android:layout_height="wrap_content"/> + +<TextView + android:id="@+id/main_user_id_rest" + android:text="<user@somewhere.com>" + android:textAppearance="?android:attr/textAppearanceSmall" + android:layout_width="wrap_content" + android:layout_height="wrap_content"/> +</LinearLayout> + +<LinearLayout + android:id="@+id/right_column" + android:orientation="vertical" + android:minWidth="90dip" + android:paddingLeft="3dip" + android:gravity="right" + android:layout_width="wrap_content" + android:layout_height="wrap_content"> + +<TextView + android:id="@+id/key_id" + android:text="BBBBBBBB" + android:textAppearance="?android:attr/textAppearanceMedium" + android:typeface="monospace" + android:layout_width="wrap_content" + android:layout_height="fill_parent"/> + +<TextView + android:id="@+id/creation" + android:textAppearance="?android:attr/textAppearanceSmall" + android:text="31.12.2009" + android:layout_width="wrap_content" + android:layout_height="wrap_content"/> + +<TextView + android:id="@+id/expiry" + android:textAppearance="?android:attr/textAppearanceSmall" + android:text="31.12.2010" + android:layout_width="wrap_content" + android:layout_height="wrap_content"/> + +<TextView + android:id="@+id/status" + android:textAppearance="?android:attr/textAppearanceSmall" + android:text="expired" + android:textStyle="italic" + android:layout_width="wrap_content" + android:layout_height="wrap_content"/> + +</LinearLayout> + +</LinearLayout>
\ No newline at end of file diff --git a/res/layout/select_secret_key.xml b/res/layout/select_secret_key.xml new file mode 100644 index 000000000..64967ace6 --- /dev/null +++ b/res/layout/select_secret_key.xml @@ -0,0 +1,30 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2010 Thialfihar <thi@thialfihar.org> + + 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:orientation="vertical" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:fillViewport="true"> + +<ListView + android:id="@+id/list" + android:layout_width="fill_parent" + android:layout_height="fill_parent"> +</ListView> + +</LinearLayout> diff --git a/res/layout/select_secret_key_item.xml b/res/layout/select_secret_key_item.xml new file mode 100644 index 000000000..0b0475c37 --- /dev/null +++ b/res/layout/select_secret_key_item.xml @@ -0,0 +1,88 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2010 Thialfihar <thi@thialfihar.org> + + 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:singleLine="true" + android:paddingLeft="3dip" + android:paddingRight="?android:attr/scrollbarSize" + android:layout_height="?android:attr/listPreferredItemHeight" + android:layout_width="fill_parent"> + +<LinearLayout + android:orientation="vertical" + android:paddingLeft="5dip" + android:paddingRight="5dip" + android:layout_width="0dip" + android:layout_height="wrap_content" + android:layout_weight="1"> + +<TextView + android:id="@+id/main_user_id" + android:text="Main User ID" + android:textAppearance="?android:attr/textAppearanceLarge" + android:layout_width="wrap_content" + android:layout_height="wrap_content"/> + +<TextView + android:id="@+id/main_user_id_rest" + android:text="<user@somewhere.com>" + android:textAppearance="?android:attr/textAppearanceSmall" + android:layout_width="wrap_content" + android:layout_height="wrap_content"/> +</LinearLayout> + +<LinearLayout + android:orientation="vertical" + android:minWidth="90dip" + android:paddingLeft="3dip" + android:gravity="right" + android:layout_width="wrap_content" + android:layout_height="wrap_content"> + +<TextView + android:id="@+id/key_id" + android:text="BBBBBBBB" + android:textAppearance="?android:attr/textAppearanceMedium" + android:typeface="monospace" + android:layout_width="wrap_content" + android:layout_height="fill_parent"/> + +<TextView + android:id="@+id/creation" + android:textAppearance="?android:attr/textAppearanceSmall" + android:text="31.12.2009" + android:layout_width="wrap_content" + android:layout_height="wrap_content"/> + +<TextView + android:id="@+id/expiry" + android:textAppearance="?android:attr/textAppearanceSmall" + android:text="31.12.2010" + android:layout_width="wrap_content" + android:layout_height="wrap_content"/> + +<TextView + android:id="@+id/status" + android:textAppearance="?android:attr/textAppearanceSmall" + android:text="expired" + android:textStyle="italic" + android:layout_width="wrap_content" + android:layout_height="wrap_content"/> + +</LinearLayout> + +</LinearLayout>
\ No newline at end of file |