Skip to content

Commit

Permalink
Approve Activity
Browse files Browse the repository at this point in the history
#12
- change background color by short and long click item
  • Loading branch information
eurosecom committed Apr 4, 2017
1 parent f4822bf commit 8c7092e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ public void onCancelled(DatabaseError firebaseError) {



mAdapter = new FirebaseRecyclerAdapter<Attendance, ApproveViewHolder>(Attendance.class, R.layout.item_absence,
mAdapter = new FirebaseRecyclerAdapter<Attendance, ApproveViewHolder>(Attendance.class, R.layout.item_approve,
ApproveViewHolder.class, absencesQuery) {

@Override
Expand Down Expand Up @@ -317,6 +317,7 @@ private void approvePost(String postkey, int anodaj) {
@Override
public void onComplete() {
Log.d(TAG, "Retrofit call 2 completed ");
Toast.makeText(getActivity(), "Retrofit call 2 completed ", Toast.LENGTH_SHORT).show();

}

Expand All @@ -336,6 +337,7 @@ public void onNext(Pair pair) {
+ contributor.contributions;

Log.d(TAG, "onnext " + snext);
Toast.makeText(getActivity(), user.email, Toast.LENGTH_LONG).show();
}
}));

Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/layout/item_absence.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
android:layout_margin="5dp">

<RelativeLayout
android:background="@drawable/selector_medium_high"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="10dp">
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/res/layout/item_approve.xml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Layout for one item of absence at RcViewer AbsenceListFragmentjava with AbsenceViewHolder.java -->
<!-- Layout for one item of approve at RcViewer ApproveListFragmentjava with ApproveViewHolder.java -->
<android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="5dp">

<RelativeLayout
android:background="@drawable/selector_medium_high"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="10dp">
Expand Down

0 comments on commit 8c7092e

Please sign in to comment.