Open in app

Sign In

Write

Sign In

Raghunandan Kavi
Raghunandan Kavi

49 Followers

Home

Lists

About

Dec 1, 2022

Understanding ViewModel during configuration change and how its differnt from creating multiple instance of same activity again.

I was recently curious in understanding how viewmodel is retained during configuration change. There is a viewmodel store owner and it has a hashmap that takes a cannonical name of the activity and the value as viewmodel itself. …

Android

2 min read

Android

2 min read


Jul 30, 2022

Creating instagram like carousel in Compose

I was interested in creating something similar to https://docs.flutter.dev/cookbook/effects/photo-filter-carousel especially the bottom carousel part. I initially thought of using a Horizontal ViewPager. Using view pager was ok. In case some one is interested in horizontal pager. @OptIn(ExperimentalPagerApi::class) @Composable fun PagerDemo(modifier: Modifier = Modifier) { BoxWithConstraints(modifier = Modifier.fillMaxWidth()) {…

Compose

6 min read

Creating instagram like carousel in Compose
Creating instagram like carousel in Compose
Compose

6 min read


Jul 12, 2022

Easing Functions in animations — The geometry/maths behind it.

What are easing functions? Easing functions specify the rate of change of a parameter over time. The parameters are x and y in graph x going from 0 to 1 (0% to 100%) and similarly y. x denotes the time and y denotes the progress. Now in compose there is…

Easing

5 min read

Easing Functions in animations — The geometry/maths behind it.
Easing Functions in animations — The geometry/maths behind it.
Easing

5 min read


Jun 30, 2022

Custom Rounded Slider with thumb in Compose

If you have worked with material design and you wanted to change the thumb for some reason it was hard to do it. We mostly used third party libs which would help us customize the slider. https://github.com/material-components/material-components-android/issues/935 So in compose its easier to change the underlying code by coping the…

Android Jetpack Compose

2 min read

Android Jetpack Compose

2 min read


Jun 27, 2022

Multi Color Progress Bar Part2 — Animating the Progess

Cotinuing from part-1 https://raghunandan2005.medium.com/writing-custom-components-in-compose-part1-multi-color-progress-bar-2a7343960e16 Now i need to animate the progress colors. First i need to animate the green color progress and then yellow and so on. That means i need to run the animation sequentially. val greenAnimate = remember { Animatable(0f) } The above remembers the state intially to…

Android

1 min read

Multi Color Progress Bar Part2 — Animating the Progess
Multi Color Progress Bar Part2 — Animating the Progess
Android

1 min read


Jun 27, 2022

Writing custom components in Compose — Part1 → Multi Color Progress Bar

Customizing ui to please ui designers is always hard. Today i am gonna show you how to write a custom progress bar with multi color. Lets Start with creating a compose function I have added the height as 16.dp ( This was our designer’s idea). Now lets calculate the…

Android

2 min read

Android

2 min read


Feb 12, 2021

Mistake made using livedata with fragment and ViewModel

Livedata is a observable data holder. ViewModel survices configuration change. Sometimes you wonder why you are fetching data from network twice and your livedata observer is triggered again. Read further. Suppose you use navigation architecture component and move from Fragment A to Fragment B. In Fragment A you are observing…

Android

2 min read

Android

2 min read


Apr 26, 2018

Porting Retrofit2 sample to kotlin coroutines sample

I recently started to learn koltin coroutines. I followed this excellent blog post on koltin coroutines by Dmytro Danlyk https://proandroiddev.com/android-coroutine-recipes-33467a4302e9 while starting with kotlin coroutines. The official wiki page is available on github https://github.com/Kotlin/kotlinx.coroutines/blob/master/coroutines-guide.md I had a sample where i used RxJava instead of kotlin cotoutines and i recently came…

Android

2 min read

Android

2 min read


Jan 21, 2018

Reviewing Code for a chat application for Android

I recently had a job to review a chat application. We agreed upon some time and the amount for the job. We signed an NDA ( Non Disclosure Agreement) and then i started with my review. The chat application was developed with smack. They had also used Realm. I had…

Android

7 min read

Reviewing Code for a chat application for Android
Reviewing Code for a chat application for Android
Android

7 min read


Nov 17, 2017

Koltin in Production apps on android- The basics.

I started learning kotlin recently. Read many blog posts and saw videos but the best way to learn is try it yourself. Koltin is inter-operable with java so its great. My first step was to convert the sample codes i had to Kotlin using the converter tool on Android Studio…

Kotlin

4 min read

Koltin in Production apps on android- The basics.
Koltin in Production apps on android- The basics.
Kotlin

4 min read

Raghunandan Kavi

Raghunandan Kavi

49 Followers

Android developer at Mesh

Following
  • Radhika S

    Radhika S

  • Caner Kaşeler

    Caner Kaşeler

  • Siva Ganesh Kantamani

    Siva Ganesh Kantamani

  • Nav Singh

    Nav Singh

  • Anmol Verma

    Anmol Verma

See all (237)

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech

Teams