Комментарии:
Can we do it in xml without compose and without use of any library?
ОтветитьExist an api that can make awesome texts with 2 colors etc...?
ОтветитьThe one and only a professional developer who does not wear any spec to write code!!
ОтветитьPerfect! Thanks Philipp.
ОтветитьI tried your code in my project, gradient is coming but not animating. I tried executing your code and tried replacing your code with my code , it's working there. Any idea what could be the issue?
ОтветитьThanks Philipp Lackner I just adapted it to my project and it looks like awesome 😁
ОтветитьMan, that`s wonderfull! Thank you!
ОтветитьIs it possible to detect the size of contentAfterLoading sub-conponent , iterate it and auto generate the shimmer effect box for that ?
Ответитьso complicated
I prefer doing that with a library
Can u create content that is more beginner friendly as well?
Ответитьfun Modifier.shimmerEffect(speed:Int = 1100) : Modifier = composed {
var size by remember { mutableStateOf(IntSize.Zero) }
val translation = rememberInfiniteTransition()
val startOffsetX by translation.animateFloat(
initialValue = -2 * size.width.toFloat(),
targetValue = 2 * size.width.toFloat(),
animationSpec = infiniteRepeatable(animation = tween(speed))
)
background(
brush = Brush.linearGradient(
colors = listOf(
Color(0xFFB8B5B5),
Color(0xFF8B8A8A),
Color(0xFFB8B5B5)
),
start = Offset ( x = startOffsetX , y = 0f ),
end = Offset ( x = startOffsetX + size.width.toFloat() , y = size.height.toFloat() )
)
).onGloballyPositioned {
size = it.size
}
}
Phillip you are the best!! Thank you!! It is great tutorial like all yours tutorials !!
ОтветитьVery interesting.
Just wondering if it's really performant to use the background modifier and offset.
What's about to replace with drawBehind and offset lambdas? Can it skip the measure phase?
Sorry if I'm wrong, still learning Compose (Learned a lot from you)
Anyway thank you for this tutorial, great job. Can now create custom modifiers
Great content man.
What theme are you using in AS?
This guy is amazing
ОтветитьThanks 🙏🙏🙏
ОтветитьWhen you make a video about chatGPT and its thread to android developers?
Ответитьone android tv app with exoplayer tutorial plz
ОтветитьThank you bro
ОтветитьI think, in compose we shouldn't rely on libraries. Compose let's us customize manage view easily. It is not Xml anymore
Ответитьhey Philipp thanks for great video! :) btw do you still you twitter if so drop you link pls
ОтветитьThanks a lot :-)
ОтветитьHi man , Can we get any tutorial about activity tracking ?
Ответитьdo you believe that xml is going to be deprecated in the next five years?
ОтветитьThis removes my accompanist dependency. Cheers ❤
Ответитьthanks, you're videos keep me up to date with the absolutely necessary information not like google IO which shows a lot of unnecessary information.
ОтветитьCooollll Philips, i directly to implement to my own project , thanks a lot.
ОтветитьGood stuff
ОтветитьOsm
ОтветитьCool!
ОтветитьFirst
Ответить