Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix issue: add reminder as FAB #642

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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)
Expand Down
21 changes: 20 additions & 1 deletion omniNotes/src/main/res/layout/fragment_detail.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,13 @@
~ along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:pixlui="http://schemas.android.com/apk/com.neopixl.pixlui"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:pixlui="http://schemas.android.com/apk/com.neopixl.pixlui"
android:layout_width="match_parent"
android:layout_height="match_parent">



<LinearLayout
android:id="@+id/detail_root"
android:layout_width="match_parent"
Expand Down Expand Up @@ -156,4 +159,20 @@
android:id="@+id/snackbar_placeholder"
android:layout_alignParentBottom="true"/>

<!--New Fab Here -->
<android.support.design.widget.FloatingActionButton
android:id="@+id/floatingActionButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true"
android:clickable="true"
android:layout_marginBottom="20dp"
android:layout_marginRight="20dp"
android:src="@drawable/ic_alarm_add_black_18dp"
/>
</RelativeLayout>