How to make a Column Scrollable? - Android Jetpack compose

Ғылым және технология

In this video, I will show you How to make Columns Scrollable and how to use the state of the scrollable column to trigger a new process in Android Jetpack Compose.
If you like the content, buy me a coffee by clicking on this link. ☕☕☕
www.buymeacoffee.com/mkrdevel...
Jetpack compose tutorial:
• Jetpack Compose fundam...
Source Codes:
github.com/MohsenMashkour/Scr...
---------------------------------------------------
Join me on social media:
MkrDeveloper website:
www.mkrdeveloper.com/
MkrDeveloper Instagram page:
/ mkr.developer
MkrDeveloper Telegram Chanel:
t.me/Mkr_Developer
MkrDeveloper Discord server:
/ discord
.
.
.
.
#Android
#kotlin
#android_studio
#kotlin_course
#android_tutorial_beginners
#android_developers
#jetpack_compose
#اندروید
#برنامه_نویسی_اندروید
#کاتلین

Пікірлер: 16

  • @FaraCoder
    @FaraCoder6 ай бұрын

    Salam Alaikum Mr. Mansour Thanks for your videos I finished your Android beginner course and it was an absolutely fantastic journey...I recommended to many of my friends planning to carry an interest in the same field with such a simple explanation ...Thnks a lot ... Actually i am carrying an e-commerce project with jetpack compose.

  • @mkrdeveloper

    @mkrdeveloper

    6 ай бұрын

    Thenk you for your support. You can watch the jetpack compose playlist.

  • @emmagetsu7369

    @emmagetsu7369

    6 ай бұрын

    ​@@mkrdeveloper can you teach us how to play live channel video lists I say M3U

  • @DeutschLernen360
    @DeutschLernen3606 ай бұрын

    Thank you so much

  • @mkrdeveloper

    @mkrdeveloper

    6 ай бұрын

    Welcome

  • @MegaTobi999
    @MegaTobi9996 ай бұрын

    🎉

  • @mazaaayagamer2834
    @mazaaayagamer28346 ай бұрын

    Hello I have some confusions I started android development with compose. I completed almost 20% But now I have confusion am I going wrong or right because I am learning android with modern tech. is it ok if I skip XML ?

  • @mkrdeveloper

    @mkrdeveloper

    6 ай бұрын

    Hey. Everyone is migrating to jetpack compose. So its ok to skip XML. But consider that in the future if you are supposed to work on an old project containing XML you will need to learn it.

  • @mazaaayagamer2834

    @mazaaayagamer2834

    6 ай бұрын

    @@mkrdeveloper can you complete this playlist it will very help ful

  • @mkrdeveloper

    @mkrdeveloper

    6 ай бұрын

    Im recording the next part

  • @techkid358
    @techkid3582 ай бұрын

    Showing some kind of error Type mismatch: inferred type is ScrollState.Companion but ScrollState was expected package com.placement.scrolling import android.os.Bundle import androidx.activity.ComponentActivity import androidx.activity.compose.setContent import androidx.compose.foundation.ScrollState import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.rememberScrollState import androidx.compose.foundation.verticalScroll import androidx.compose.material3.MaterialTheme import androidx.compose.material3.Surface import androidx.compose.material3.Text import androidx.compose.runtime.Composable import androidx.compose.ui.Modifier import androidx.compose.ui.tooling.preview.Preview import com.placement.scrolling.ui.theme.ScrollingTheme class MainActivity : ComponentActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContent { ScrollingTheme { // A surface container using the 'background' color from the theme Surface( modifier = Modifier.fillMaxSize(), color = MaterialTheme.colorScheme.background ) { var scrollState = rememberScrollState() ListDemo( scrollState = ScrollState) // Type mismatch: inferred type is ScrollState.Companion but ScrollState was expected } } } } } @Composable fun ListDemo(scrollState: ScrollState) { Column(modifier = Modifier.fillMaxSize().verticalScroll(scrollState)) { for (i in 1..100){ Text(text = "Demosss $i") } } }

  • @mkrdeveloper

    @mkrdeveloper

    Ай бұрын

    if you could not solve it text me on discord ill help you.

  • @techkid358

    @techkid358

    Ай бұрын

    @@mkrdeveloper My problem is solved sir

  • @insanotu3264
    @insanotu32646 ай бұрын

    Mohsen öğretmenim,aşağıdaki hatayı nasıl düzeltebilirim?Videoyu izledim yaptım emulatorde çalışıyor ama bu son kod da hata veriyor.Neyi yanlış yapıyorum? Teacher Mohsen, how can I fix the following error? I watched the video, I did it, it works in the emulator, but this last code also gives an error. What am I doing wrong? val scrollState= rememberScrollState() val scrolled by remember{ derivedStateOf { scrollState.value !=0 } } Log.i("ScrollStateValue:","current:${scrollState.value},max:${scrollState.maxValue}") MainUi(scrollState=scrollState) Variable 'scrolled' is never used-Type 'TypeVariable(T)' has no method 'getValue(Nothing?, KProperty)' and thus it cannot serve as a delegate

  • @mkrdeveloper

    @mkrdeveloper

    6 ай бұрын

    If you dont use the val scrolled comment it and it should work

  • @insanotu3264

    @insanotu3264

    6 ай бұрын

    Teşekkür ederim. Thank you.

Келесі