This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LazyColumn( | |
modifier = modifier | |
.fillMaxSize() | |
.background(MaterialTheme.colors.bgHome) | |
.padding(20.dp) | |
){ | |
/** | |
* Non-Dynamic Items | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Composable | |
fun HomeScreenItems( | |
modifier: Modifier = Modifier, | |
navigator: DestinationsNavigator, | |
albums: List<Album>, | |
albumDatabaseViewModel: AlbumDatabaseViewModel = hiltViewModel(), | |
onCardClicked: (String) -> Unit, | |
onPopularAlbumClicked: () -> Unit | |
) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Composable | |
fun HomeScreenItems( | |
modifier: Modifier = Modifier, | |
navigator: DestinationsNavigator, | |
albums: List<Album>, | |
albumDatabaseViewModel: AlbumDatabaseViewModel = hiltViewModel(), | |
onCardClicked: (String) -> Unit, | |
onPopularAlbumClicked: () -> Unit | |
) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@RootNavGraph(start = true) | |
@Destination(style = StartScreenTransitionAnimation::class) | |
@Composable | |
fun StartScreen( | |
modifier: Modifier = Modifier, | |
navigator: DestinationsNavigator | |
) { | |
Box( | |
modifier = modifier |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Box( | |
modifier = modifier | |
.fillMaxSize() | |
){ | |
GlideImage( | |
imageModel = R.drawable.kanye | |
) | |
Card(modifier = modifier |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Box( | |
modifier = modifier | |
.fillMaxSize() | |
){ | |
GlideImage( | |
imageModel = R.drawable.kanye | |
) | |
Card(modifier = modifier |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Box( | |
modifier = modifier | |
.fillMaxSize() | |
){ | |
GlideImage( | |
imageModel = R.drawable.kanye | |
) | |
Box(modifier = modifier |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@RootNavGraph(start = true) | |
@Destination(style = StartScreenTransitionAnimation::class) | |
@Composable | |
fun StartScreen( | |
modifier: Modifier = Modifier, | |
navigator: DestinationsNavigator | |
) { | |
..//we'll build the layout above here |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--Parent Theme--> | |
<style name="Theme.MyMusic" parent="android:Theme.Material.Light.NoActionBar"> | |
...... | |
</style> | |
<!--Splash Screen Theme--> | |
<style name="Theme.MyMusic.SplashScreen" parent="Theme.SplashScreen"> | |
<!--splash screen background--> | |
<item name="windowSplashScreenBackground">@color/splash_screen_background_color</item> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//set up recycler view | |
binding.rcvNft.apply { | |
val gridLayoutManager = GridLayoutManager(this@MainActivity, 6) | |
gridLayoutManager.spanSizeLookup = object : SpanSizeLookup() { | |
override fun getSpanSize(position: Int): Int { | |
return when (nftAdapter.getItemViewType(position)) { | |
R.layout.rcv_lyt_title -> 6 | |
R.layout.rcv_lyt_featured -> 6 | |
R.layout.rcv_lyt_top_picks -> 3 |