mirror of
https://github.com/cmclark00/RetroMusicPlayer.git
synced 2025-05-19 16:45:20 +01:00
Combine home section in single Recycler View
This commit is contained in:
parent
9ea7735261
commit
36a58d5869
39 changed files with 686 additions and 76 deletions
|
@ -0,0 +1,44 @@
|
|||
package code.name.monkey.retromusic.model;
|
||||
|
||||
import androidx.annotation.StringRes;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
import code.name.monkey.retromusic.ui.adapter.HomeAdapter.Companion.HomeSection;
|
||||
|
||||
public class Home {
|
||||
@StringRes
|
||||
int title;
|
||||
@StringRes
|
||||
int subtitle;
|
||||
@HomeSection
|
||||
int homeSection;
|
||||
|
||||
ArrayList arrayList;
|
||||
|
||||
public Home(int title, int subtitle, ArrayList arrayList, @HomeSection int homeSection) {
|
||||
this.title = title;
|
||||
this.subtitle = subtitle;
|
||||
this.arrayList = arrayList;
|
||||
this.homeSection = homeSection;
|
||||
}
|
||||
|
||||
@HomeSection
|
||||
public int getHomeSection() {
|
||||
return homeSection;
|
||||
}
|
||||
|
||||
@StringRes
|
||||
public int getTitle() {
|
||||
return title;
|
||||
}
|
||||
|
||||
@StringRes
|
||||
public int getSubtitle() {
|
||||
return subtitle;
|
||||
}
|
||||
|
||||
public ArrayList getArrayList() {
|
||||
return arrayList;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue