diff --git a/app/src/main/java/core/notevault/ui/gallery/GalleryFragment.java b/app/src/main/java/core/notevault/ui/gallery/GalleryFragment.java index 6284c33..9d814a5 100644 --- a/app/src/main/java/core/notevault/ui/gallery/GalleryFragment.java +++ b/app/src/main/java/core/notevault/ui/gallery/GalleryFragment.java @@ -10,6 +10,7 @@ import android.widget.TextView; import androidx.annotation.NonNull; import androidx.fragment.app.Fragment; import androidx.lifecycle.ViewModelProvider; +import androidx.recyclerview.widget.DividerItemDecoration; import androidx.recyclerview.widget.LinearLayoutManager; import androidx.recyclerview.widget.RecyclerView; import com.google.android.material.floatingactionbutton.FloatingActionButton; @@ -42,6 +43,9 @@ public class GalleryFragment extends Fragment { recyclerView.setAdapter(concertAdapter); recyclerView.setLayoutManager(new LinearLayoutManager(getContext())); + DividerItemDecoration dividerItemDecoration = new DividerItemDecoration(recyclerView.getContext(), LinearLayoutManager.VERTICAL); + recyclerView.addItemDecoration(dividerItemDecoration); + FloatingActionButton addConcertBtn = root.findViewById(R.id.add_concert_btn); addConcertBtn.setOnClickListener(v -> onCreateNewConcert()); diff --git a/app/src/main/res/layout/concert_item.xml b/app/src/main/res/layout/concert_item.xml index e501651..38e2ec2 100644 --- a/app/src/main/res/layout/concert_item.xml +++ b/app/src/main/res/layout/concert_item.xml @@ -1,42 +1,60 @@ - + + android:layout_weight="1" + android:orientation="vertical"> + + - + + + + + + + - diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml index f8c6127..4ee6d8f 100644 --- a/app/src/main/res/values/colors.xml +++ b/app/src/main/res/values/colors.xml @@ -7,4 +7,5 @@ #FF018786 #FF000000 #FFFFFFFF + #FF0000 \ No newline at end of file