From 1f146da020fc282a2b27ea2c66ac658bc9bf74b6 Mon Sep 17 00:00:00 2001 From: Kala30 Date: Mon, 16 Jul 2018 18:41:19 -0700 Subject: [PATCH] Added swipe to delete icon --- .idea/assetWizardSettings.xml | 4 ++-- .../com/cogentworks/overwidget/CreateWidget.java | 2 +- app/src/main/res/drawable/ic_delete.xml | 5 +++++ app/src/main/res/layout/list_item.xml | 16 ++++++---------- 4 files changed, 14 insertions(+), 13 deletions(-) create mode 100644 app/src/main/res/drawable/ic_delete.xml diff --git a/.idea/assetWizardSettings.xml b/.idea/assetWizardSettings.xml index 72b2532..fc3f0c6 100644 --- a/.idea/assetWizardSettings.xml +++ b/.idea/assetWizardSettings.xml @@ -67,7 +67,7 @@ @@ -78,7 +78,7 @@ diff --git a/app/src/main/java/com/cogentworks/overwidget/CreateWidget.java b/app/src/main/java/com/cogentworks/overwidget/CreateWidget.java index 9522457..c7a73b1 100644 --- a/app/src/main/java/com/cogentworks/overwidget/CreateWidget.java +++ b/app/src/main/java/com/cogentworks/overwidget/CreateWidget.java @@ -211,7 +211,7 @@ protected void onPostExecute(Profile result) { final LinearLayout fContent = content; final ProgressBar fProgressBar = progressBar; - + // Make sure animation is finished final Handler handler = new Handler(); handler.postDelayed(new Runnable() { diff --git a/app/src/main/res/drawable/ic_delete.xml b/app/src/main/res/drawable/ic_delete.xml new file mode 100644 index 0000000..8bed121 --- /dev/null +++ b/app/src/main/res/drawable/ic_delete.xml @@ -0,0 +1,5 @@ + + + diff --git a/app/src/main/res/layout/list_item.xml b/app/src/main/res/layout/list_item.xml index 3f8caa8..eb0fcfe 100644 --- a/app/src/main/res/layout/list_item.xml +++ b/app/src/main/res/layout/list_item.xml @@ -8,31 +8,27 @@ app:rightViewId="@+id/item_right" app:swipeViewId="@+id/item_layout"> - + android:src="@drawable/ic_delete"/> - + android:src="@drawable/ic_delete" />