From 0e700ce21b042030f41d3c488807afb925461f08 Mon Sep 17 00:00:00 2001 From: DSIW Date: Fri, 10 Jun 2016 04:49:35 +0200 Subject: Add icons to list item --- .../pwdstore/utils/PasswordRecyclerAdapter.java | 13 +++++++- .../main/res/drawable-hdpi/ic_action_secure.png | Bin 0 -> 394 bytes .../res/drawable-hdpi/ic_folder_grey600_24dp.png | Bin 0 -> 140 bytes .../main/res/drawable-mdpi/ic_action_secure.png | Bin 0 -> 317 bytes .../res/drawable-mdpi/ic_folder_grey600_24dp.png | Bin 0 -> 123 bytes .../main/res/drawable-xhdpi/ic_action_secure.png | Bin 0 -> 510 bytes .../res/drawable-xhdpi/ic_folder_grey600_24dp.png | Bin 0 -> 194 bytes .../main/res/drawable-xxhdpi/ic_action_secure.png | Bin 0 -> 624 bytes .../res/drawable-xxhdpi/ic_folder_grey600_24dp.png | Bin 0 -> 259 bytes app/src/main/res/layout/password_row_layout.xml | 34 +++++++++++++-------- 10 files changed, 34 insertions(+), 13 deletions(-) create mode 100644 app/src/main/res/drawable-hdpi/ic_action_secure.png create mode 100644 app/src/main/res/drawable-hdpi/ic_folder_grey600_24dp.png create mode 100644 app/src/main/res/drawable-mdpi/ic_action_secure.png create mode 100644 app/src/main/res/drawable-mdpi/ic_folder_grey600_24dp.png create mode 100644 app/src/main/res/drawable-xhdpi/ic_action_secure.png create mode 100644 app/src/main/res/drawable-xhdpi/ic_folder_grey600_24dp.png create mode 100644 app/src/main/res/drawable-xxhdpi/ic_action_secure.png create mode 100644 app/src/main/res/drawable-xxhdpi/ic_folder_grey600_24dp.png diff --git a/app/src/main/java/com/zeapo/pwdstore/utils/PasswordRecyclerAdapter.java b/app/src/main/java/com/zeapo/pwdstore/utils/PasswordRecyclerAdapter.java index af9a6776..e1b33e2a 100644 --- a/app/src/main/java/com/zeapo/pwdstore/utils/PasswordRecyclerAdapter.java +++ b/app/src/main/java/com/zeapo/pwdstore/utils/PasswordRecyclerAdapter.java @@ -1,5 +1,6 @@ package com.zeapo.pwdstore.utils; +import android.os.Build; import android.support.v7.view.ActionMode; import android.support.v7.widget.CardView; import android.support.v7.widget.RecyclerView; @@ -8,6 +9,7 @@ import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.view.ViewGroup; +import android.widget.ImageView; import android.widget.TextView; import com.zeapo.pwdstore.PasswordFragment; @@ -35,12 +37,14 @@ public class PasswordRecyclerAdapter extends RecyclerView.Adapter + android:layout_height="wrap_content"> + + + android:textColor="@color/grey_500" + android:layout_alignTop="@+id/type_image" + android:layout_toRightOf="@+id/type_image" + android:layout_toEndOf="@+id/type_image" /> + android:layout_alignLeft="@+id/type" + android:layout_alignStart="@+id/type" /> \ No newline at end of file -- cgit v1.2.3