diff options
Diffstat (limited to 'res')
71 files changed, 1352 insertions, 0 deletions
diff --git a/res/drawable-finger/btn_circle.xml b/res/drawable-finger/btn_circle.xml new file mode 100644 index 000000000..6c3c7fc1a --- /dev/null +++ b/res/drawable-finger/btn_circle.xml @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2009 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. +--> + +<selector xmlns:android="http://schemas.android.com/apk/res/android"> + <item android:state_window_focused="false" android:state_enabled="true" + android:drawable="@drawable/btn_circle_normal" /> + <item android:state_window_focused="false" android:state_enabled="false" + android:drawable="@drawable/btn_circle_disable" /> + <item android:state_pressed="true" + android:drawable="@drawable/btn_circle_pressed" /> + <item android:state_focused="true" android:state_enabled="true" + android:drawable="@drawable/btn_circle_selected" /> + <item android:state_enabled="true" + android:drawable="@drawable/btn_circle_normal" /> + <item android:state_focused="true" + android:drawable="@drawable/btn_circle_disable_focused" /> + <item + android:drawable="@drawable/btn_circle_disable" /> +</selector> diff --git a/res/drawable-hdpi-finger/btn_circle_disable.png b/res/drawable-hdpi-finger/btn_circle_disable.png Binary files differnew file mode 100644 index 000000000..ae063b545 --- /dev/null +++ b/res/drawable-hdpi-finger/btn_circle_disable.png diff --git a/res/drawable-hdpi-finger/btn_circle_disable_focused.png b/res/drawable-hdpi-finger/btn_circle_disable_focused.png Binary files differnew file mode 100644 index 000000000..7a5d4fe4e --- /dev/null +++ b/res/drawable-hdpi-finger/btn_circle_disable_focused.png diff --git a/res/drawable-hdpi-finger/btn_circle_normal.png b/res/drawable-hdpi-finger/btn_circle_normal.png Binary files differnew file mode 100644 index 000000000..5eda66883 --- /dev/null +++ b/res/drawable-hdpi-finger/btn_circle_normal.png diff --git a/res/drawable-hdpi-finger/btn_circle_pressed.png b/res/drawable-hdpi-finger/btn_circle_pressed.png Binary files differnew file mode 100644 index 000000000..88848bac2 --- /dev/null +++ b/res/drawable-hdpi-finger/btn_circle_pressed.png diff --git a/res/drawable-hdpi-finger/btn_circle_selected.png b/res/drawable-hdpi-finger/btn_circle_selected.png Binary files differnew file mode 100644 index 000000000..74690705f --- /dev/null +++ b/res/drawable-hdpi-finger/btn_circle_selected.png diff --git a/res/drawable-hdpi-finger/ic_btn_round_minus.png b/res/drawable-hdpi-finger/ic_btn_round_minus.png Binary files differnew file mode 100644 index 000000000..27af3faf4 --- /dev/null +++ b/res/drawable-hdpi-finger/ic_btn_round_minus.png diff --git a/res/drawable-hdpi-finger/ic_btn_round_plus.png b/res/drawable-hdpi-finger/ic_btn_round_plus.png Binary files differnew file mode 100644 index 000000000..b24168c32 --- /dev/null +++ b/res/drawable-hdpi-finger/ic_btn_round_plus.png diff --git a/res/drawable-hdpi/encrypted.png b/res/drawable-hdpi/encrypted.png Binary files differnew file mode 100644 index 000000000..6d7c616a4 --- /dev/null +++ b/res/drawable-hdpi/encrypted.png diff --git a/res/drawable-hdpi/encrypted_large.png b/res/drawable-hdpi/encrypted_large.png Binary files differnew file mode 100644 index 000000000..dc7466e45 --- /dev/null +++ b/res/drawable-hdpi/encrypted_large.png diff --git a/res/drawable-hdpi/encrypted_small.png b/res/drawable-hdpi/encrypted_small.png Binary files differnew file mode 100644 index 000000000..5ed9fe4b8 --- /dev/null +++ b/res/drawable-hdpi/encrypted_small.png diff --git a/res/drawable-hdpi/icon.png b/res/drawable-hdpi/icon.png Binary files differnew file mode 100644 index 000000000..9e2e7c0e4 --- /dev/null +++ b/res/drawable-hdpi/icon.png diff --git a/res/drawable-hdpi/key.png b/res/drawable-hdpi/key.png Binary files differnew file mode 100644 index 000000000..6f18c0240 --- /dev/null +++ b/res/drawable-hdpi/key.png diff --git a/res/drawable-hdpi/key_large.png b/res/drawable-hdpi/key_large.png Binary files differnew file mode 100644 index 000000000..81816835d --- /dev/null +++ b/res/drawable-hdpi/key_large.png diff --git a/res/drawable-hdpi/key_small.png b/res/drawable-hdpi/key_small.png Binary files differnew file mode 100644 index 000000000..3f42a0d9b --- /dev/null +++ b/res/drawable-hdpi/key_small.png diff --git a/res/drawable-hdpi/overlay_error.png b/res/drawable-hdpi/overlay_error.png Binary files differnew file mode 100644 index 000000000..db6a08329 --- /dev/null +++ b/res/drawable-hdpi/overlay_error.png diff --git a/res/drawable-hdpi/overlay_ok.png b/res/drawable-hdpi/overlay_ok.png Binary files differnew file mode 100644 index 000000000..33dc08094 --- /dev/null +++ b/res/drawable-hdpi/overlay_ok.png diff --git a/res/drawable-hdpi/signed.png b/res/drawable-hdpi/signed.png Binary files differnew file mode 100644 index 000000000..92e64dc51 --- /dev/null +++ b/res/drawable-hdpi/signed.png diff --git a/res/drawable-hdpi/signed_large.png b/res/drawable-hdpi/signed_large.png Binary files differnew file mode 100644 index 000000000..53d8ac991 --- /dev/null +++ b/res/drawable-hdpi/signed_large.png diff --git a/res/drawable-hdpi/signed_small.png b/res/drawable-hdpi/signed_small.png Binary files differnew file mode 100644 index 000000000..d7f147f05 --- /dev/null +++ b/res/drawable-hdpi/signed_small.png diff --git a/res/drawable-ldpi/encrypted.png b/res/drawable-ldpi/encrypted.png Binary files differnew file mode 100644 index 000000000..7f4ab803f --- /dev/null +++ b/res/drawable-ldpi/encrypted.png diff --git a/res/drawable-ldpi/encrypted_large.png b/res/drawable-ldpi/encrypted_large.png Binary files differnew file mode 100644 index 000000000..2783804bc --- /dev/null +++ b/res/drawable-ldpi/encrypted_large.png diff --git a/res/drawable-ldpi/encrypted_small.png b/res/drawable-ldpi/encrypted_small.png Binary files differnew file mode 100644 index 000000000..0ffedf2dd --- /dev/null +++ b/res/drawable-ldpi/encrypted_small.png diff --git a/res/drawable-ldpi/icon.png b/res/drawable-ldpi/icon.png Binary files differnew file mode 100644 index 000000000..9d44341f1 --- /dev/null +++ b/res/drawable-ldpi/icon.png diff --git a/res/drawable-ldpi/key.png b/res/drawable-ldpi/key.png Binary files differnew file mode 100644 index 000000000..121803508 --- /dev/null +++ b/res/drawable-ldpi/key.png diff --git a/res/drawable-ldpi/key_large.png b/res/drawable-ldpi/key_large.png Binary files differnew file mode 100644 index 000000000..de7e72524 --- /dev/null +++ b/res/drawable-ldpi/key_large.png diff --git a/res/drawable-ldpi/key_small.png b/res/drawable-ldpi/key_small.png Binary files differnew file mode 100644 index 000000000..1763c4256 --- /dev/null +++ b/res/drawable-ldpi/key_small.png diff --git a/res/drawable-ldpi/overlay_error.png b/res/drawable-ldpi/overlay_error.png Binary files differnew file mode 100644 index 000000000..568f2b1ee --- /dev/null +++ b/res/drawable-ldpi/overlay_error.png diff --git a/res/drawable-ldpi/overlay_ok.png b/res/drawable-ldpi/overlay_ok.png Binary files differnew file mode 100644 index 000000000..db415a846 --- /dev/null +++ b/res/drawable-ldpi/overlay_ok.png diff --git a/res/drawable-ldpi/signed.png b/res/drawable-ldpi/signed.png Binary files differnew file mode 100644 index 000000000..590220281 --- /dev/null +++ b/res/drawable-ldpi/signed.png diff --git a/res/drawable-ldpi/signed_large.png b/res/drawable-ldpi/signed_large.png Binary files differnew file mode 100644 index 000000000..490e94fbd --- /dev/null +++ b/res/drawable-ldpi/signed_large.png diff --git a/res/drawable-ldpi/signed_small.png b/res/drawable-ldpi/signed_small.png Binary files differnew file mode 100644 index 000000000..ca33fc1f7 --- /dev/null +++ b/res/drawable-ldpi/signed_small.png diff --git a/res/drawable-mdpi-finger/btn_circle_disable.png b/res/drawable-mdpi-finger/btn_circle_disable.png Binary files differnew file mode 100644 index 000000000..33b74a66c --- /dev/null +++ b/res/drawable-mdpi-finger/btn_circle_disable.png diff --git a/res/drawable-mdpi-finger/btn_circle_disable_focused.png b/res/drawable-mdpi-finger/btn_circle_disable_focused.png Binary files differnew file mode 100644 index 000000000..005ad8dca --- /dev/null +++ b/res/drawable-mdpi-finger/btn_circle_disable_focused.png diff --git a/res/drawable-mdpi-finger/btn_circle_normal.png b/res/drawable-mdpi-finger/btn_circle_normal.png Binary files differnew file mode 100644 index 000000000..fc5af1c9f --- /dev/null +++ b/res/drawable-mdpi-finger/btn_circle_normal.png diff --git a/res/drawable-mdpi-finger/btn_circle_pressed.png b/res/drawable-mdpi-finger/btn_circle_pressed.png Binary files differnew file mode 100644 index 000000000..8f40afdfc --- /dev/null +++ b/res/drawable-mdpi-finger/btn_circle_pressed.png diff --git a/res/drawable-mdpi-finger/btn_circle_selected.png b/res/drawable-mdpi-finger/btn_circle_selected.png Binary files differnew file mode 100644 index 000000000..c74fac227 --- /dev/null +++ b/res/drawable-mdpi-finger/btn_circle_selected.png diff --git a/res/drawable-mdpi-finger/ic_btn_round_minus.png b/res/drawable-mdpi-finger/ic_btn_round_minus.png Binary files differnew file mode 100644 index 000000000..96dbb17d2 --- /dev/null +++ b/res/drawable-mdpi-finger/ic_btn_round_minus.png diff --git a/res/drawable-mdpi-finger/ic_btn_round_plus.png b/res/drawable-mdpi-finger/ic_btn_round_plus.png Binary files differnew file mode 100644 index 000000000..1ec8a956a --- /dev/null +++ b/res/drawable-mdpi-finger/ic_btn_round_plus.png diff --git a/res/drawable-mdpi/encrypted.png b/res/drawable-mdpi/encrypted.png Binary files differnew file mode 100644 index 000000000..2783804bc --- /dev/null +++ b/res/drawable-mdpi/encrypted.png diff --git a/res/drawable-mdpi/encrypted_large.png b/res/drawable-mdpi/encrypted_large.png Binary files differnew file mode 100644 index 000000000..6d7c616a4 --- /dev/null +++ b/res/drawable-mdpi/encrypted_large.png diff --git a/res/drawable-mdpi/encrypted_small.png b/res/drawable-mdpi/encrypted_small.png Binary files differnew file mode 100644 index 000000000..7f4ab803f --- /dev/null +++ b/res/drawable-mdpi/encrypted_small.png diff --git a/res/drawable-mdpi/icon.png b/res/drawable-mdpi/icon.png Binary files differnew file mode 100644 index 000000000..b4e4db40e --- /dev/null +++ b/res/drawable-mdpi/icon.png diff --git a/res/drawable-mdpi/key.png b/res/drawable-mdpi/key.png Binary files differnew file mode 100644 index 000000000..de7e72524 --- /dev/null +++ b/res/drawable-mdpi/key.png diff --git a/res/drawable-mdpi/key_large.png b/res/drawable-mdpi/key_large.png Binary files differnew file mode 100644 index 000000000..6f18c0240 --- /dev/null +++ b/res/drawable-mdpi/key_large.png diff --git a/res/drawable-mdpi/key_small.png b/res/drawable-mdpi/key_small.png Binary files differnew file mode 100644 index 000000000..121803508 --- /dev/null +++ b/res/drawable-mdpi/key_small.png diff --git a/res/drawable-mdpi/overlay_error.png b/res/drawable-mdpi/overlay_error.png Binary files differnew file mode 100644 index 000000000..2372de59e --- /dev/null +++ b/res/drawable-mdpi/overlay_error.png diff --git a/res/drawable-mdpi/overlay_ok.png b/res/drawable-mdpi/overlay_ok.png Binary files differnew file mode 100644 index 000000000..2f0005898 --- /dev/null +++ b/res/drawable-mdpi/overlay_ok.png diff --git a/res/drawable-mdpi/signed.png b/res/drawable-mdpi/signed.png Binary files differnew file mode 100644 index 000000000..490e94fbd --- /dev/null +++ b/res/drawable-mdpi/signed.png diff --git a/res/drawable-mdpi/signed_large.png b/res/drawable-mdpi/signed_large.png Binary files differnew file mode 100644 index 000000000..92e64dc51 --- /dev/null +++ b/res/drawable-mdpi/signed_large.png diff --git a/res/drawable-mdpi/signed_small.png b/res/drawable-mdpi/signed_small.png Binary files differnew file mode 100644 index 000000000..590220281 --- /dev/null +++ b/res/drawable-mdpi/signed_small.png 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 diff --git a/res/values/strings.xml b/res/values/strings.xml new file mode 100644 index 000000000..b1fa76915 --- /dev/null +++ b/res/values/strings.xml @@ -0,0 +1,68 @@ +<?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. +--> + +<resources> + <string name="app_name">APG</string> + <string name="title_mailInbox">Mail Inbox</string> + <string name="title_managePublicKeys">Manage Public Keys</string> + <string name="title_manageSecretKeys">Manage Secret Keys</string> + <string name="title_selectRecipients">Select Recipients</string> + <string name="title_selectSignature">Select Signature</string> + <string name="title_encryptMessage">Encrypt Message</string> + <string name="title_decryptMessage">Decrypt Message</string> + <string name="title_authentification">Authentification</string> + <string name="title_createKey">Create Key</string> + <string name="title_editKey">Edit Key</string> + + <string name="section_userIds">User IDs</string> + <string name="section_keys">Keys</string> + + <string name="btn_send">Send via Email</string> + <string name="btn_decrypt">Decrypt</string> + <string name="btn_selectEncryptKeys">Select Recipients</string> + <string name="btn_reply">Reply</string> + <string name="btn_encryptMessage">Encrypt Message</string> + <string name="btn_decryptMessage">Decrypt Message</string> + <string name="btn_save">Save</string> + <string name="btn_doNotSave">Cancel</string> + + <string name="menu_about">About</string> + <string name="menu_addAccount">Add GMail Account</string> + <string name="menu_managePublicKeys">Manage Public Keys</string> + <string name="menu_manageSecretKeys">Manage Secret Keys</string> + + <string name="sign">Sign</string> + <string name="sign_as">Sign as</string> + <string name="no_keys_selected">Select Recipients</string> + <string name="one_key_selected">1 Recipient</string> + <string name="n_keys_selected">Recipients</string> + <string name="unknown_user_id"><unknown></string> + <string name="none"><none></string> + + <string name="sign_only">Sign only</string> + <string name="encrypt_only">Encrypt only</string> + <string name="sign_and_encrypt">Sign and Encrypt</string> + + <string name="dsa">DSA</string> + <string name="elgamal">ElGamal</string> + <string name="rsa">RSA</string> + + <string name="wrong_pass_phrase">Wrong pass phrase.</string> + <string name="using_clipboard_content">Using clipboard content.</string> + <string name="key_saved">Key saved.</string> + <string name="set_a_pass_phrase">Set a pass phrase via the option menu first.</string> +</resources> + diff --git a/res/values/styles.xml b/res/values/styles.xml new file mode 100644 index 000000000..720f7aedb --- /dev/null +++ b/res/values/styles.xml @@ -0,0 +1,27 @@ +<?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. +--> + +<resources> + <style name="MinusButton"> + <item name="android:background">@drawable/btn_circle</item> + <item name="android:src">@drawable/ic_btn_round_minus</item> + </style> + + <style name="PlusButton"> + <item name="android:background">@drawable/btn_circle</item> + <item name="android:src">@drawable/ic_btn_round_plus</item> + </style> +</resources> |