Skip to content

Instantly share code, notes, and snippets.

View devenvoy's full-sized avatar
♾️
Focusing

Arc Envoy devenvoy

♾️
Focusing
View GitHub Profile
@ardakazanci
ardakazanci / AnimatedTextSwitcher.kt
Created June 11, 2024 17:02
Animated Text in Jetpack Compose
@Composable
fun AnimatedTextSwitcher() {
var isYellowBoxVisibility by remember { mutableStateOf(true) }
LaunchedEffect(Unit) {
while (true) {
delay(3000)
isYellowBoxVisibility = !isYellowBoxVisibility
}
}
@free2bcreative
free2bcreative / RightModalDrawer.kt
Created January 11, 2023 17:59
Jetpack Compose RightModalDrawer (right-to-left)
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.ColumnScope
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.material.Button
import androidx.compose.material.DrawerDefaults
import androidx.compose.material.DrawerState
import androidx.compose.material.DrawerValue
import androidx.compose.material.MaterialTheme
import androidx.compose.material.ModalDrawer
@hardiksachan
hardiksachan / README.md
Last active February 10, 2025 18:38
Jetpack Compose Expandable Search Bar (Top Bar)

Sample

@vxhviet
vxhviet / saveToExternalStorage.md
Last active March 3, 2024 20:19
Android saving Bitmap to external storage.

Source: StackOverflow

Question: How do I save Bitmap to extrenal storage in Android?

Answer:

Use this function to save your bitmap in SD card:

public void saveTempBitmap(Bitmap bitmap) {
        if (isExternalStorageWritable()) {
@daniellevass
daniellevass / android_material_design_colours.xml
Last active November 30, 2024 02:06
Android Material Design Colours
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- google's material design colours from
http://www.google.com/design/spec/style/color.html#color-ui-color-palette -->
<!--reds-->
<color name="md_red_50">#FFEBEE</color>
<color name="md_red_100">#FFCDD2</color>
<color name="md_red_200">#EF9A9A</color>