From c597921b872b7dee09dc98bef2a14327bfb39d20 Mon Sep 17 00:00:00 2001 From: ahmedibrahim Date: Fri, 21 Dec 2018 18:39:36 +0200 Subject: [PATCH] fix issue: add reminder as FAB --- .../android/omninotes/DetailFragment.java | 9 ++++++-- .../src/main/res/layout/fragment_detail.xml | 21 ++++++++++++++++++- 2 files changed, 27 insertions(+), 3 deletions(-) diff --git a/omniNotes/src/main/java/it/feio/android/omninotes/DetailFragment.java b/omniNotes/src/main/java/it/feio/android/omninotes/DetailFragment.java index d448a7bc33..18b48572c3 100644 --- a/omniNotes/src/main/java/it/feio/android/omninotes/DetailFragment.java +++ b/omniNotes/src/main/java/it/feio/android/omninotes/DetailFragment.java @@ -43,6 +43,7 @@ import android.os.Handler; import android.provider.MediaStore; import android.support.annotation.Nullable; +import android.support.design.widget.FloatingActionButton; import android.support.v4.app.FragmentTransaction; import android.support.v4.content.ContextCompat; import android.support.v4.util.Pair; @@ -142,8 +143,12 @@ public class DetailFragment extends BaseFragment implements OnReminderPickedList TextView locationTextView; @BindView(R.id.detail_timestamps) View timestampsView; - @BindView(R.id.reminder_layout) - LinearLayout reminder_layout; +// @BindView(R.id.reminder_layout) +// LinearLayout reminder_layout; + + @BindView(R.id.floatingActionButton) + FloatingActionButton reminder_layout; + @BindView(R.id.reminder_icon) ImageView reminderIcon; @BindView(R.id.datetime) diff --git a/omniNotes/src/main/res/layout/fragment_detail.xml b/omniNotes/src/main/res/layout/fragment_detail.xml index 11d8a058d0..465a5a8e67 100644 --- a/omniNotes/src/main/res/layout/fragment_detail.xml +++ b/omniNotes/src/main/res/layout/fragment_detail.xml @@ -15,10 +15,13 @@ ~ along with this program. If not, see . --> + + + + + + + +