This gist will host some nice extensions for anything Kotlin.
/**
* Rounds a [Double] to [numberOfPlaces].
*/
fun Double.roundTo(numberOfPlaces: Int): Double {
return round(this*10.0.pow(numberOfPlaces))/10.0.pow(numberOfPlaces)| <animated-vector | |
| xmlns:android="http://schemas.android.com/apk/res/android" | |
| xmlns:aapt="http://schemas.android.com/aapt"> | |
| <aapt:attr name="android:drawable"> | |
| <vector | |
| android:name="vector" | |
| android:width="960dp" | |
| android:height="960dp" | |
| android:viewportWidth="960" | |
| android:viewportHeight="960"> |
| package com.example.titl.appbar | |
| import androidx.compose.animation.core.animateDpAsState | |
| import androidx.compose.foundation.ScrollState | |
| import androidx.compose.foundation.layout.fillMaxWidth | |
| import androidx.compose.foundation.layout.height | |
| import androidx.compose.foundation.layout.padding | |
| import androidx.compose.material3.MaterialTheme.colorScheme | |
| import androidx.compose.material3.Surface | |
| import androidx.compose.material3.Text |
Since we don't have a dedicated channel (such as #quotes), I created this gist to keep track of conversations that work as references.
Android specific discussions.
The longest list yet:
| plugins { | |
| // ... | |
| // Put `kapt` below the plugin. | |
| id("com.google.dagger.hilt.android") | |
| kotlin("kapt") | |
| } | |
| android { | |
| // ... | |
| } |