Material 3, Card elevation: CardDefaults.cardElevation(defaultElevation = 5.dp)
@maheshj01 Жыл бұрын
Thanks I was trying to figure this out looking through the docs.
@timballew3742 Жыл бұрын
Wish I had seen this comment earlier, but eventually came up with a similar solution: elevation = CardDefaults.cardElevation(5.dp)
@minex6tt Жыл бұрын
TYY!
@JamesBond-mq7pd7 ай бұрын
thank you bro. you're life saver
@aviiraj_sharma8 күн бұрын
Thankyou Brother 🫶
@Sudhindra30003 жыл бұрын
7:45 For aligning individual items in a Box, you dont need to create another Box and align the item in that box with contentAlignment. You can use the align() Modifier and Specify the alignment So for aligning the text in this video you can do: Text( text = "Kermit the frog", modifier = Modifier .align(Alignment.BottomStart) .padding(12.dp), fontSize = 16.sp ) The same can be done to align individual Items in a Row or a Column too😃
@PhilippLackner3 жыл бұрын
Thanks, that's new to me!
@ojukwuezechukwu97123 жыл бұрын
That's true
@joshuacastro74183 жыл бұрын
Have you guys face align showing up as a reference error, without the option to import it? I tried implementing this version but can’t figure out where it’s going wrong
@kumarvelu2 жыл бұрын
@@joshuacastro7418 , that's because you are calling align outside of the BoxScope. You can align any compose elements which are within Box as a child.
@programmingThings Жыл бұрын
if someone is facing issue in elevation attribute : Card( shape = RoundedCornerShape(20.dp), elevation = CardDefaults.cardElevation( defaultElevation = 10.dp ) )
@ChristiaanHunter8 ай бұрын
thanks 😀
@MrCelestiaI3 жыл бұрын
Amazing video man. I would love to see you continue to make certain types of ui elements and build off other tutorials with compose :)
@PhilippLackner3 жыл бұрын
That's my plan! :)
@marcel52352 жыл бұрын
If someone would have struggle with Card, if you use Material3, material 3 has no Card Composable, add material standart version to graddle dependencies (this may become obsolete and in future Material3 should have new composables)
@ryhdzfghsdgshhdh4536 Жыл бұрын
Please help,, which is standart version?
@wilsonpedrotamegajunior105310 ай бұрын
Thanks a lot, it is the first time I've ever had seem a precise definition why to use sp in text!!!!
@kashifbhatti59823 жыл бұрын
Please create a video on app optimization (low memory & battery usage)
@PrathivAR-f7l3 ай бұрын
Use this to align the text at the bottom of the box instead of using nested box Text(text = "Hello world", modifier = Modifier .align(Alignment.BottomCenter) )
@tonnie70792 жыл бұрын
Nice Trick with the Brush and the Gradient, I am really amazed by the way I always find and learn something new from your videos regardless of the level being a beginner's level. I wish I was listening to you by April 9th, 2021.
@azamovdev Жыл бұрын
nice bro I'm learning android now, I'm taking a course called Gita, and in this course we came to jetpack, with your guide, I got very good results, I really liked it, good luck with your work. I'm not good at English so these words may be wrong, I translated these words in google translate) good luck with your work
@jishnuvedhikz44042 жыл бұрын
16:08 You can also give shadow without hard coding Box( modifier = Modifier .fillMaxWidth() .height(50.dp) .background( brush = Brush.verticalGradient( listOf( Color.Transparent, Color.Black ), ), ).align(Alignment.BottomCenter) ){} Notify me, if I am wrong. I am a starter :) Just Experimenting
@daniboy9432 жыл бұрын
Still, you are hard coding the height. You could use fillMaxHeight(0.5f) for example, so the box will always fill half of the height of its parent.
@begalisydykov64042 жыл бұрын
Easier to apply background for text using modifier = Modifier .align(Alignment.BottomStart) .background( Color.Black.copy(alpha = 0.4f) )
@swaminathbera64073 жыл бұрын
Love your Android Tutorials, makes complex things simple to understand everytime!!😊
@Aswin-vd1pm4 ай бұрын
What are doing?
@SumedhSen974 ай бұрын
For the gradient, we could also start from the bottom and come to the top. Here's how I did ``` brush = Brush.verticalGradient( colors = listOf(Color.Black, Color.Transparent), startY = Float.POSITIVE_INFINITY, endY = 0.0f ) ``` Notice that, the colors are now opposite to what the video had, since we are going from Black at Infinity to Transparent at 0
@brigadir5830 Жыл бұрын
Спасибо за ваш труд очень хорошие уроки всего вам хорошего👍👍👍
@_angel_mohammadi3952 Жыл бұрын
It's fun, exciting and effective! Keep going!
@pooyalaryan44552 жыл бұрын
hello philipp. can you explain that how can show image from URL in JetPack image like picasso or glide . tanks for all your videos. you are the best
@siggilotz83443 жыл бұрын
Great video, thank you from Duisburg/Germany
@erice.1636 Жыл бұрын
1:56 UpperCamelCase vs lowerCamelCase. I knew about camelCase before, but while studying Drupal this weekend I think I heard the difference for the first time.
@audreyjensen66611 ай бұрын
I think PascalCase is a popular term for it.
@sarahmohamed2973 Жыл бұрын
very nice video with simple explanation🙂
@bgpratheep Жыл бұрын
It would be great If someone could point towards some references to find the parent height within the Child composable. It can be helpful to make the Gradient responsive.
@sooshil3 жыл бұрын
Brother Hats off to your dedication, quality content, explanation style and everything. It's not been a long I started watching your videos but even in this short time, I am so much impressed by your effort of producing quality content. For now, I only have one suggestion: For our own coding we are free to use any theme... but could you please use light theme in android studio for tutorials videos?
@PhilippLackner3 жыл бұрын
Thank you! I once made a survey on IG about the theme I should use and about 75% wanted me to use dark theme sorry
@sooshil3 жыл бұрын
@@PhilippLackner Hey... no need to be sorry. That just was my opinion. Great work again. 😍
@carlosgalves70283 жыл бұрын
Amazing trick at the end of the video, nice content, congrats, give it a like in all videos I saw at the moment.
@daniboy9432 жыл бұрын
Amazing tutorial, thanks! But isn't xml just way faster to implement?
@mohammad-hossein-farzanegan10 ай бұрын
Hey Philipp. At 13:37, why did you define the "Box" there to specify that the card takes up half the width? Couldn't you define a modifier in the input of the ImageCard and pass this width of the card to the modifier in the input of this function?
@FemiOkedey2 жыл бұрын
If you can't see the Card component, just upgrade the dependencies and compose version in the Gradle files
@prasannakumaranisetti2350 Жыл бұрын
this has helped me. thank you.
@incchi6194 Жыл бұрын
@@prasannakumaranisetti2350 how you did that i'm having trouble to do so
@ryhdzfghsdgshhdh4536 Жыл бұрын
Please help, i don`t understand how to do it
@tsaykostya7 ай бұрын
More of compose bro, or recommend any books for educational purpose❤
@saurabhsharma-om1rc2 жыл бұрын
Awesome tutorial
@Kunal-jp8tn3 жыл бұрын
Thank you so much for this amazing video.
@Aswin-vd1pm4 ай бұрын
If i run on an physical device the image is not showing.
@bestoftheinternet3421 Жыл бұрын
Very similar to flutter actually
@adrian2qi7336 ай бұрын
muito bom seu conteudo, ta me ajudando bastante.
@millenniumchowdhury63953 жыл бұрын
How to use glide to load image in jetpack compose...plz guide us
@kandie57708 ай бұрын
Could the gradient be not added to a separate box but added to the Box with the Text itself?
@yunusemrearslan36963 жыл бұрын
Kermit, it's been a while dude I missed you
@veygard3 жыл бұрын
Ty for doing this!
@phatho38752 жыл бұрын
Why did you wrap the ImageCard inside the Box while we can use the modifier defined in the ImageCard?
@alirezafaraji3 жыл бұрын
Awesome, man.
@ChrisAthanas3 жыл бұрын
Can you use that plug in that shows what command key sequence you are using? Also when you show the emulator, can you also be sure to show the code? There is lots of space on the right side of the screen to show the emulator above your head Otherwise top notch work
@ChrisAthanas3 жыл бұрын
Specifically at 12:25, to expand out the function with all labels exposed?
@NiteshSingh-bv9lu3 жыл бұрын
if i have use compose component . then not requirement data binding component ?
@bharathkalyans3 жыл бұрын
You haven't passed the modifier as functions will it take parents modifier as it's argument??
@yutaitadori73183 жыл бұрын
Will XML be no longer in use now?
@lord2959 Жыл бұрын
why u don't use sdp instead of dp and sp?
@rezak90413 жыл бұрын
Nice video. How can we constraint top of gradient box to top of title?
@bjugdbjk3 жыл бұрын
Little confusing, So for text and gradient or for any other property, the first thing we have to use Box as a container? could you pls clarify?
@PhilippLackner3 жыл бұрын
you can apply a gradient to any composable. But of course you need a composable that has bounds to be able to draw a gradient
@ChristiaanHunter8 ай бұрын
thanks
@hdm_vision Жыл бұрын
my check point 13:45
@bobandrews6053 жыл бұрын
nice tutorial, but my picture does not adapt to the entire width of the card and leaves a small margin on the right side, don't know why, any idea?
@halahmilksheikh3 жыл бұрын
Your picture is too small isn't scaling up and you need a modifier = Modifier.fillMaxSize(), in addition to the contentScale.
@leunamvon25652 жыл бұрын
hmmm just a question, wouldn't be better to put the card inside a box inside the ImageCard function? so we don't mess the setContent? just saying
@brahmadathv35932 жыл бұрын
nice one bro
@PhilippLackner2 жыл бұрын
Thanks 🔥
@atulkumarrathor3592 Жыл бұрын
Hi You haven't passed the modifier as functions will it take parents modifier as it's argument?? please add it and also my text is showing on top
@emmanuelbamidele50642 жыл бұрын
If I am consuming an api to render the image would it be OK to use just the url in the painter
@tommy9x3 жыл бұрын
Please present on video or talk each time you use short cut keyboard
@mehulbisht97083 жыл бұрын
for the upcoming pokedex app, do you plan to use some API or just parsing JSON from local directory? And it will be based off MVVM too?
@PhilippLackner3 жыл бұрын
Yes it gets the data from an api and will use mvvm
@truepicksyt33233 жыл бұрын
@@PhilippLackner Is that course free or Paid?
@PhilippLackner3 жыл бұрын
@@truepicksyt3323 free
@kishorramani0073 жыл бұрын
How to scratch image to box's hight and width? Some images (small size images) are not set like fitxy in Android
@IvanVasheka3 жыл бұрын
Yeah, except that most likely you won't have this image already in your drawables... ah.. tutorials... but anyway, thanks man! Nice vide!
@gunner82265 ай бұрын
What is the Text import @ 9:45? Im stuck on that following along and theres no import option what am i doing wrong?
@charleslyell37483 ай бұрын
you have to import this: "import androidx.compose.material3.Text"
@user-bi9rp2nt1r2 жыл бұрын
Kermit!! Yes! :D
@alfian35703 жыл бұрын
cool
@alicantipi42353 жыл бұрын
Why are we passing the modifier to composable, can we not declare a new one?
@PhilippLackner3 жыл бұрын
gives you more flexibility. Maybe you want the same card to look a little bit differently on two different places. Passing a modifier allows you to do that
@bismeetsingh3523 жыл бұрын
Can anyone explain all those scopes in curly braces. I am familiar with also, ,apply,let stuff but this stuff seems weird to me.
@halahmilksheikh3 жыл бұрын
It's syntactic sugar. It's called a trailing lambda syntax in Jetpack Compose and a similar thing exists for SwiftUI (trailing closure syntax). Basically it's actually part of the parameters but to make it look neater, they have it this way. It makes it look very confusing if you aren't familiar with the idea.
@emmanuelbamidele50642 жыл бұрын
In my opinion syntactic sugars make code learning difficult for beginners....though people claim it makes code neater but I dnt think it is needed
@arielllanita71743 жыл бұрын
🔥🔥🔥🔥🔥
@Macias0963 жыл бұрын
how to make two images next to each other?
@avneeshkumar34708 ай бұрын
Hey, I am getting a lot of unknown errors in this image composable code and I am not able to solve them on my own. Can anyone help me with this?? If yes, then please tell me how should i connect with you??
@ionlytakeaction37733 жыл бұрын
is it OK to start making commercial ready apps in compose or should i wait for an official stable release?
@ojukwuezechukwu97123 жыл бұрын
Wait for a stable release
@ChrisAthanas3 жыл бұрын
API is now stable, code will not break We are preparing to use in production for our app by the end of the year
@joereeve25693 жыл бұрын
11:14 - How come the text doesn't let you align it? It seems like extra work to have to surround it with a box
@x0z59 Жыл бұрын
Please mind to enlarge your screen next time buddy.
@Luffy_2804 Жыл бұрын
it's old tut you dummy , before commenting these type of shits please check when it was uploaded
@danilkleshchin68763 жыл бұрын
Thank you for the video. Are you going to make videos about Flutter development? This is becoming more and more popular. IMO cross-platform development will almost completely replace native.
@PhilippLackner3 жыл бұрын
No, I won't do flutter
@abdremo3 жыл бұрын
@@PhilippLackner hahahaha
@dmytromarchuk30233 жыл бұрын
quite easy one, I expected to see the way of loading image from the api
@anmolchopra6282 Жыл бұрын
getting error on line 26, val painter = painterResource(id = R.drawable.kermit) on .kermit
@bidbid5413 Жыл бұрын
Do you have a picture named kermit in your drawable folder?