mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-12-26 00:48:51 -05:00
ui: use textviews instead of bootstrap buttons in SignEncrypt
This commit is contained in:
parent
d52d455317
commit
0d05ff98cb
@ -67,7 +67,7 @@ public class EncryptFileFragment extends Fragment {
|
|||||||
private CheckBox mDeleteAfter = null;
|
private CheckBox mDeleteAfter = null;
|
||||||
private CheckBox mShareAfter = null;
|
private CheckBox mShareAfter = null;
|
||||||
private BootstrapButton mBrowse = null;
|
private BootstrapButton mBrowse = null;
|
||||||
private BootstrapButton mEncryptFile;
|
private View mEncryptFile;
|
||||||
|
|
||||||
private FileDialogFragment mFileDialog;
|
private FileDialogFragment mFileDialog;
|
||||||
|
|
||||||
@ -92,7 +92,7 @@ public class EncryptFileFragment 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.encrypt_file_fragment, container, false);
|
View view = inflater.inflate(R.layout.encrypt_file_fragment, container, false);
|
||||||
|
|
||||||
mEncryptFile = (BootstrapButton) view.findViewById(R.id.action_encrypt_file);
|
mEncryptFile = view.findViewById(R.id.action_encrypt_file);
|
||||||
mEncryptFile.setOnClickListener(new View.OnClickListener() {
|
mEncryptFile.setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
|
@ -28,9 +28,8 @@ 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.ViewGroup;
|
||||||
import android.widget.EditText;
|
import android.widget.TextView;
|
||||||
|
|
||||||
import com.beardedhen.androidbootstrap.BootstrapButton;
|
|
||||||
import com.devspark.appmsg.AppMsg;
|
import com.devspark.appmsg.AppMsg;
|
||||||
|
|
||||||
import org.sufficientlysecure.keychain.Constants;
|
import org.sufficientlysecure.keychain.Constants;
|
||||||
@ -46,9 +45,9 @@ import org.sufficientlysecure.keychain.util.Log;
|
|||||||
public class EncryptMessageFragment extends Fragment {
|
public class EncryptMessageFragment extends Fragment {
|
||||||
public static final String ARG_TEXT = "text";
|
public static final String ARG_TEXT = "text";
|
||||||
|
|
||||||
private EditText mMessage = null;
|
private TextView mMessage = null;
|
||||||
private BootstrapButton mEncryptShare;
|
private View mEncryptShare;
|
||||||
private BootstrapButton mEncryptClipboard;
|
private View mEncryptClipboard;
|
||||||
|
|
||||||
private EncryptActivityInterface mEncryptInterface;
|
private EncryptActivityInterface mEncryptInterface;
|
||||||
|
|
||||||
@ -70,9 +69,9 @@ public class EncryptMessageFragment 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.encrypt_message_fragment, container, false);
|
View view = inflater.inflate(R.layout.encrypt_message_fragment, container, false);
|
||||||
|
|
||||||
mMessage = (EditText) view.findViewById(R.id.message);
|
mMessage = (TextView) view.findViewById(R.id.message);
|
||||||
mEncryptClipboard = (BootstrapButton) view.findViewById(R.id.action_encrypt_clipboard);
|
mEncryptClipboard = view.findViewById(R.id.action_encrypt_clipboard);
|
||||||
mEncryptShare = (BootstrapButton) view.findViewById(R.id.action_encrypt_share);
|
mEncryptShare = view.findViewById(R.id.action_encrypt_share);
|
||||||
mEncryptClipboard.setOnClickListener(new View.OnClickListener() {
|
mEncryptClipboard.setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
|
@ -68,15 +68,18 @@
|
|||||||
android:layout_alignParentLeft="true"
|
android:layout_alignParentLeft="true"
|
||||||
android:layout_alignParentStart="true" />
|
android:layout_alignParentStart="true" />
|
||||||
|
|
||||||
<com.beardedhen.androidbootstrap.BootstrapButton
|
<TextView
|
||||||
android:id="@+id/action_encrypt_file"
|
android:id="@+id/action_encrypt_file"
|
||||||
|
android:paddingLeft="8dp"
|
||||||
|
android:paddingRight="8dp"
|
||||||
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="50dp"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="4dp"
|
android:minHeight="?android:attr/listPreferredItemHeight"
|
||||||
android:layout_marginBottom="4dp"
|
|
||||||
android:text="@string/btn_encrypt_file"
|
android:text="@string/btn_encrypt_file"
|
||||||
bootstrapbutton:bb_icon_left="fa-lock"
|
android:drawableRight="@drawable/ic_action_save"
|
||||||
bootstrapbutton:bb_type="info"
|
android:drawablePadding="8dp"
|
||||||
|
android:gravity="center_vertical"
|
||||||
android:layout_alignParentBottom="true"
|
android:layout_alignParentBottom="true"
|
||||||
android:layout_alignParentLeft="true"
|
android:layout_alignParentLeft="true"
|
||||||
android:layout_alignParentStart="true" />
|
android:layout_alignParentStart="true" />
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<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="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:fillViewport="true">
|
android:fillViewport="true">
|
||||||
@ -22,41 +21,45 @@
|
|||||||
android:hint="@string/encrypt_content_edit_text_hint"
|
android:hint="@string/encrypt_content_edit_text_hint"
|
||||||
android:layout_weight="1" />
|
android:layout_weight="1" />
|
||||||
|
|
||||||
<TextView
|
|
||||||
style="@style/SectionHeader"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:text="@string/section_encrypt_and_or_sign" />
|
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:orientation="horizontal">
|
|
||||||
|
|
||||||
<com.beardedhen.androidbootstrap.BootstrapButton
|
|
||||||
android:id="@+id/action_encrypt_share"
|
android:id="@+id/action_encrypt_share"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="50dp"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginRight="4dp"
|
android:clickable="true"
|
||||||
android:layout_marginTop="4dp"
|
style="@style/SelectableItem"
|
||||||
android:layout_marginBottom="4dp"
|
android:orientation="horizontal">
|
||||||
android:layout_weight="1"
|
|
||||||
android:text="@string/btn_share"
|
|
||||||
bootstrapbutton:bb_icon_left="fa-share-square"
|
|
||||||
bootstrapbutton:bb_type="info" />
|
|
||||||
|
|
||||||
<com.beardedhen.androidbootstrap.BootstrapButton
|
<TextView
|
||||||
|
android:paddingLeft="8dp"
|
||||||
|
android:paddingRight="8dp"
|
||||||
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:minHeight="?android:attr/listPreferredItemHeight"
|
||||||
|
android:text="@string/btn_share_encrypted_signed"
|
||||||
|
android:drawableRight="@drawable/ic_action_share"
|
||||||
|
android:drawablePadding="8dp"
|
||||||
|
android:gravity="center_vertical"
|
||||||
|
android:layout_weight="1" />
|
||||||
|
|
||||||
|
<View
|
||||||
|
android:layout_width="1dip"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:gravity="right"
|
||||||
|
android:layout_marginBottom="8dp"
|
||||||
|
android:layout_marginTop="8dp"
|
||||||
|
android:background="?android:attr/listDivider" />
|
||||||
|
|
||||||
|
<ImageButton
|
||||||
android:id="@+id/action_encrypt_clipboard"
|
android:id="@+id/action_encrypt_clipboard"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="50dp"
|
android:layout_height="match_parent"
|
||||||
android:layout_marginLeft="4dp"
|
android:padding="8dp"
|
||||||
android:layout_marginTop="4dp"
|
android:src="@drawable/ic_action_copy"
|
||||||
android:layout_marginBottom="4dp"
|
android:layout_gravity="center_vertical"
|
||||||
android:layout_weight="1"
|
style="@style/SelectableItem" />
|
||||||
android:text="@string/btn_clipboard"
|
|
||||||
bootstrapbutton:bb_icon_left="fa-clipboard"
|
|
||||||
bootstrapbutton:bb_type="info" />
|
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
</ScrollView>
|
</ScrollView>
|
||||||
|
@ -66,6 +66,7 @@
|
|||||||
<string name="btn_lookup_key">Lookup key</string>
|
<string name="btn_lookup_key">Lookup key</string>
|
||||||
<string name="btn_encryption_advanced_settings_show">Show advanced settings</string>
|
<string name="btn_encryption_advanced_settings_show">Show advanced settings</string>
|
||||||
<string name="btn_encryption_advanced_settings_hide">Hide advanced settings</string>
|
<string name="btn_encryption_advanced_settings_hide">Hide advanced settings</string>
|
||||||
|
<string name="btn_share_encrypted_signed">Share encrypted/signed...</string>
|
||||||
|
|
||||||
<!-- menu -->
|
<!-- menu -->
|
||||||
<string name="menu_preferences">Settings</string>
|
<string name="menu_preferences">Settings</string>
|
||||||
|
Loading…
Reference in New Issue
Block a user