mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-11-27 19:22:14 -05:00
edit button with image
This commit is contained in:
parent
274326f780
commit
1c2919f07f
@ -50,6 +50,7 @@ import android.widget.AbsListView.MultiChoiceModeListener;
|
|||||||
import android.widget.AdapterView;
|
import android.widget.AdapterView;
|
||||||
import android.widget.Button;
|
import android.widget.Button;
|
||||||
import android.widget.FrameLayout;
|
import android.widget.FrameLayout;
|
||||||
|
import android.widget.ImageButton;
|
||||||
import android.widget.ImageView;
|
import android.widget.ImageView;
|
||||||
import android.widget.ListView;
|
import android.widget.ListView;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
@ -475,7 +476,7 @@ public class KeyListFragment extends Fragment
|
|||||||
TextView mMainUserIdRest;
|
TextView mMainUserIdRest;
|
||||||
View mStatusDivider;
|
View mStatusDivider;
|
||||||
FrameLayout mStatusLayout;
|
FrameLayout mStatusLayout;
|
||||||
Button mButton;
|
ImageButton mButton;
|
||||||
TextView mRevoked;
|
TextView mRevoked;
|
||||||
ImageView mVerified;
|
ImageView mVerified;
|
||||||
}
|
}
|
||||||
@ -488,7 +489,7 @@ public class KeyListFragment extends Fragment
|
|||||||
holder.mMainUserIdRest = (TextView) view.findViewById(R.id.mainUserIdRest);
|
holder.mMainUserIdRest = (TextView) view.findViewById(R.id.mainUserIdRest);
|
||||||
holder.mStatusDivider = (View) view.findViewById(R.id.status_divider);
|
holder.mStatusDivider = (View) view.findViewById(R.id.status_divider);
|
||||||
holder.mStatusLayout = (FrameLayout) view.findViewById(R.id.status_layout);
|
holder.mStatusLayout = (FrameLayout) view.findViewById(R.id.status_layout);
|
||||||
holder.mButton = (Button) view.findViewById(R.id.edit);
|
holder.mButton = (ImageButton) view.findViewById(R.id.edit);
|
||||||
holder.mRevoked = (TextView) view.findViewById(R.id.revoked);
|
holder.mRevoked = (TextView) view.findViewById(R.id.revoked);
|
||||||
holder.mVerified = (ImageView) view.findViewById(R.id.verified);
|
holder.mVerified = (ImageView) view.findViewById(R.id.verified);
|
||||||
view.setTag(holder);
|
view.setTag(holder);
|
||||||
|
@ -51,15 +51,16 @@
|
|||||||
android:layout_width="80dp"
|
android:layout_width="80dp"
|
||||||
android:layout_height="match_parent">
|
android:layout_height="match_parent">
|
||||||
|
|
||||||
<Button
|
<ImageButton
|
||||||
|
android:id="@+id/edit"
|
||||||
style="@style/SelectableItem"
|
style="@style/SelectableItem"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:id="@+id/edit"
|
|
||||||
android:focusable="false"
|
android:focusable="false"
|
||||||
android:enabled="true"
|
android:enabled="true"
|
||||||
android:textAppearance="?android:attr/textAppearanceSmall"
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||||
android:textColor="@color/black"
|
android:textColor="@color/black"
|
||||||
|
android:src="@drawable/ic_action_edit"
|
||||||
android:text="@string/edit" />
|
android:text="@string/edit" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
|
Loading…
Reference in New Issue
Block a user