This commit is contained in:
rohands
2015-09-20 20:20:43 +05:30
parent 50f404ccdd
commit afbf2b36cf
5 changed files with 27 additions and 6 deletions

View File

@@ -708,7 +708,7 @@ public class KeyListFragment extends LoaderFragment
holder.mSlinger.setVisibility(View.VISIBLE);
LongClick.setup(holder.mSlingerButton,getString(R.string.exchange_keys));
LongClick.setup(holder.mSlingerButton);
holder.mSlingerButton.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {

View File

@@ -184,10 +184,10 @@ public class ViewKeyActivity extends BaseNfcActivity implements
//Long Click Listeners implemented
LongClick.setup(mActionEncryptFile,getString(R.string.encrypt_files));
LongClick.setup(mActionEncryptText,getString(R.string.encrypt_text));
LongClick.setup(mActionNfc,getString(R.string.share_nfc));
LongClick.setup(mFab,getString(R.string.exchange_keys));
LongClick.setup(mActionEncryptFile);
LongClick.setup(mActionEncryptText);
LongClick.setup(mActionNfc);
LongClick.setup(mFab);
mRotateSpin.setAnimationListener(new AnimationListener() {

View File

@@ -3,6 +3,22 @@ package org.sufficientlysecure.keychain.ui.util;
/**
* Created by rohan on 20/9/15.
*/
/*
* Copyright 2012 Google Inc.
*
* 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.
*/
import android.content.Context;
import android.graphics.Rect;
import android.text.TextUtils;

View File

@@ -123,7 +123,8 @@
android:layout_gravity="center"
android:src="@drawable/ic_repeat_grey_24dp"
android:padding="12dp"
android:background="?android:selectableItemBackground" />
android:background="?android:selectableItemBackground"
android:contentDescription="@string/exchange_keys"/>
</LinearLayout>

View File

@@ -94,6 +94,7 @@
<ImageButton
android:id="@+id/view_key_action_encrypt_files"
android:contentDescription="@string/encrypt_files"
style="?android:attr/borderlessButtonStyle"
android:layout_width="64dp"
android:layout_height="64dp"
@@ -103,6 +104,7 @@
<ImageButton
android:id="@+id/view_key_action_encrypt_text"
android:contentDescription="@string/encrypt_text"
style="?android:attr/borderlessButtonStyle"
android:layout_width="64dp"
android:layout_height="64dp"
@@ -113,6 +115,7 @@
<ImageButton
android:id="@+id/view_key_action_nfc"
style="?android:attr/borderlessButtonStyle"
android:contentDescription="@string/share_nfc"
android:layout_width="64dp"
android:layout_height="64dp"
android:src="@drawable/ic_nfc_white_24dp"
@@ -213,6 +216,7 @@
<android.support.design.widget.FloatingActionButton
android:id="@+id/fab"
android:contentDescription="@string/exchange_keys"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="24dp"