Search in sources :

Example 6 with SimpleDividerItemDecoration

use of com.example.c4q.capstone.utils.SimpleDividerItemDecoration in project Grupp by tmoronta1208.

the class EventInviteActivity method onCreate.

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_event_invite);
    rootRef = FirebaseDatabase.getInstance().getReference();
    invites = rootRef.child(EVENT_INVITATIONS).child(currentUserID);
    eventInviteRecyclerView = findViewById(R.id.rec_view);
    eventInviteRecyclerView.setHasFixedSize(true);
    linearLayout = new LinearLayoutManager(getApplicationContext());
    eventInviteRecyclerView.setLayoutManager(linearLayout);
    eventInviteRecyclerView.addItemDecoration(new SimpleDividerItemDecoration(getApplicationContext()));
    callFireBaseAdapter();
}
Also used : SimpleDividerItemDecoration(com.example.c4q.capstone.utils.SimpleDividerItemDecoration) LinearLayoutManager(android.support.v7.widget.LinearLayoutManager)

Aggregations

LinearLayoutManager (android.support.v7.widget.LinearLayoutManager)6 SimpleDividerItemDecoration (com.example.c4q.capstone.utils.SimpleDividerItemDecoration)6 PublicUserDetails (com.example.c4q.capstone.database.publicuserdata.PublicUserDetails)2 ContactListAdapter (com.example.c4q.capstone.userinterface.user.userprofilefragments.userprofilecontroller.ContactListAdapter)2 ContactListViewHolder (com.example.c4q.capstone.userinterface.user.userprofilefragments.userprofileviews.ContactListViewHolder)2 Events (com.example.c4q.capstone.database.events.Events)1 PublicUser (com.example.c4q.capstone.database.publicuserdata.PublicUser)1 EventsAdapter (com.example.c4q.capstone.userinterface.user.userprofilefragments.userprofilecontroller.EventsAdapter)1 EventsViewHolder (com.example.c4q.capstone.userinterface.user.userprofilefragments.userprofileviews.EventsViewHolder)1 FBUserDataListener (com.example.c4q.capstone.utils.FBUserDataListener)1 DatabaseReference (com.google.firebase.database.DatabaseReference)1