use bootstrap buttons
BIN
OpenPGP-Keychain/assets/fontawesome-webfont.ttf
Normal file
@ -1,32 +0,0 @@
|
|||||||
<?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>
|
|
Before Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 2.9 KiB |
Before Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 536 B |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 938 B |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 288 B |
Before Width: | Height: | Size: 526 B |
Before Width: | Height: | Size: 938 B |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 1.6 KiB |
@ -16,18 +16,19 @@
|
|||||||
-->
|
-->
|
||||||
|
|
||||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:layout_width="fill_parent"
|
xmlns:bootstrapbutton="http://schemas.android.com/apk/res-auto"
|
||||||
android:layout_height="fill_parent"
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
android:fillViewport="true"
|
android:fillViewport="true"
|
||||||
android:orientation="vertical" >
|
android:orientation="vertical" >
|
||||||
|
|
||||||
<ScrollView
|
<ScrollView
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="fill_parent"
|
android:layout_height="match_parent"
|
||||||
android:fillViewport="true" >
|
android:fillViewport="true" >
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
android:paddingLeft="10dp"
|
android:paddingLeft="10dp"
|
||||||
@ -35,7 +36,7 @@
|
|||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id="@+id/signature"
|
android:id="@+id/signature"
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:clickable="true"
|
android:clickable="true"
|
||||||
android:orientation="horizontal"
|
android:orientation="horizontal"
|
||||||
@ -85,7 +86,7 @@
|
|||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="horizontal" >
|
android:orientation="horizontal" >
|
||||||
|
|
||||||
@ -99,7 +100,7 @@
|
|||||||
android:id="@+id/sourceLabel"
|
android:id="@+id/sourceLabel"
|
||||||
style="@style/SectionHeader"
|
style="@style/SectionHeader"
|
||||||
android:layout_width="0dip"
|
android:layout_width="0dip"
|
||||||
android:layout_height="fill_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:gravity="center_horizontal|center_vertical"
|
android:gravity="center_horizontal|center_vertical"
|
||||||
android:text="@string/label_message"
|
android:text="@string/label_message"
|
||||||
@ -114,21 +115,21 @@
|
|||||||
|
|
||||||
<ViewFlipper
|
<ViewFlipper
|
||||||
android:id="@+id/source"
|
android:id="@+id/source"
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="0dip"
|
android:layout_height="0dip"
|
||||||
android:layout_weight="1" >
|
android:layout_weight="1" >
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id="@+id/sourceMessage"
|
android:id="@+id/sourceMessage"
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="fill_parent"
|
android:layout_height="match_parent"
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
android:padding="4dp" >
|
android:padding="4dp" >
|
||||||
|
|
||||||
<EditText
|
<EditText
|
||||||
android:id="@+id/message"
|
android:id="@+id/message"
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="fill_parent"
|
android:layout_height="match_parent"
|
||||||
android:gravity="top"
|
android:gravity="top"
|
||||||
android:inputType="text|textCapSentences|textMultiLine|textLongMessage"
|
android:inputType="text|textCapSentences|textMultiLine|textLongMessage"
|
||||||
android:scrollHorizontally="true" />
|
android:scrollHorizontally="true" />
|
||||||
@ -136,13 +137,13 @@
|
|||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id="@+id/sourceFile"
|
android:id="@+id/sourceFile"
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="fill_parent"
|
android:layout_height="match_parent"
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
android:padding="4dp" >
|
android:padding="4dp" >
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="horizontal" >
|
android:orientation="horizontal" >
|
||||||
|
|
||||||
@ -153,15 +154,19 @@
|
|||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:inputType="textNoSuggestions" />
|
android:inputType="textNoSuggestions" />
|
||||||
|
|
||||||
<ImageButton
|
<com.beardedhen.androidbootstrap.BootstrapButton
|
||||||
android:id="@+id/btn_browse"
|
android:id="@+id/btn_browse"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:src="@drawable/ic_menu_filebrowser" />
|
android:layout_margin="4dp"
|
||||||
|
bootstrapbutton:bb_icon_left="fa-folder-open"
|
||||||
|
bootstrapbutton:bb_roundedCorners="true"
|
||||||
|
bootstrapbutton:bb_size="default"
|
||||||
|
bootstrapbutton:bb_type="default" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="horizontal" >
|
android:orientation="horizontal" >
|
||||||
|
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
-->
|
-->
|
||||||
|
|
||||||
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:bootstrapbutton="http://schemas.android.com/apk/res-auto"
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="fill_parent"
|
||||||
android:layout_height="fill_parent"
|
android:layout_height="fill_parent"
|
||||||
android:fillViewport="true"
|
android:fillViewport="true"
|
||||||
@ -41,12 +42,14 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@string/label_no_passphrase" />
|
android:text="@string/label_no_passphrase" />
|
||||||
|
|
||||||
<Button
|
<com.beardedhen.androidbootstrap.BootstrapButton
|
||||||
android:id="@+id/edit_key_btn_change_pass_phrase"
|
android:id="@+id/edit_key_btn_change_pass_phrase"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:padding="4dp"
|
android:padding="4dp"
|
||||||
android:text="@string/btn_set_passphrase" />
|
android:text="@string/btn_set_passphrase"
|
||||||
|
bootstrapbutton:bb_icon_left="fa-pencil"
|
||||||
|
bootstrapbutton:bb_type="info" />
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id="@+id/edit_key_container"
|
android:id="@+id/edit_key_container"
|
||||||
|
@ -16,12 +16,13 @@
|
|||||||
-->
|
-->
|
||||||
|
|
||||||
<org.sufficientlysecure.keychain.ui.widget.KeyEditor xmlns:android="http://schemas.android.com/apk/res/android"
|
<org.sufficientlysecure.keychain.ui.widget.KeyEditor xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:layout_width="fill_parent"
|
xmlns:bootstrapbutton="http://schemas.android.com/apk/res-auto"
|
||||||
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="vertical" >
|
android:orientation="vertical" >
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="horizontal" >
|
android:orientation="horizontal" >
|
||||||
|
|
||||||
@ -80,7 +81,7 @@
|
|||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/creation"
|
android:id="@+id/creation"
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content" />
|
android:layout_height="wrap_content" />
|
||||||
</TableRow>
|
</TableRow>
|
||||||
|
|
||||||
@ -94,10 +95,12 @@
|
|||||||
android:paddingRight="10dip"
|
android:paddingRight="10dip"
|
||||||
android:text="@string/label_expiry" />
|
android:text="@string/label_expiry" />
|
||||||
|
|
||||||
<Button
|
<com.beardedhen.androidbootstrap.BootstrapButton
|
||||||
android:id="@+id/expiry"
|
android:id="@+id/expiry"
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content" />
|
android:layout_height="wrap_content"
|
||||||
|
android:text="@string/none"
|
||||||
|
bootstrapbutton:bb_type="default" />
|
||||||
</TableRow>
|
</TableRow>
|
||||||
|
|
||||||
<TableRow>
|
<TableRow>
|
||||||
@ -112,22 +115,25 @@
|
|||||||
|
|
||||||
<Spinner
|
<Spinner
|
||||||
android:id="@+id/usage"
|
android:id="@+id/usage"
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content" />
|
android:layout_height="wrap_content" />
|
||||||
</TableRow>
|
</TableRow>
|
||||||
</TableLayout>
|
</TableLayout>
|
||||||
|
|
||||||
<ImageButton
|
<com.beardedhen.androidbootstrap.BootstrapButton
|
||||||
android:id="@+id/delete"
|
android:id="@+id/delete"
|
||||||
style="@style/MinusButton"
|
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center_vertical" />
|
android:layout_margin="10dp"
|
||||||
|
bootstrapbutton:bb_icon_left="fa-minus"
|
||||||
|
bootstrapbutton:bb_roundedCorners="true"
|
||||||
|
bootstrapbutton:bb_size="small"
|
||||||
|
bootstrapbutton:bb_type="danger" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
<View
|
<View
|
||||||
android:id="@+id/separator"
|
android:id="@+id/separator"
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="1dip"
|
android:layout_height="1dip"
|
||||||
android:background="?android:attr/listDivider" />
|
android:background="?android:attr/listDivider" />
|
||||||
|
|
||||||
|
@ -1,31 +1,14 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?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.sufficientlysecure.keychain.ui.widget.SectionView xmlns:android="http://schemas.android.com/apk/res/android"
|
<org.sufficientlysecure.keychain.ui.widget.SectionView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:layout_width="fill_parent"
|
xmlns:bootstrapbutton="http://schemas.android.com/apk/res-auto"
|
||||||
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="vertical" >
|
android:orientation="vertical" >
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id="@+id/header"
|
android:id="@+id/header"
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:clickable="true"
|
|
||||||
android:focusable="true"
|
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:orientation="horizontal" >
|
android:orientation="horizontal" >
|
||||||
|
|
||||||
@ -40,19 +23,22 @@
|
|||||||
android:singleLine="true"
|
android:singleLine="true"
|
||||||
android:text="Section Name" />
|
android:text="Section Name" />
|
||||||
|
|
||||||
<ImageView
|
<com.beardedhen.androidbootstrap.BootstrapButton
|
||||||
android:id="@+id/plusbutton"
|
android:id="@+id/plusbutton"
|
||||||
style="@style/PlusButton"
|
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:duplicateParentState="true" />
|
android:layout_margin="10dp"
|
||||||
|
bootstrapbutton:bb_icon_left="fa-plus"
|
||||||
|
bootstrapbutton:bb_roundedCorners="true"
|
||||||
|
bootstrapbutton:bb_size="small"
|
||||||
|
bootstrapbutton:bb_type="success" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id="@+id/editors"
|
android:id="@+id/editors"
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
android:paddingBottom="6dip" />
|
android:paddingBottom="6dip" />
|
||||||
|
|
||||||
</org.sufficientlysecure.keychain.ui.widget.SectionView>
|
</org.sufficientlysecure.keychain.ui.widget.SectionView>
|
@ -1,21 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?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.sufficientlysecure.keychain.ui.widget.UserIdEditor xmlns:android="http://schemas.android.com/apk/res/android"
|
<org.sufficientlysecure.keychain.ui.widget.UserIdEditor xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:bootstrapbutton="http://schemas.android.com/apk/res-auto"
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="fill_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="vertical" >
|
android:orientation="vertical" >
|
||||||
@ -90,12 +75,18 @@
|
|||||||
</TableRow>
|
</TableRow>
|
||||||
</TableLayout>
|
</TableLayout>
|
||||||
|
|
||||||
<ImageButton
|
<com.beardedhen.androidbootstrap.BootstrapButton
|
||||||
android:id="@+id/delete"
|
android:id="@+id/delete"
|
||||||
style="@style/MinusButton"
|
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center_vertical" />
|
android:layout_gravity="center_vertical"
|
||||||
|
android:layout_margin="10dp"
|
||||||
|
android:layout_marginLeft="4dip"
|
||||||
|
android:layout_marginRight="6dip"
|
||||||
|
bootstrapbutton:bb_icon_left="fa-minus"
|
||||||
|
bootstrapbutton:bb_roundedCorners="true"
|
||||||
|
bootstrapbutton:bb_size="small"
|
||||||
|
bootstrapbutton:bb_type="danger" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
<View
|
<View
|
||||||
|
@ -16,19 +16,20 @@
|
|||||||
-->
|
-->
|
||||||
|
|
||||||
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:layout_width="fill_parent"
|
xmlns:bootstrapbutton="http://schemas.android.com/apk/res-auto"
|
||||||
android:layout_height="fill_parent"
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
android:fillViewport="true" >
|
android:fillViewport="true" >
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
android:paddingLeft="10dp"
|
android:paddingLeft="10dp"
|
||||||
android:paddingRight="10dp" >
|
android:paddingRight="10dp" >
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="horizontal"
|
android:orientation="horizontal"
|
||||||
android:padding="4dp" >
|
android:padding="4dp" >
|
||||||
@ -43,7 +44,7 @@
|
|||||||
android:id="@+id/modeLabel"
|
android:id="@+id/modeLabel"
|
||||||
style="@style/SectionHeader"
|
style="@style/SectionHeader"
|
||||||
android:layout_width="0dip"
|
android:layout_width="0dip"
|
||||||
android:layout_height="fill_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:gravity="center_horizontal|center_vertical"
|
android:gravity="center_horizontal|center_vertical"
|
||||||
android:text="@string/label_asymmetric" />
|
android:text="@string/label_asymmetric" />
|
||||||
@ -57,18 +58,18 @@
|
|||||||
|
|
||||||
<ViewFlipper
|
<ViewFlipper
|
||||||
android:id="@+id/mode"
|
android:id="@+id/mode"
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content" >
|
android:layout_height="wrap_content" >
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id="@+id/modeAsymmetric"
|
android:id="@+id/modeAsymmetric"
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
android:padding="4dp" >
|
android:padding="4dp" >
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="horizontal" >
|
android:orientation="horizontal" >
|
||||||
|
|
||||||
@ -80,7 +81,7 @@
|
|||||||
android:text="@string/label_sign" />
|
android:text="@string/label_sign" />
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
android:paddingLeft="16dp" >
|
android:paddingLeft="16dp" >
|
||||||
@ -108,7 +109,7 @@
|
|||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="horizontal"
|
android:orientation="horizontal"
|
||||||
android:paddingBottom="3dip" >
|
android:paddingBottom="3dip" >
|
||||||
@ -122,18 +123,22 @@
|
|||||||
android:text="@string/label_select_public_keys"
|
android:text="@string/label_select_public_keys"
|
||||||
android:textAppearance="?android:attr/textAppearanceMedium" />
|
android:textAppearance="?android:attr/textAppearanceMedium" />
|
||||||
|
|
||||||
<Button
|
<com.beardedhen.androidbootstrap.BootstrapButton
|
||||||
android:id="@+id/btn_selectEncryptKeys"
|
android:id="@+id/btn_selectEncryptKeys"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center_vertical"
|
android:layout_gravity="center_vertical"
|
||||||
android:text="@string/btn_select_encrypt_keys" />
|
android:layout_margin="4dp"
|
||||||
|
android:text="@string/btn_select_encrypt_keys"
|
||||||
|
bootstrapbutton:bb_icon_left="fa-key"
|
||||||
|
bootstrapbutton:bb_size="default"
|
||||||
|
bootstrapbutton:bb_type="default" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
<TableLayout
|
<TableLayout
|
||||||
android:id="@+id/modeSymmetric"
|
android:id="@+id/modeSymmetric"
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:padding="4dp"
|
android:padding="4dp"
|
||||||
android:stretchColumns="1" >
|
android:stretchColumns="1" >
|
||||||
@ -151,7 +156,7 @@
|
|||||||
|
|
||||||
<EditText
|
<EditText
|
||||||
android:id="@+id/passPhrase"
|
android:id="@+id/passPhrase"
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:inputType="textPassword" />
|
android:inputType="textPassword" />
|
||||||
</TableRow>
|
</TableRow>
|
||||||
@ -169,7 +174,7 @@
|
|||||||
|
|
||||||
<EditText
|
<EditText
|
||||||
android:id="@+id/passPhraseAgain"
|
android:id="@+id/passPhraseAgain"
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:inputType="textPassword" />
|
android:inputType="textPassword" />
|
||||||
</TableRow>
|
</TableRow>
|
||||||
@ -177,7 +182,7 @@
|
|||||||
</ViewFlipper>
|
</ViewFlipper>
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="horizontal"
|
android:orientation="horizontal"
|
||||||
android:padding="4dp" >
|
android:padding="4dp" >
|
||||||
@ -192,7 +197,7 @@
|
|||||||
android:id="@+id/sourceLabel"
|
android:id="@+id/sourceLabel"
|
||||||
style="@style/SectionHeader"
|
style="@style/SectionHeader"
|
||||||
android:layout_width="0dip"
|
android:layout_width="0dip"
|
||||||
android:layout_height="fill_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:gravity="center_horizontal|center_vertical"
|
android:gravity="center_horizontal|center_vertical"
|
||||||
android:text="@string/label_message"
|
android:text="@string/label_message"
|
||||||
@ -207,34 +212,34 @@
|
|||||||
|
|
||||||
<ViewFlipper
|
<ViewFlipper
|
||||||
android:id="@+id/source"
|
android:id="@+id/source"
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="0dip"
|
android:layout_height="0dip"
|
||||||
android:layout_weight="1" >
|
android:layout_weight="1" >
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id="@+id/sourceMessage"
|
android:id="@+id/sourceMessage"
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="fill_parent"
|
android:layout_height="match_parent"
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
android:padding="4dp" >
|
android:padding="4dp" >
|
||||||
|
|
||||||
<EditText
|
<EditText
|
||||||
android:id="@+id/message"
|
android:id="@+id/message"
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="fill_parent"
|
android:layout_height="match_parent"
|
||||||
android:gravity="top"
|
android:gravity="top"
|
||||||
android:inputType="text|textCapSentences|textMultiLine|textLongMessage" />
|
android:inputType="text|textCapSentences|textMultiLine|textLongMessage" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id="@+id/sourceFile"
|
android:id="@+id/sourceFile"
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="fill_parent"
|
android:layout_height="match_parent"
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
android:padding="4dp" >
|
android:padding="4dp" >
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="horizontal" >
|
android:orientation="horizontal" >
|
||||||
|
|
||||||
@ -245,15 +250,19 @@
|
|||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:inputType="textNoSuggestions" />
|
android:inputType="textNoSuggestions" />
|
||||||
|
|
||||||
<ImageButton
|
<com.beardedhen.androidbootstrap.BootstrapButton
|
||||||
android:id="@+id/btn_browse"
|
android:id="@+id/btn_browse"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:src="@drawable/ic_menu_filebrowser" />
|
android:layout_margin="4dp"
|
||||||
|
bootstrapbutton:bb_icon_left="fa-folder-open"
|
||||||
|
bootstrapbutton:bb_roundedCorners="true"
|
||||||
|
bootstrapbutton:bb_size="default"
|
||||||
|
bootstrapbutton:bb_type="default" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="horizontal" >
|
android:orientation="horizontal" >
|
||||||
|
|
||||||
@ -275,7 +284,7 @@
|
|||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="horizontal" >
|
android:orientation="horizontal" >
|
||||||
|
|
||||||
@ -288,7 +297,7 @@
|
|||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="horizontal" >
|
android:orientation="horizontal" >
|
||||||
|
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
-->
|
-->
|
||||||
|
|
||||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:bootstrapbutton="http://schemas.android.com/apk/res-auto"
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="fill_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
@ -39,13 +40,17 @@
|
|||||||
android:minLines="2"
|
android:minLines="2"
|
||||||
android:scrollbars="vertical" />
|
android:scrollbars="vertical" />
|
||||||
|
|
||||||
<ImageButton
|
<com.beardedhen.androidbootstrap.BootstrapButton
|
||||||
android:id="@+id/btn_browse"
|
android:id="@+id/btn_browse"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center_vertical"
|
android:layout_gravity="center_vertical"
|
||||||
|
android:layout_margin="4dp"
|
||||||
android:contentDescription="@string/filemanager_title_open"
|
android:contentDescription="@string/filemanager_title_open"
|
||||||
android:src="@drawable/ic_menu_filebrowser" />
|
bootstrapbutton:bb_icon_left="fa-folder-open"
|
||||||
|
bootstrapbutton:bb_roundedCorners="true"
|
||||||
|
bootstrapbutton:bb_size="default"
|
||||||
|
bootstrapbutton:bb_type="default" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
<CheckBox
|
<CheckBox
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:bootstrapbutton="http://schemas.android.com/apk/res-auto"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_centerHorizontal="true" >
|
android:layout_centerHorizontal="true" >
|
||||||
@ -22,19 +23,22 @@
|
|||||||
android:paddingLeft="10dp"
|
android:paddingLeft="10dp"
|
||||||
android:paddingRight="10dp" >
|
android:paddingRight="10dp" >
|
||||||
|
|
||||||
<Button
|
<com.beardedhen.androidbootstrap.BootstrapButton
|
||||||
android:id="@+id/import_import"
|
android:id="@+id/import_import"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="60dp"
|
||||||
android:onClick="importOnClick"
|
android:padding="4dp"
|
||||||
android:text="@string/import_import" />
|
android:text="@string/import_import"
|
||||||
|
bootstrapbutton:bb_icon_left="fa-download"
|
||||||
|
bootstrapbutton:bb_type="info" />
|
||||||
|
|
||||||
<Button
|
<com.beardedhen.androidbootstrap.BootstrapButton
|
||||||
android:id="@+id/import_sign_and_upload"
|
android:id="@+id/import_sign_and_upload"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="60dp"
|
||||||
android:onClick="signAndUploadOnClick"
|
android:padding="4dp"
|
||||||
android:text="@string/import_sign_and_upload" />
|
android:text="@string/import_sign_and_upload"
|
||||||
|
bootstrapbutton:bb_type="info" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
<FrameLayout
|
<FrameLayout
|
||||||
|
@ -1,13 +1,17 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:layout_width="fill_parent"
|
xmlns:bootstrapbutton="http://schemas.android.com/apk/res-auto"
|
||||||
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="horizontal" >
|
android:orientation="horizontal" >
|
||||||
|
|
||||||
<Button
|
<com.beardedhen.androidbootstrap.BootstrapButton
|
||||||
android:id="@+id/import_clipboard_button"
|
android:id="@+id/import_clipboard_button"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="60dp"
|
||||||
android:text="@string/import_from_clipboard" />
|
android:layout_margin="10dp"
|
||||||
|
android:text="@string/import_from_clipboard"
|
||||||
|
bootstrapbutton:bb_size="default"
|
||||||
|
bootstrapbutton:bb_type="default" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:bootstrapbutton="http://schemas.android.com/apk/res-auto"
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="fill_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="horizontal" >
|
android:orientation="horizontal" >
|
||||||
@ -16,12 +17,16 @@
|
|||||||
android:minLines="2"
|
android:minLines="2"
|
||||||
android:scrollbars="vertical" />
|
android:scrollbars="vertical" />
|
||||||
|
|
||||||
<ImageButton
|
<com.beardedhen.androidbootstrap.BootstrapButton
|
||||||
android:id="@+id/import_keys_file_browse"
|
android:id="@+id/import_keys_file_browse"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center_vertical"
|
android:layout_gravity="center_vertical"
|
||||||
|
android:layout_margin="4dp"
|
||||||
android:contentDescription="@string/filemanager_title_open"
|
android:contentDescription="@string/filemanager_title_open"
|
||||||
android:src="@drawable/ic_menu_filebrowser" />
|
bootstrapbutton:bb_icon_left="fa-folder-open"
|
||||||
|
bootstrapbutton:bb_roundedCorners="true"
|
||||||
|
bootstrapbutton:bb_size="default"
|
||||||
|
bootstrapbutton:bb_type="default" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
@ -1,13 +1,17 @@
|
|||||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:bootstrapbutton="http://schemas.android.com/apk/res-auto"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:orientation="vertical" >
|
android:orientation="vertical" >
|
||||||
|
|
||||||
<Button
|
<com.beardedhen.androidbootstrap.BootstrapButton
|
||||||
android:id="@+id/import_keyserver_button"
|
android:id="@+id/import_keyserver_button"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="60dp"
|
||||||
android:text="@string/menu_key_server" />
|
android:layout_margin="10dp"
|
||||||
|
android:text="@string/menu_key_server"
|
||||||
|
bootstrapbutton:bb_size="default"
|
||||||
|
bootstrapbutton:bb_type="default" />
|
||||||
|
|
||||||
<!-- <Spinner -->
|
<!-- <Spinner -->
|
||||||
<!-- android:id="@+id/import_keys_server_key_server" -->
|
<!-- android:id="@+id/import_keys_server_key_server" -->
|
||||||
|
@ -1,13 +1,17 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:bootstrapbutton="http://schemas.android.com/apk/res-auto"
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="fill_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="horizontal" >
|
android:orientation="horizontal" >
|
||||||
|
|
||||||
<Button
|
<com.beardedhen.androidbootstrap.BootstrapButton
|
||||||
android:id="@+id/import_nfc_button"
|
android:id="@+id/import_nfc_button"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="60dp"
|
||||||
android:text="@string/menu_import_from_nfc" />
|
android:layout_margin="10dp"
|
||||||
|
android:text="@string/menu_import_from_nfc"
|
||||||
|
bootstrapbutton:bb_size="default"
|
||||||
|
bootstrapbutton:bb_type="default" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
@ -1,14 +1,19 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:bootstrapbutton="http://schemas.android.com/apk/res-auto"
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="fill_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="vertical" >
|
android:orientation="vertical" >
|
||||||
|
|
||||||
<Button
|
<com.beardedhen.androidbootstrap.BootstrapButton
|
||||||
android:id="@+id/import_qrcode_button"
|
android:id="@+id/import_qrcode_button"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="60dp"
|
||||||
android:text="@string/menu_import_from_qr_code" />
|
android:layout_margin="10dp"
|
||||||
|
android:text="@string/menu_import_from_qr_code"
|
||||||
|
bootstrapbutton:bb_icon_left="fa-barcode"
|
||||||
|
bootstrapbutton:bb_size="default"
|
||||||
|
bootstrapbutton:bb_type="default" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/import_qrcode_text"
|
android:id="@+id/import_qrcode_text"
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:bootstrapbutton="http://schemas.android.com/apk/res-auto"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:orientation="vertical" >
|
android:orientation="vertical" >
|
||||||
@ -45,12 +46,14 @@
|
|||||||
android:text="@string/key_list_empty_text2"
|
android:text="@string/key_list_empty_text2"
|
||||||
android:textAppearance="?android:attr/textAppearanceSmall" />
|
android:textAppearance="?android:attr/textAppearanceSmall" />
|
||||||
|
|
||||||
<Button
|
<com.beardedhen.androidbootstrap.BootstrapButton
|
||||||
android:id="@+id/key_list_empty_button_create"
|
android:id="@+id/key_list_empty_button_create"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_margin="10dp"
|
||||||
android:text="@string/key_list_empty_button_create"
|
android:text="@string/key_list_empty_button_create"
|
||||||
android:textAppearance="?android:attr/textAppearanceSmall" />
|
bootstrapbutton:bb_icon_left="fa-plus"
|
||||||
|
bootstrapbutton:bb_type="default" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
@ -59,12 +62,14 @@
|
|||||||
android:text="@string/key_list_empty_text3"
|
android:text="@string/key_list_empty_text3"
|
||||||
android:textAppearance="?android:attr/textAppearanceSmall" />
|
android:textAppearance="?android:attr/textAppearanceSmall" />
|
||||||
|
|
||||||
<Button
|
<com.beardedhen.androidbootstrap.BootstrapButton
|
||||||
android:id="@+id/key_list_empty_button_import"
|
android:id="@+id/key_list_empty_button_import"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_margin="10dp"
|
||||||
android:text="@string/key_list_empty_button_import"
|
android:text="@string/key_list_empty_button_import"
|
||||||
android:textAppearance="?android:attr/textAppearanceSmall" />
|
bootstrapbutton:bb_icon_left="fa-download"
|
||||||
|
bootstrapbutton:bb_type="default" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
</FrameLayout>
|
</FrameLayout>
|
@ -1,52 +1,40 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<!-- Copyright (C) 2010 Thialfihar <thi@thialfihar.org>
|
<org.sufficientlysecure.keychain.ui.widget.KeyServerEditor xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:bootstrapbutton="http://schemas.android.com/apk/res-auto"
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
android:layout_width="match_parent"
|
||||||
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.sufficientlysecure.keychain.ui.widget.KeyServerEditor
|
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
android:layout_width="fill_parent"
|
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="vertical">
|
android:orientation="vertical" >
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_width="fill_parent"
|
android:layout_marginLeft="3dip"
|
||||||
android:orientation="horizontal"
|
android:orientation="horizontal" >
|
||||||
android:layout_marginLeft="3dip">
|
|
||||||
|
|
||||||
<EditText
|
<EditText
|
||||||
android:id="@+id/server"
|
android:id="@+id/server"
|
||||||
android:layout_weight="1"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_width="fill_parent"
|
android:layout_weight="1"
|
||||||
android:inputType="textUri"/>
|
android:inputType="textUri" />
|
||||||
|
|
||||||
<ImageButton
|
|
||||||
android:id="@+id/delete"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
style="@style/MinusButton"
|
|
||||||
android:layout_gravity="center_vertical"
|
|
||||||
android:layout_marginRight="3dip"/>
|
|
||||||
|
|
||||||
|
<com.beardedhen.androidbootstrap.BootstrapButton
|
||||||
|
android:id="@+id/delete"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_gravity="center_vertical"
|
||||||
|
android:layout_margin="10dp"
|
||||||
|
android:layout_marginRight="3dip"
|
||||||
|
bootstrapbutton:bb_icon_left="fa-minus"
|
||||||
|
bootstrapbutton:bb_roundedCorners="true"
|
||||||
|
bootstrapbutton:bb_size="small"
|
||||||
|
bootstrapbutton:bb_type="danger" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
<View
|
<View
|
||||||
android:id="@+id/separator"
|
android:id="@+id/separator"
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="1dip"
|
android:layout_height="1dip"
|
||||||
android:background="?android:attr/listDivider"/>
|
android:background="?android:attr/listDivider" />
|
||||||
|
|
||||||
</org.sufficientlysecure.keychain.ui.widget.KeyServerEditor>
|
</org.sufficientlysecure.keychain.ui.widget.KeyServerEditor>
|
@ -1,21 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?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"
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:bootstrapbutton="http://schemas.android.com/apk/res-auto"
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="fill_parent"
|
||||||
android:layout_height="fill_parent"
|
android:layout_height="fill_parent"
|
||||||
android:orientation="vertical" >
|
android:orientation="vertical" >
|
||||||
@ -57,15 +42,18 @@
|
|||||||
android:textAppearance="?android:attr/textAppearanceSmall" />
|
android:textAppearance="?android:attr/textAppearanceSmall" />
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
||||||
<ImageView
|
<com.beardedhen.androidbootstrap.BootstrapButton
|
||||||
android:id="@+id/add"
|
android:id="@+id/add"
|
||||||
style="@style/PlusButton"
|
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center_vertical"
|
android:layout_gravity="center_vertical"
|
||||||
|
android:layout_margin="10dp"
|
||||||
android:layout_marginLeft="4dip"
|
android:layout_marginLeft="4dip"
|
||||||
android:layout_marginRight="6dip"
|
android:layout_marginRight="6dip"
|
||||||
android:clickable="true" />
|
bootstrapbutton:bb_icon_left="fa-plus"
|
||||||
|
bootstrapbutton:bb_roundedCorners="true"
|
||||||
|
bootstrapbutton:bb_size="small"
|
||||||
|
bootstrapbutton:bb_type="success" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
<View
|
<View
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:bootstrapbutton="http://schemas.android.com/apk/res-auto"
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="fill_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginRight="?android:attr/scrollbarSize"
|
android:layout_marginRight="?android:attr/scrollbarSize"
|
||||||
@ -120,10 +121,13 @@
|
|||||||
android:padding="4dp"
|
android:padding="4dp"
|
||||||
android:text="@string/section_actions" />
|
android:text="@string/section_actions" />
|
||||||
|
|
||||||
<Button
|
<com.beardedhen.androidbootstrap.BootstrapButton
|
||||||
android:id="@+id/action_encrypt"
|
android:id="@+id/action_encrypt"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="60dp"
|
||||||
android:text="@string/key_view_action_encrypt" />
|
android:padding="4dp"
|
||||||
|
android:text="@string/key_view_action_encrypt"
|
||||||
|
bootstrapbutton:bb_icon_left="fa-lock"
|
||||||
|
bootstrapbutton:bb_type="info" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
@ -12,15 +12,15 @@ And don't add newlines before or after p tags because of transifex -->
|
|||||||
<h2>Developers OpenPGP Keychain</h2>
|
<h2>Developers OpenPGP Keychain</h2>
|
||||||
<ul>
|
<ul>
|
||||||
<li>Dominik Schürmann (Lead developer)</li>
|
<li>Dominik Schürmann (Lead developer)</li>
|
||||||
<li>Ash Hughes</li>
|
<li>Ash Hughes (crypto patches)</li>
|
||||||
<li>Brian C. Barnes</li>
|
<li>Brian C. Barnes</li>
|
||||||
<li>Bahtiar 'kalkin' Gadimov</li>
|
<li>Bahtiar 'kalkin' Gadimov (UI)</li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
<h2>Developers APG 1.x</h2>
|
<h2>Developers APG 1.x</h2>
|
||||||
<ul>
|
<ul>
|
||||||
<li>Thialfihar (Lead developer)</li>
|
<li>'Thialfihar' (Lead developer)</li>
|
||||||
<li>Senecaso (QRCode, sign key, upload key)</li>
|
<li>'Senecaso' (QRCode, sign key, upload key)</li>
|
||||||
<li>Oliver Runge</li>
|
<li>Oliver Runge</li>
|
||||||
<li>Markus Doits</li>
|
<li>Markus Doits</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -18,16 +18,6 @@
|
|||||||
|
|
||||||
<resources>
|
<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>
|
|
||||||
|
|
||||||
<style name="DashboardButton">
|
<style name="DashboardButton">
|
||||||
<item name="android:layout_gravity">center_vertical</item>
|
<item name="android:layout_gravity">center_vertical</item>
|
||||||
<item name="android:layout_width">wrap_content</item>
|
<item name="android:layout_width">wrap_content</item>
|
||||||
@ -44,7 +34,7 @@
|
|||||||
<item name="android:drawablePadding">4dp</item>
|
<item name="android:drawablePadding">4dp</item>
|
||||||
<item name="android:layout_marginTop">8dp</item>
|
<item name="android:layout_marginTop">8dp</item>
|
||||||
<item name="android:paddingLeft">4dp</item>
|
<item name="android:paddingLeft">4dp</item>
|
||||||
<item name="android:textAllCaps">true</item>
|
<!-- <item name="android:textAllCaps">true</item> -->
|
||||||
<item name="android:textColor">@color/emphasis</item>
|
<item name="android:textColor">@color/emphasis</item>
|
||||||
<item name="android:textSize">14sp</item>
|
<item name="android:textSize">14sp</item>
|
||||||
</style>
|
</style>
|
||||||
|
@ -60,7 +60,6 @@ import android.view.View.OnClickListener;
|
|||||||
import android.view.animation.AnimationUtils;
|
import android.view.animation.AnimationUtils;
|
||||||
import android.widget.CheckBox;
|
import android.widget.CheckBox;
|
||||||
import android.widget.EditText;
|
import android.widget.EditText;
|
||||||
import android.widget.ImageButton;
|
|
||||||
import android.widget.ImageView;
|
import android.widget.ImageView;
|
||||||
import android.widget.LinearLayout;
|
import android.widget.LinearLayout;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
@ -70,6 +69,7 @@ import android.widget.ViewFlipper;
|
|||||||
import com.actionbarsherlock.app.SherlockFragmentActivity;
|
import com.actionbarsherlock.app.SherlockFragmentActivity;
|
||||||
import com.actionbarsherlock.view.Menu;
|
import com.actionbarsherlock.view.Menu;
|
||||||
import com.actionbarsherlock.view.MenuItem;
|
import com.actionbarsherlock.view.MenuItem;
|
||||||
|
import com.beardedhen.androidbootstrap.BootstrapButton;
|
||||||
|
|
||||||
@SuppressLint("NewApi")
|
@SuppressLint("NewApi")
|
||||||
public class DecryptActivity extends SherlockFragmentActivity {
|
public class DecryptActivity extends SherlockFragmentActivity {
|
||||||
@ -107,7 +107,7 @@ public class DecryptActivity extends SherlockFragmentActivity {
|
|||||||
|
|
||||||
private EditText mFilename = null;
|
private EditText mFilename = null;
|
||||||
private CheckBox mDeleteAfter = null;
|
private CheckBox mDeleteAfter = null;
|
||||||
private ImageButton mBrowse = null;
|
private BootstrapButton mBrowse = null;
|
||||||
|
|
||||||
private String mInputFilename = null;
|
private String mInputFilename = null;
|
||||||
private String mOutputFilename = null;
|
private String mOutputFilename = null;
|
||||||
@ -216,7 +216,7 @@ public class DecryptActivity extends SherlockFragmentActivity {
|
|||||||
mMessage.setMinimumHeight(height);
|
mMessage.setMinimumHeight(height);
|
||||||
|
|
||||||
mFilename = (EditText) findViewById(R.id.filename);
|
mFilename = (EditText) findViewById(R.id.filename);
|
||||||
mBrowse = (ImageButton) findViewById(R.id.btn_browse);
|
mBrowse = (BootstrapButton) findViewById(R.id.btn_browse);
|
||||||
mBrowse.setOnClickListener(new View.OnClickListener() {
|
mBrowse.setOnClickListener(new View.OnClickListener() {
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
FileHelper.openFile(DecryptActivity.this, mFilename.getText().toString(), "*/*",
|
FileHelper.openFile(DecryptActivity.this, mFilename.getText().toString(), "*/*",
|
||||||
|
@ -55,7 +55,6 @@ import android.view.LayoutInflater;
|
|||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.view.View.OnClickListener;
|
import android.view.View.OnClickListener;
|
||||||
import android.view.ViewGroup;
|
import android.view.ViewGroup;
|
||||||
import android.widget.Button;
|
|
||||||
import android.widget.CheckBox;
|
import android.widget.CheckBox;
|
||||||
import android.widget.CompoundButton;
|
import android.widget.CompoundButton;
|
||||||
import android.widget.CompoundButton.OnCheckedChangeListener;
|
import android.widget.CompoundButton.OnCheckedChangeListener;
|
||||||
@ -64,6 +63,7 @@ import android.widget.Toast;
|
|||||||
|
|
||||||
import com.actionbarsherlock.view.Menu;
|
import com.actionbarsherlock.view.Menu;
|
||||||
import com.actionbarsherlock.view.MenuItem;
|
import com.actionbarsherlock.view.MenuItem;
|
||||||
|
import com.beardedhen.androidbootstrap.BootstrapButton;
|
||||||
|
|
||||||
public class EditKeyActivity extends KeyActivity {
|
public class EditKeyActivity extends KeyActivity {
|
||||||
|
|
||||||
@ -91,7 +91,7 @@ public class EditKeyActivity extends KeyActivity {
|
|||||||
private String mCurrentPassPhrase = null;
|
private String mCurrentPassPhrase = null;
|
||||||
private String mNewPassPhrase = null;
|
private String mNewPassPhrase = null;
|
||||||
|
|
||||||
private Button mChangePassPhrase;
|
private BootstrapButton mChangePassPhrase;
|
||||||
|
|
||||||
private CheckBox mNoPassphrase;
|
private CheckBox mNoPassphrase;
|
||||||
|
|
||||||
@ -336,7 +336,7 @@ public class EditKeyActivity extends KeyActivity {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
deleteKey(mDataUri, Id.type.secret_key, returnHandler);
|
deleteKey(mDataUri, Id.type.secret_key, returnHandler);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -426,7 +426,7 @@ public class EditKeyActivity extends KeyActivity {
|
|||||||
setContentView(R.layout.edit_key);
|
setContentView(R.layout.edit_key);
|
||||||
|
|
||||||
// find views
|
// find views
|
||||||
mChangePassPhrase = (Button) findViewById(R.id.edit_key_btn_change_pass_phrase);
|
mChangePassPhrase = (BootstrapButton) findViewById(R.id.edit_key_btn_change_pass_phrase);
|
||||||
mNoPassphrase = (CheckBox) findViewById(R.id.edit_key_no_passphrase);
|
mNoPassphrase = (CheckBox) findViewById(R.id.edit_key_no_passphrase);
|
||||||
|
|
||||||
// Build layout based on given userIds and keys
|
// Build layout based on given userIds and keys
|
||||||
@ -653,7 +653,7 @@ public class EditKeyActivity extends KeyActivity {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void updatePassPhraseButtonText() {
|
private void updatePassPhraseButtonText() {
|
||||||
mChangePassPhrase.setText(isPassphraseSet() ? R.string.btn_change_passphrase
|
mChangePassPhrase.setText(isPassphraseSet() ? getString(R.string.btn_change_passphrase)
|
||||||
: R.string.btn_set_passphrase);
|
: getString(R.string.btn_set_passphrase));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -55,10 +55,8 @@ import android.view.View;
|
|||||||
import android.view.View.OnClickListener;
|
import android.view.View.OnClickListener;
|
||||||
import android.view.animation.AnimationUtils;
|
import android.view.animation.AnimationUtils;
|
||||||
import android.widget.ArrayAdapter;
|
import android.widget.ArrayAdapter;
|
||||||
import android.widget.Button;
|
|
||||||
import android.widget.CheckBox;
|
import android.widget.CheckBox;
|
||||||
import android.widget.EditText;
|
import android.widget.EditText;
|
||||||
import android.widget.ImageButton;
|
|
||||||
import android.widget.ImageView;
|
import android.widget.ImageView;
|
||||||
import android.widget.Spinner;
|
import android.widget.Spinner;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
@ -68,6 +66,7 @@ import android.widget.ViewFlipper;
|
|||||||
import com.actionbarsherlock.app.SherlockFragmentActivity;
|
import com.actionbarsherlock.app.SherlockFragmentActivity;
|
||||||
import com.actionbarsherlock.view.Menu;
|
import com.actionbarsherlock.view.Menu;
|
||||||
import com.actionbarsherlock.view.MenuItem;
|
import com.actionbarsherlock.view.MenuItem;
|
||||||
|
import com.beardedhen.androidbootstrap.BootstrapButton;
|
||||||
|
|
||||||
public class EncryptActivity extends SherlockFragmentActivity {
|
public class EncryptActivity extends SherlockFragmentActivity {
|
||||||
|
|
||||||
@ -87,7 +86,7 @@ public class EncryptActivity extends SherlockFragmentActivity {
|
|||||||
private long mEncryptionKeyIds[] = null;
|
private long mEncryptionKeyIds[] = null;
|
||||||
|
|
||||||
private EditText mMessage = null;
|
private EditText mMessage = null;
|
||||||
private Button mSelectKeysButton = null;
|
private BootstrapButton mSelectKeysButton = null;
|
||||||
|
|
||||||
private boolean mEncryptEnabled = false;
|
private boolean mEncryptEnabled = false;
|
||||||
private String mEncryptString = "";
|
private String mEncryptString = "";
|
||||||
@ -117,7 +116,7 @@ public class EncryptActivity extends SherlockFragmentActivity {
|
|||||||
|
|
||||||
private EditText mFilename = null;
|
private EditText mFilename = null;
|
||||||
private CheckBox mDeleteAfter = null;
|
private CheckBox mDeleteAfter = null;
|
||||||
private ImageButton mBrowse = null;
|
private BootstrapButton mBrowse = null;
|
||||||
|
|
||||||
private String mInputFilename = null;
|
private String mInputFilename = null;
|
||||||
private String mOutputFilename = null;
|
private String mOutputFilename = null;
|
||||||
@ -825,7 +824,7 @@ public class EncryptActivity extends SherlockFragmentActivity {
|
|||||||
mModeLabel.setOnClickListener(nextModeClickListener);
|
mModeLabel.setOnClickListener(nextModeClickListener);
|
||||||
|
|
||||||
mMessage = (EditText) findViewById(R.id.message);
|
mMessage = (EditText) findViewById(R.id.message);
|
||||||
mSelectKeysButton = (Button) findViewById(R.id.btn_selectEncryptKeys);
|
mSelectKeysButton = (BootstrapButton) findViewById(R.id.btn_selectEncryptKeys);
|
||||||
mSign = (CheckBox) findViewById(R.id.sign);
|
mSign = (CheckBox) findViewById(R.id.sign);
|
||||||
mMainUserId = (TextView) findViewById(R.id.mainUserId);
|
mMainUserId = (TextView) findViewById(R.id.mainUserId);
|
||||||
mMainUserIdRest = (TextView) findViewById(R.id.mainUserIdRest);
|
mMainUserIdRest = (TextView) findViewById(R.id.mainUserIdRest);
|
||||||
@ -841,7 +840,7 @@ public class EncryptActivity extends SherlockFragmentActivity {
|
|||||||
mMessage.setMinimumHeight(height);
|
mMessage.setMinimumHeight(height);
|
||||||
|
|
||||||
mFilename = (EditText) findViewById(R.id.filename);
|
mFilename = (EditText) findViewById(R.id.filename);
|
||||||
mBrowse = (ImageButton) findViewById(R.id.btn_browse);
|
mBrowse = (BootstrapButton) findViewById(R.id.btn_browse);
|
||||||
mBrowse.setOnClickListener(new View.OnClickListener() {
|
mBrowse.setOnClickListener(new View.OnClickListener() {
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
FileHelper.openFile(EncryptActivity.this, mFilename.getText().toString(), "*/*",
|
FileHelper.openFile(EncryptActivity.this, mFilename.getText().toString(), "*/*",
|
||||||
@ -896,9 +895,9 @@ public class EncryptActivity extends SherlockFragmentActivity {
|
|||||||
|
|
||||||
private void updateView() {
|
private void updateView() {
|
||||||
if (mEncryptionKeyIds == null || mEncryptionKeyIds.length == 0) {
|
if (mEncryptionKeyIds == null || mEncryptionKeyIds.length == 0) {
|
||||||
mSelectKeysButton.setText(R.string.no_keys_selected);
|
mSelectKeysButton.setText(getString(R.string.no_keys_selected));
|
||||||
} else if (mEncryptionKeyIds.length == 1) {
|
} else if (mEncryptionKeyIds.length == 1) {
|
||||||
mSelectKeysButton.setText(R.string.one_key_selected);
|
mSelectKeysButton.setText(getString(R.string.one_key_selected));
|
||||||
} else {
|
} else {
|
||||||
mSelectKeysButton.setText("" + mEncryptionKeyIds.length + " "
|
mSelectKeysButton.setText("" + mEncryptionKeyIds.length + " "
|
||||||
+ getResources().getString(R.string.n_keys_selected));
|
+ getResources().getString(R.string.n_keys_selected));
|
||||||
|
@ -19,6 +19,7 @@ package org.sufficientlysecure.keychain.ui;
|
|||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.sufficientlysecure.keychain.Constants;
|
import org.sufficientlysecure.keychain.Constants;
|
||||||
import org.sufficientlysecure.keychain.R;
|
import org.sufficientlysecure.keychain.R;
|
||||||
import org.sufficientlysecure.keychain.helper.ActionBarHelper;
|
import org.sufficientlysecure.keychain.helper.ActionBarHelper;
|
||||||
@ -28,6 +29,7 @@ import org.sufficientlysecure.keychain.ui.adapter.ImportKeysListEntry;
|
|||||||
import org.sufficientlysecure.keychain.ui.dialog.DeleteFileDialogFragment;
|
import org.sufficientlysecure.keychain.ui.dialog.DeleteFileDialogFragment;
|
||||||
import org.sufficientlysecure.keychain.ui.dialog.FileDialogFragment;
|
import org.sufficientlysecure.keychain.ui.dialog.FileDialogFragment;
|
||||||
import org.sufficientlysecure.keychain.util.Log;
|
import org.sufficientlysecure.keychain.util.Log;
|
||||||
|
|
||||||
import android.annotation.SuppressLint;
|
import android.annotation.SuppressLint;
|
||||||
import android.app.AlertDialog;
|
import android.app.AlertDialog;
|
||||||
import android.app.ProgressDialog;
|
import android.app.ProgressDialog;
|
||||||
@ -43,12 +45,15 @@ import android.os.Parcelable;
|
|||||||
import android.support.v4.app.Fragment;
|
import android.support.v4.app.Fragment;
|
||||||
import android.support.v4.app.FragmentTransaction;
|
import android.support.v4.app.FragmentTransaction;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
|
import android.view.View.OnClickListener;
|
||||||
import android.widget.ArrayAdapter;
|
import android.widget.ArrayAdapter;
|
||||||
import android.widget.Toast;
|
import android.widget.Toast;
|
||||||
|
|
||||||
import com.actionbarsherlock.app.ActionBar;
|
import com.actionbarsherlock.app.ActionBar;
|
||||||
import com.actionbarsherlock.app.ActionBar.OnNavigationListener;
|
import com.actionbarsherlock.app.ActionBar.OnNavigationListener;
|
||||||
import com.actionbarsherlock.app.SherlockFragmentActivity;
|
import com.actionbarsherlock.app.SherlockFragmentActivity;
|
||||||
import com.actionbarsherlock.view.MenuItem;
|
import com.actionbarsherlock.view.MenuItem;
|
||||||
|
import com.beardedhen.androidbootstrap.BootstrapButton;
|
||||||
|
|
||||||
public class ImportKeysActivity extends SherlockFragmentActivity implements OnNavigationListener {
|
public class ImportKeysActivity extends SherlockFragmentActivity implements OnNavigationListener {
|
||||||
public static final String ACTION_IMPORT_KEY = Constants.INTENT_PREFIX + "IMPORT_KEY";
|
public static final String ACTION_IMPORT_KEY = Constants.INTENT_PREFIX + "IMPORT_KEY";
|
||||||
@ -74,12 +79,30 @@ public class ImportKeysActivity extends SherlockFragmentActivity implements OnNa
|
|||||||
OnNavigationListener mOnNavigationListener;
|
OnNavigationListener mOnNavigationListener;
|
||||||
String[] mNavigationStrings;
|
String[] mNavigationStrings;
|
||||||
|
|
||||||
|
BootstrapButton mImportButton;
|
||||||
|
BootstrapButton mImportSignUploadButton;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onCreate(Bundle savedInstanceState) {
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
|
||||||
setContentView(R.layout.import_keys);
|
setContentView(R.layout.import_keys);
|
||||||
|
|
||||||
|
mImportButton = (BootstrapButton) findViewById(R.id.import_import);
|
||||||
|
mImportButton.setOnClickListener(new OnClickListener() {
|
||||||
|
@Override
|
||||||
|
public void onClick(View v) {
|
||||||
|
importKeys();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
mImportSignUploadButton = (BootstrapButton) findViewById(R.id.import_sign_and_upload);
|
||||||
|
mImportSignUploadButton.setOnClickListener(new OnClickListener() {
|
||||||
|
@Override
|
||||||
|
public void onClick(View v) {
|
||||||
|
signAndUploadOnClick();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
// set actionbar without home button if called from another app
|
// set actionbar without home button if called from another app
|
||||||
ActionBarHelper.setBackButton(this);
|
ActionBarHelper.setBackButton(this);
|
||||||
|
|
||||||
@ -398,11 +421,11 @@ public class ImportKeysActivity extends SherlockFragmentActivity implements OnNa
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void importOnClick(View view) {
|
public void importOnClick() {
|
||||||
importKeys();
|
importKeys();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void signAndUploadOnClick(View view) {
|
public void signAndUploadOnClick() {
|
||||||
// first, import!
|
// first, import!
|
||||||
// importOnClick(view);
|
// importOnClick(view);
|
||||||
|
|
||||||
|
@ -26,12 +26,13 @@ import android.view.LayoutInflater;
|
|||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.view.View.OnClickListener;
|
import android.view.View.OnClickListener;
|
||||||
import android.view.ViewGroup;
|
import android.view.ViewGroup;
|
||||||
import android.widget.Button;
|
|
||||||
|
import com.beardedhen.androidbootstrap.BootstrapButton;
|
||||||
|
|
||||||
public class ImportKeysClipboardFragment extends Fragment {
|
public class ImportKeysClipboardFragment extends Fragment {
|
||||||
|
|
||||||
private ImportKeysActivity mImportActivity;
|
private ImportKeysActivity mImportActivity;
|
||||||
private Button mButton;
|
private BootstrapButton mButton;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates new instance of this fragment
|
* Creates new instance of this fragment
|
||||||
@ -52,7 +53,7 @@ public class ImportKeysClipboardFragment extends Fragment {
|
|||||||
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
|
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
|
||||||
View view = inflater.inflate(R.layout.import_keys_clipboard_fragment, container, false);
|
View view = inflater.inflate(R.layout.import_keys_clipboard_fragment, container, false);
|
||||||
|
|
||||||
mButton = (Button) view.findViewById(R.id.import_clipboard_button);
|
mButton = (BootstrapButton) view.findViewById(R.id.import_clipboard_button);
|
||||||
mButton.setOnClickListener(new OnClickListener() {
|
mButton.setOnClickListener(new OnClickListener() {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -31,14 +31,15 @@ import android.view.LayoutInflater;
|
|||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.view.ViewGroup;
|
import android.view.ViewGroup;
|
||||||
import android.widget.EditText;
|
import android.widget.EditText;
|
||||||
import android.widget.ImageButton;
|
|
||||||
|
import com.beardedhen.androidbootstrap.BootstrapButton;
|
||||||
|
|
||||||
public class ImportKeysFileFragment extends Fragment {
|
public class ImportKeysFileFragment extends Fragment {
|
||||||
public static final String ARG_PATH = "path";
|
public static final String ARG_PATH = "path";
|
||||||
|
|
||||||
private ImportKeysActivity mImportActivity;
|
private ImportKeysActivity mImportActivity;
|
||||||
private EditText mFilename;
|
private EditText mFilename;
|
||||||
private ImageButton mBrowse;
|
private BootstrapButton mBrowse;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates new instance of this fragment
|
* Creates new instance of this fragment
|
||||||
@ -61,7 +62,7 @@ public class ImportKeysFileFragment extends Fragment {
|
|||||||
View view = inflater.inflate(R.layout.import_keys_file_fragment, container, false);
|
View view = inflater.inflate(R.layout.import_keys_file_fragment, container, false);
|
||||||
|
|
||||||
mFilename = (EditText) view.findViewById(R.id.import_keys_file_input);
|
mFilename = (EditText) view.findViewById(R.id.import_keys_file_input);
|
||||||
mBrowse = (ImageButton) view.findViewById(R.id.import_keys_file_browse);
|
mBrowse = (BootstrapButton) view.findViewById(R.id.import_keys_file_browse);
|
||||||
|
|
||||||
mBrowse.setOnClickListener(new View.OnClickListener() {
|
mBrowse.setOnClickListener(new View.OnClickListener() {
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
|
@ -26,11 +26,12 @@ import android.view.LayoutInflater;
|
|||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.view.View.OnClickListener;
|
import android.view.View.OnClickListener;
|
||||||
import android.view.ViewGroup;
|
import android.view.ViewGroup;
|
||||||
import android.widget.Button;
|
|
||||||
|
import com.beardedhen.androidbootstrap.BootstrapButton;
|
||||||
|
|
||||||
public class ImportKeysNFCFragment extends Fragment {
|
public class ImportKeysNFCFragment extends Fragment {
|
||||||
|
|
||||||
private Button mButton;
|
private BootstrapButton mButton;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates new instance of this fragment
|
* Creates new instance of this fragment
|
||||||
@ -51,7 +52,7 @@ public class ImportKeysNFCFragment extends Fragment {
|
|||||||
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
|
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
|
||||||
View view = inflater.inflate(R.layout.import_keys_nfc_fragment, container, false);
|
View view = inflater.inflate(R.layout.import_keys_nfc_fragment, container, false);
|
||||||
|
|
||||||
mButton = (Button) view.findViewById(R.id.import_nfc_button);
|
mButton = (BootstrapButton) view.findViewById(R.id.import_nfc_button);
|
||||||
mButton.setOnClickListener(new OnClickListener() {
|
mButton.setOnClickListener(new OnClickListener() {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -30,18 +30,18 @@ import android.view.LayoutInflater;
|
|||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.view.View.OnClickListener;
|
import android.view.View.OnClickListener;
|
||||||
import android.view.ViewGroup;
|
import android.view.ViewGroup;
|
||||||
import android.widget.Button;
|
|
||||||
import android.widget.ProgressBar;
|
import android.widget.ProgressBar;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
import android.widget.Toast;
|
import android.widget.Toast;
|
||||||
|
|
||||||
|
import com.beardedhen.androidbootstrap.BootstrapButton;
|
||||||
import com.google.zxing.integration.android.IntentIntegratorSupportV4;
|
import com.google.zxing.integration.android.IntentIntegratorSupportV4;
|
||||||
import com.google.zxing.integration.android.IntentResult;
|
import com.google.zxing.integration.android.IntentResult;
|
||||||
|
|
||||||
public class ImportKeysQrCodeFragment extends Fragment {
|
public class ImportKeysQrCodeFragment extends Fragment {
|
||||||
|
|
||||||
private ImportKeysActivity mImportActivity;
|
private ImportKeysActivity mImportActivity;
|
||||||
private Button mButton;
|
private BootstrapButton mButton;
|
||||||
private TextView mText;
|
private TextView mText;
|
||||||
private ProgressBar mProgress;
|
private ProgressBar mProgress;
|
||||||
|
|
||||||
@ -66,7 +66,7 @@ public class ImportKeysQrCodeFragment extends Fragment {
|
|||||||
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
|
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
|
||||||
View view = inflater.inflate(R.layout.import_keys_qr_code_fragment, container, false);
|
View view = inflater.inflate(R.layout.import_keys_qr_code_fragment, container, false);
|
||||||
|
|
||||||
mButton = (Button) view.findViewById(R.id.import_qrcode_button);
|
mButton = (BootstrapButton) view.findViewById(R.id.import_qrcode_button);
|
||||||
mText = (TextView) view.findViewById(R.id.import_qrcode_text);
|
mText = (TextView) view.findViewById(R.id.import_qrcode_text);
|
||||||
mProgress = (ProgressBar) view.findViewById(R.id.import_qrcode_progress);
|
mProgress = (ProgressBar) view.findViewById(R.id.import_qrcode_progress);
|
||||||
|
|
||||||
|
@ -24,12 +24,13 @@ import android.os.Bundle;
|
|||||||
import android.support.v4.app.Fragment;
|
import android.support.v4.app.Fragment;
|
||||||
import android.view.LayoutInflater;
|
import android.view.LayoutInflater;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.view.ViewGroup;
|
|
||||||
import android.view.View.OnClickListener;
|
import android.view.View.OnClickListener;
|
||||||
import android.widget.Button;
|
import android.view.ViewGroup;
|
||||||
|
|
||||||
|
import com.beardedhen.androidbootstrap.BootstrapButton;
|
||||||
|
|
||||||
public class ImportKeysServerFragment extends Fragment {
|
public class ImportKeysServerFragment extends Fragment {
|
||||||
private Button mButton;
|
private BootstrapButton mButton;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates new instance of this fragment
|
* Creates new instance of this fragment
|
||||||
@ -50,7 +51,7 @@ public class ImportKeysServerFragment extends Fragment {
|
|||||||
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
|
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
|
||||||
View view = inflater.inflate(R.layout.import_keys_keyserver_fragment, container, false);
|
View view = inflater.inflate(R.layout.import_keys_keyserver_fragment, container, false);
|
||||||
|
|
||||||
mButton = (Button) view.findViewById(R.id.import_keyserver_button);
|
mButton = (BootstrapButton) view.findViewById(R.id.import_keyserver_button);
|
||||||
mButton.setOnClickListener(new OnClickListener() {
|
mButton.setOnClickListener(new OnClickListener() {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -22,9 +22,9 @@ import java.util.Set;
|
|||||||
import org.sufficientlysecure.keychain.Id;
|
import org.sufficientlysecure.keychain.Id;
|
||||||
import org.sufficientlysecure.keychain.R;
|
import org.sufficientlysecure.keychain.R;
|
||||||
import org.sufficientlysecure.keychain.provider.KeychainContract;
|
import org.sufficientlysecure.keychain.provider.KeychainContract;
|
||||||
import org.sufficientlysecure.keychain.provider.ProviderHelper;
|
|
||||||
import org.sufficientlysecure.keychain.provider.KeychainContract.KeyRings;
|
import org.sufficientlysecure.keychain.provider.KeychainContract.KeyRings;
|
||||||
import org.sufficientlysecure.keychain.provider.KeychainContract.UserIds;
|
import org.sufficientlysecure.keychain.provider.KeychainContract.UserIds;
|
||||||
|
import org.sufficientlysecure.keychain.provider.ProviderHelper;
|
||||||
import org.sufficientlysecure.keychain.ui.adapter.KeyListPublicAdapter;
|
import org.sufficientlysecure.keychain.ui.adapter.KeyListPublicAdapter;
|
||||||
import org.sufficientlysecure.keychain.ui.dialog.DeleteKeyDialogFragment;
|
import org.sufficientlysecure.keychain.ui.dialog.DeleteKeyDialogFragment;
|
||||||
|
|
||||||
@ -45,13 +45,14 @@ import android.view.LayoutInflater;
|
|||||||
import android.view.Menu;
|
import android.view.Menu;
|
||||||
import android.view.MenuItem;
|
import android.view.MenuItem;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.view.ViewGroup;
|
|
||||||
import android.view.View.OnClickListener;
|
import android.view.View.OnClickListener;
|
||||||
|
import android.view.ViewGroup;
|
||||||
import android.widget.AbsListView.MultiChoiceModeListener;
|
import android.widget.AbsListView.MultiChoiceModeListener;
|
||||||
import android.widget.AdapterView;
|
import android.widget.AdapterView;
|
||||||
import android.widget.Button;
|
|
||||||
import android.widget.ListView;
|
import android.widget.ListView;
|
||||||
|
|
||||||
|
import com.beardedhen.androidbootstrap.BootstrapButton;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Public key list with sticky list headers. It does _not_ extend ListFragment because it uses
|
* Public key list with sticky list headers. It does _not_ extend ListFragment because it uses
|
||||||
* StickyListHeaders library which does not extend upon ListView.
|
* StickyListHeaders library which does not extend upon ListView.
|
||||||
@ -63,8 +64,8 @@ public class KeyListPublicFragment extends Fragment implements AdapterView.OnIte
|
|||||||
private StickyListHeadersListView mStickyList;
|
private StickyListHeadersListView mStickyList;
|
||||||
|
|
||||||
// empty layout
|
// empty layout
|
||||||
private Button mButtonEmptyCreate;
|
private BootstrapButton mButtonEmptyCreate;
|
||||||
private Button mButtonEmptyImport;
|
private BootstrapButton mButtonEmptyImport;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Load custom layout with StickyListView from library
|
* Load custom layout with StickyListView from library
|
||||||
@ -73,7 +74,7 @@ public class KeyListPublicFragment extends Fragment implements AdapterView.OnIte
|
|||||||
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
|
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
|
||||||
View view = inflater.inflate(R.layout.key_list_public_fragment, container, false);
|
View view = inflater.inflate(R.layout.key_list_public_fragment, container, false);
|
||||||
|
|
||||||
mButtonEmptyCreate = (Button) view.findViewById(R.id.key_list_empty_button_create);
|
mButtonEmptyCreate = (BootstrapButton) view.findViewById(R.id.key_list_empty_button_create);
|
||||||
mButtonEmptyCreate.setOnClickListener(new OnClickListener() {
|
mButtonEmptyCreate.setOnClickListener(new OnClickListener() {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -86,7 +87,7 @@ public class KeyListPublicFragment extends Fragment implements AdapterView.OnIte
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
mButtonEmptyImport = (Button) view.findViewById(R.id.key_list_empty_button_import);
|
mButtonEmptyImport = (BootstrapButton) view.findViewById(R.id.key_list_empty_button_import);
|
||||||
mButtonEmptyImport.setOnClickListener(new OnClickListener() {
|
mButtonEmptyImport.setOnClickListener(new OnClickListener() {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -52,12 +52,12 @@ import android.os.Message;
|
|||||||
import android.text.format.DateFormat;
|
import android.text.format.DateFormat;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.view.View.OnClickListener;
|
import android.view.View.OnClickListener;
|
||||||
import android.widget.Button;
|
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
import android.widget.Toast;
|
import android.widget.Toast;
|
||||||
|
|
||||||
import com.actionbarsherlock.view.Menu;
|
import com.actionbarsherlock.view.Menu;
|
||||||
import com.actionbarsherlock.view.MenuItem;
|
import com.actionbarsherlock.view.MenuItem;
|
||||||
|
import com.beardedhen.androidbootstrap.BootstrapButton;
|
||||||
|
|
||||||
@SuppressLint("NewApi")
|
@SuppressLint("NewApi")
|
||||||
public class KeyViewActivity extends KeyActivity implements CreateNdefMessageCallback,
|
public class KeyViewActivity extends KeyActivity implements CreateNdefMessageCallback,
|
||||||
@ -70,7 +70,7 @@ public class KeyViewActivity extends KeyActivity implements CreateNdefMessageCal
|
|||||||
private TextView mFingerint;
|
private TextView mFingerint;
|
||||||
private TextView mExpiry;
|
private TextView mExpiry;
|
||||||
private TextView mCreation;
|
private TextView mCreation;
|
||||||
private Button mActionEncrypt;
|
private BootstrapButton mActionEncrypt;
|
||||||
|
|
||||||
// NFC
|
// NFC
|
||||||
private NfcAdapter mNfcAdapter;
|
private NfcAdapter mNfcAdapter;
|
||||||
@ -90,7 +90,7 @@ public class KeyViewActivity extends KeyActivity implements CreateNdefMessageCal
|
|||||||
mExpiry = (TextView) this.findViewById(R.id.expiry);
|
mExpiry = (TextView) this.findViewById(R.id.expiry);
|
||||||
mCreation = (TextView) this.findViewById(R.id.creation);
|
mCreation = (TextView) this.findViewById(R.id.creation);
|
||||||
mAlgorithm = (TextView) this.findViewById(R.id.algorithm);
|
mAlgorithm = (TextView) this.findViewById(R.id.algorithm);
|
||||||
mActionEncrypt = (Button) this.findViewById(R.id.action_encrypt);
|
mActionEncrypt = (BootstrapButton) this.findViewById(R.id.action_encrypt);
|
||||||
|
|
||||||
Intent intent = getIntent();
|
Intent intent = getIntent();
|
||||||
mDataUri = intent.getData();
|
mDataUri = intent.getData();
|
||||||
|
@ -18,9 +18,9 @@
|
|||||||
package org.sufficientlysecure.keychain.ui.dialog;
|
package org.sufficientlysecure.keychain.ui.dialog;
|
||||||
|
|
||||||
import org.sufficientlysecure.keychain.Constants;
|
import org.sufficientlysecure.keychain.Constants;
|
||||||
|
import org.sufficientlysecure.keychain.R;
|
||||||
import org.sufficientlysecure.keychain.helper.FileHelper;
|
import org.sufficientlysecure.keychain.helper.FileHelper;
|
||||||
import org.sufficientlysecure.keychain.util.Log;
|
import org.sufficientlysecure.keychain.util.Log;
|
||||||
import org.sufficientlysecure.keychain.R;
|
|
||||||
|
|
||||||
import android.app.Activity;
|
import android.app.Activity;
|
||||||
import android.app.AlertDialog;
|
import android.app.AlertDialog;
|
||||||
@ -36,7 +36,8 @@ import android.view.LayoutInflater;
|
|||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.widget.CheckBox;
|
import android.widget.CheckBox;
|
||||||
import android.widget.EditText;
|
import android.widget.EditText;
|
||||||
import android.widget.ImageButton;
|
|
||||||
|
import com.beardedhen.androidbootstrap.BootstrapButton;
|
||||||
|
|
||||||
// TODO: return result from file manager activity to this dialog! not the activity!
|
// TODO: return result from file manager activity to this dialog! not the activity!
|
||||||
// do it like in ImportFileFragment!
|
// do it like in ImportFileFragment!
|
||||||
@ -55,6 +56,10 @@ public class FileDialogFragment extends DialogFragment {
|
|||||||
|
|
||||||
private Messenger mMessenger;
|
private Messenger mMessenger;
|
||||||
|
|
||||||
|
private EditText mFilename;
|
||||||
|
private BootstrapButton mBrowse;
|
||||||
|
private CheckBox mCheckBox;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates new instance of this file dialog fragment
|
* Creates new instance of this file dialog fragment
|
||||||
*/
|
*/
|
||||||
@ -90,10 +95,6 @@ public class FileDialogFragment extends DialogFragment {
|
|||||||
String checkboxText = getArguments().getString(ARG_CHECKBOX_TEXT);
|
String checkboxText = getArguments().getString(ARG_CHECKBOX_TEXT);
|
||||||
final int requestCode = getArguments().getInt(ARG_REQUEST_CODE);
|
final int requestCode = getArguments().getInt(ARG_REQUEST_CODE);
|
||||||
|
|
||||||
final EditText mFilename;
|
|
||||||
final ImageButton mBrowse;
|
|
||||||
final CheckBox mCheckBox;
|
|
||||||
|
|
||||||
LayoutInflater inflater = (LayoutInflater) activity
|
LayoutInflater inflater = (LayoutInflater) activity
|
||||||
.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
|
.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
|
||||||
AlertDialog.Builder alert = new AlertDialog.Builder(activity);
|
AlertDialog.Builder alert = new AlertDialog.Builder(activity);
|
||||||
@ -105,13 +106,13 @@ public class FileDialogFragment extends DialogFragment {
|
|||||||
|
|
||||||
mFilename = (EditText) view.findViewById(R.id.input);
|
mFilename = (EditText) view.findViewById(R.id.input);
|
||||||
mFilename.setText(defaultFile);
|
mFilename.setText(defaultFile);
|
||||||
mBrowse = (ImageButton) view.findViewById(R.id.btn_browse);
|
mBrowse = (BootstrapButton) view.findViewById(R.id.btn_browse);
|
||||||
mBrowse.setOnClickListener(new View.OnClickListener() {
|
mBrowse.setOnClickListener(new View.OnClickListener() {
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
// only .asc or .gpg files
|
// only .asc or .gpg files
|
||||||
// setting it to text/plain prevents Cynaogenmod's file manager from selecting asc or gpg types!
|
// setting it to text/plain prevents Cynaogenmod's file manager from selecting asc
|
||||||
FileHelper.openFile(activity, mFilename.getText().toString(), "*/*",
|
// or gpg types!
|
||||||
requestCode);
|
FileHelper.openFile(activity, mFilename.getText().toString(), "*/*", requestCode);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -196,4 +197,3 @@ public class FileDialogFragment extends DialogFragment {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -16,12 +16,18 @@
|
|||||||
|
|
||||||
package org.sufficientlysecure.keychain.ui.widget;
|
package org.sufficientlysecure.keychain.ui.widget;
|
||||||
|
|
||||||
|
import java.text.DateFormat;
|
||||||
|
import java.util.Calendar;
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.GregorianCalendar;
|
||||||
|
import java.util.Vector;
|
||||||
|
|
||||||
import org.spongycastle.openpgp.PGPPublicKey;
|
import org.spongycastle.openpgp.PGPPublicKey;
|
||||||
import org.spongycastle.openpgp.PGPSecretKey;
|
import org.spongycastle.openpgp.PGPSecretKey;
|
||||||
import org.sufficientlysecure.keychain.Id;
|
import org.sufficientlysecure.keychain.Id;
|
||||||
|
import org.sufficientlysecure.keychain.R;
|
||||||
import org.sufficientlysecure.keychain.pgp.PgpKeyHelper;
|
import org.sufficientlysecure.keychain.pgp.PgpKeyHelper;
|
||||||
import org.sufficientlysecure.keychain.util.Choice;
|
import org.sufficientlysecure.keychain.util.Choice;
|
||||||
import org.sufficientlysecure.keychain.R;
|
|
||||||
|
|
||||||
import android.app.DatePickerDialog;
|
import android.app.DatePickerDialog;
|
||||||
import android.app.Dialog;
|
import android.app.Dialog;
|
||||||
@ -32,18 +38,12 @@ import android.view.View;
|
|||||||
import android.view.View.OnClickListener;
|
import android.view.View.OnClickListener;
|
||||||
import android.view.ViewGroup;
|
import android.view.ViewGroup;
|
||||||
import android.widget.ArrayAdapter;
|
import android.widget.ArrayAdapter;
|
||||||
import android.widget.Button;
|
|
||||||
import android.widget.DatePicker;
|
import android.widget.DatePicker;
|
||||||
import android.widget.ImageButton;
|
|
||||||
import android.widget.LinearLayout;
|
import android.widget.LinearLayout;
|
||||||
import android.widget.Spinner;
|
import android.widget.Spinner;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
|
|
||||||
import java.text.DateFormat;
|
import com.beardedhen.androidbootstrap.BootstrapButton;
|
||||||
import java.util.Calendar;
|
|
||||||
import java.util.Date;
|
|
||||||
import java.util.GregorianCalendar;
|
|
||||||
import java.util.Vector;
|
|
||||||
|
|
||||||
public class KeyEditor extends LinearLayout implements Editor, OnClickListener {
|
public class KeyEditor extends LinearLayout implements Editor, OnClickListener {
|
||||||
private PGPSecretKey mKey;
|
private PGPSecretKey mKey;
|
||||||
@ -51,12 +51,12 @@ public class KeyEditor extends LinearLayout implements Editor, OnClickListener {
|
|||||||
private EditorListener mEditorListener = null;
|
private EditorListener mEditorListener = null;
|
||||||
|
|
||||||
private boolean mIsMasterKey;
|
private boolean mIsMasterKey;
|
||||||
ImageButton mDeleteButton;
|
BootstrapButton mDeleteButton;
|
||||||
TextView mAlgorithm;
|
TextView mAlgorithm;
|
||||||
TextView mKeyId;
|
TextView mKeyId;
|
||||||
Spinner mUsage;
|
Spinner mUsage;
|
||||||
TextView mCreationDate;
|
TextView mCreationDate;
|
||||||
Button mExpiryDateButton;
|
BootstrapButton mExpiryDateButton;
|
||||||
GregorianCalendar mExpiryDate;
|
GregorianCalendar mExpiryDate;
|
||||||
|
|
||||||
private int mDatePickerResultCount = 0;
|
private int mDatePickerResultCount = 0;
|
||||||
@ -87,7 +87,7 @@ public class KeyEditor extends LinearLayout implements Editor, OnClickListener {
|
|||||||
mAlgorithm = (TextView) findViewById(R.id.algorithm);
|
mAlgorithm = (TextView) findViewById(R.id.algorithm);
|
||||||
mKeyId = (TextView) findViewById(R.id.keyId);
|
mKeyId = (TextView) findViewById(R.id.keyId);
|
||||||
mCreationDate = (TextView) findViewById(R.id.creation);
|
mCreationDate = (TextView) findViewById(R.id.creation);
|
||||||
mExpiryDateButton = (Button) findViewById(R.id.expiry);
|
mExpiryDateButton = (BootstrapButton) findViewById(R.id.expiry);
|
||||||
mUsage = (Spinner) findViewById(R.id.usage);
|
mUsage = (Spinner) findViewById(R.id.usage);
|
||||||
Choice choices[] = {
|
Choice choices[] = {
|
||||||
new Choice(Id.choice.usage.sign_only, getResources().getString(
|
new Choice(Id.choice.usage.sign_only, getResources().getString(
|
||||||
@ -101,7 +101,7 @@ public class KeyEditor extends LinearLayout implements Editor, OnClickListener {
|
|||||||
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
|
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
|
||||||
mUsage.setAdapter(adapter);
|
mUsage.setAdapter(adapter);
|
||||||
|
|
||||||
mDeleteButton = (ImageButton) findViewById(R.id.delete);
|
mDeleteButton = (BootstrapButton) findViewById(R.id.delete);
|
||||||
mDeleteButton.setOnClickListener(this);
|
mDeleteButton.setOnClickListener(this);
|
||||||
|
|
||||||
setExpiryDate(null);
|
setExpiryDate(null);
|
||||||
@ -118,16 +118,18 @@ public class KeyEditor extends LinearLayout implements Editor, OnClickListener {
|
|||||||
date.get(Calendar.DAY_OF_MONTH));
|
date.get(Calendar.DAY_OF_MONTH));
|
||||||
mDatePickerResultCount = 0;
|
mDatePickerResultCount = 0;
|
||||||
dialog.setCancelable(true);
|
dialog.setCancelable(true);
|
||||||
dialog.setButton(Dialog.BUTTON_NEGATIVE, getContext()
|
dialog.setButton(Dialog.BUTTON_NEGATIVE,
|
||||||
.getString(R.string.btn_no_date), new DialogInterface.OnClickListener() {
|
getContext().getString(R.string.btn_no_date),
|
||||||
public void onClick(DialogInterface dialog, int which) {
|
new DialogInterface.OnClickListener() {
|
||||||
if (mDatePickerResultCount++ == 0) // Note: Ignore results after the first
|
public void onClick(DialogInterface dialog, int which) {
|
||||||
// one - android sends multiples.
|
if (mDatePickerResultCount++ == 0) // Note: Ignore results after the
|
||||||
{
|
// first
|
||||||
setExpiryDate(null);
|
// one - android sends multiples.
|
||||||
}
|
{
|
||||||
}
|
setExpiryDate(null);
|
||||||
});
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
dialog.show();
|
dialog.show();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -237,7 +239,7 @@ public class KeyEditor extends LinearLayout implements Editor, OnClickListener {
|
|||||||
private void setExpiryDate(GregorianCalendar date) {
|
private void setExpiryDate(GregorianCalendar date) {
|
||||||
mExpiryDate = date;
|
mExpiryDate = date;
|
||||||
if (date == null) {
|
if (date == null) {
|
||||||
mExpiryDateButton.setText(R.string.none);
|
mExpiryDateButton.setText(getContext().getString(R.string.none));
|
||||||
} else {
|
} else {
|
||||||
mExpiryDateButton.setText(DateFormat.getDateInstance().format(date.getTime()));
|
mExpiryDateButton.setText(DateFormat.getDateInstance().format(date.getTime()));
|
||||||
}
|
}
|
||||||
|
@ -23,14 +23,15 @@ import android.util.AttributeSet;
|
|||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.view.View.OnClickListener;
|
import android.view.View.OnClickListener;
|
||||||
import android.view.ViewGroup;
|
import android.view.ViewGroup;
|
||||||
import android.widget.ImageButton;
|
|
||||||
import android.widget.LinearLayout;
|
import android.widget.LinearLayout;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
|
|
||||||
|
import com.beardedhen.androidbootstrap.BootstrapButton;
|
||||||
|
|
||||||
public class KeyServerEditor extends LinearLayout implements Editor, OnClickListener {
|
public class KeyServerEditor extends LinearLayout implements Editor, OnClickListener {
|
||||||
private EditorListener mEditorListener = null;
|
private EditorListener mEditorListener = null;
|
||||||
|
|
||||||
ImageButton mDeleteButton;
|
BootstrapButton mDeleteButton;
|
||||||
TextView mServer;
|
TextView mServer;
|
||||||
|
|
||||||
public KeyServerEditor(Context context) {
|
public KeyServerEditor(Context context) {
|
||||||
@ -48,7 +49,7 @@ public class KeyServerEditor extends LinearLayout implements Editor, OnClickList
|
|||||||
|
|
||||||
mServer = (TextView) findViewById(R.id.server);
|
mServer = (TextView) findViewById(R.id.server);
|
||||||
|
|
||||||
mDeleteButton = (ImageButton) findViewById(R.id.delete);
|
mDeleteButton = (BootstrapButton) findViewById(R.id.delete);
|
||||||
mDeleteButton.setOnClickListener(this);
|
mDeleteButton.setOnClickListener(this);
|
||||||
|
|
||||||
super.onFinishInflate();
|
super.onFinishInflate();
|
||||||
|
@ -45,17 +45,16 @@ import android.view.View;
|
|||||||
import android.view.View.OnClickListener;
|
import android.view.View.OnClickListener;
|
||||||
import android.view.ViewGroup;
|
import android.view.ViewGroup;
|
||||||
import android.widget.ArrayAdapter;
|
import android.widget.ArrayAdapter;
|
||||||
import android.widget.ImageView;
|
|
||||||
import android.widget.LinearLayout;
|
import android.widget.LinearLayout;
|
||||||
import android.widget.Spinner;
|
import android.widget.Spinner;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
|
|
||||||
import com.actionbarsherlock.app.SherlockFragmentActivity;
|
import com.actionbarsherlock.app.SherlockFragmentActivity;
|
||||||
|
import com.beardedhen.androidbootstrap.BootstrapButton;
|
||||||
|
|
||||||
public class SectionView extends LinearLayout implements OnClickListener, EditorListener {
|
public class SectionView extends LinearLayout implements OnClickListener, EditorListener {
|
||||||
private LayoutInflater mInflater;
|
private LayoutInflater mInflater;
|
||||||
private View mAdd;
|
private BootstrapButton mPlusButton;
|
||||||
private ImageView mPlusButton;
|
|
||||||
private ViewGroup mEditors;
|
private ViewGroup mEditors;
|
||||||
private TextView mTitle;
|
private TextView mTitle;
|
||||||
private int mType = 0;
|
private int mType = 0;
|
||||||
@ -103,7 +102,6 @@ public class SectionView extends LinearLayout implements OnClickListener, Editor
|
|||||||
|
|
||||||
public void setCanEdit(boolean bCanEdit) {
|
public void setCanEdit(boolean bCanEdit) {
|
||||||
canEdit = bCanEdit;
|
canEdit = bCanEdit;
|
||||||
mPlusButton = (ImageView) findViewById(R.id.plusbutton);
|
|
||||||
if (!canEdit) {
|
if (!canEdit) {
|
||||||
mPlusButton.setVisibility(View.INVISIBLE);
|
mPlusButton.setVisibility(View.INVISIBLE);
|
||||||
}
|
}
|
||||||
@ -117,8 +115,8 @@ public class SectionView extends LinearLayout implements OnClickListener, Editor
|
|||||||
setDrawingCacheEnabled(true);
|
setDrawingCacheEnabled(true);
|
||||||
setAlwaysDrawnWithCacheEnabled(true);
|
setAlwaysDrawnWithCacheEnabled(true);
|
||||||
|
|
||||||
mAdd = findViewById(R.id.header);
|
mPlusButton = (BootstrapButton) findViewById(R.id.plusbutton);
|
||||||
mAdd.setOnClickListener(this);
|
mPlusButton.setOnClickListener(this);
|
||||||
|
|
||||||
mEditors = (ViewGroup) findViewById(R.id.editors);
|
mEditors = (ViewGroup) findViewById(R.id.editors);
|
||||||
mTitle = (TextView) findViewById(R.id.title);
|
mTitle = (TextView) findViewById(R.id.title);
|
||||||
|
@ -27,14 +27,15 @@ import android.view.View;
|
|||||||
import android.view.View.OnClickListener;
|
import android.view.View.OnClickListener;
|
||||||
import android.view.ViewGroup;
|
import android.view.ViewGroup;
|
||||||
import android.widget.EditText;
|
import android.widget.EditText;
|
||||||
import android.widget.ImageButton;
|
|
||||||
import android.widget.LinearLayout;
|
import android.widget.LinearLayout;
|
||||||
import android.widget.RadioButton;
|
import android.widget.RadioButton;
|
||||||
|
|
||||||
|
import com.beardedhen.androidbootstrap.BootstrapButton;
|
||||||
|
|
||||||
public class UserIdEditor extends LinearLayout implements Editor, OnClickListener {
|
public class UserIdEditor extends LinearLayout implements Editor, OnClickListener {
|
||||||
private EditorListener mEditorListener = null;
|
private EditorListener mEditorListener = null;
|
||||||
|
|
||||||
private ImageButton mDeleteButton;
|
private BootstrapButton mDeleteButton;
|
||||||
private RadioButton mIsMainUserId;
|
private RadioButton mIsMainUserId;
|
||||||
private EditText mName;
|
private EditText mName;
|
||||||
private EditText mEmail;
|
private EditText mEmail;
|
||||||
@ -95,7 +96,7 @@ public class UserIdEditor extends LinearLayout implements Editor, OnClickListene
|
|||||||
setDrawingCacheEnabled(true);
|
setDrawingCacheEnabled(true);
|
||||||
setAlwaysDrawnWithCacheEnabled(true);
|
setAlwaysDrawnWithCacheEnabled(true);
|
||||||
|
|
||||||
mDeleteButton = (ImageButton) findViewById(R.id.delete);
|
mDeleteButton = (BootstrapButton) findViewById(R.id.delete);
|
||||||
mDeleteButton.setOnClickListener(this);
|
mDeleteButton.setOnClickListener(this);
|
||||||
mIsMainUserId = (RadioButton) findViewById(R.id.isMainUserId);
|
mIsMainUserId = (RadioButton) findViewById(R.id.isMainUserId);
|
||||||
mIsMainUserId.setOnClickListener(this);
|
mIsMainUserId.setOnClickListener(this);
|
||||||
|