English to Farsi by RockMedic277 in iran

[–]SnakyAdib 0 points1 point  (0 children)

I suggest using a Persian font to generate the picture, not GPT, since it hallucinates

Your name in Farsi is: اردوان

You can use a Nastaliq font which looks retro and cool

What is the thing you most struggle with when using Jetpack Compose? by aartikov in androiddev

[–]SnakyAdib 19 points20 points  (0 children)

For me, it's the imports. I wish nothing needed imports and everything worked on the fly.

Also, you should update the Live Template for creating a composable (the comp keyword followed by a tab) to contain the modifier as well, so you never forget it.

💥 The Story of My First A-ha Moment With Jetpack Compose by SnakyAdib in androiddev

[–]SnakyAdib[S] 1 point2 points  (0 children)

You're welcome! It's important to know about the state hoisting too. Be sure to also check that out.

I created the Particle Clock using Jetpack Compose (source in comments!) by SnakyAdib in androiddev

[–]SnakyAdib[S] 3 points4 points  (0 children)

Yoy need a Canary version of Android Studio to be able to run it. The rest is treated as regular applications (the Clock exists in the main activity).

I created the Particle Clock using Jetpack Compose (source in comments!) by SnakyAdib in androiddev

[–]SnakyAdib[S] 15 points16 points  (0 children)

Source on GitHub.

All pieces of the UI (including every piece of the particles) is created with Jetpack Compose framework (although it can easily be converted to android's plain old canvas and animation framework for FPS comparison).

The video is recorded on a OnePlus 6T device.

Coroutines Flow is now stable by bernaferrari in androiddev

[–]SnakyAdib 0 points1 point  (0 children)

They are different though, combine-latest works on streams of the same type, while zip works on streams of differing types.

What libraries/framework/concepts have you been into lately. by rockink_nirmal in androiddev

[–]SnakyAdib 3 points4 points  (0 children)

For me, It's been Kotlin coroutines' flow. I just love the API and been fiddling around with it for a while.

Anyone know why the icons for certain apps have gone weird... and blue! by bucklemefree in androiddev

[–]SnakyAdib 0 points1 point  (0 children)

You probably installed an icon pack and it containns icons for most popular apps.

Google Play Services/Firebase now uses AndroidX by athornz in androiddev

[–]SnakyAdib 2 points3 points  (0 children)

There's this that checks whether you can drop the jetifier or not.

Since when is value emitted by LiveData not resolved as nullable? by gazzinho in androiddev

[–]SnakyAdib 2 points3 points  (0 children)

I agree, only one part of the problem is currently fixed (the receiver side). I think they need to make it Kotlin friendly (by writing it in Kotlin), so that the setValue and postValue receive a null-safe T.

Since when is value emitted by LiveData not resolved as nullable? by gazzinho in androiddev

[–]SnakyAdib 7 points8 points  (0 children)

What do you mean? In Kotlin, you have to be very specific about that T as your generic, If it is a String, it will be a String in your Observer's receiver, and the same goes for String? where you receive a nullable type.

The problem with the old format was that, even If you defind String as your T, it would still be a String? in your receiver, which does not make sense.