Skip to content

Instantly share code, notes, and snippets.

View tomriddle25's full-sized avatar

Faisal tomriddle25

View GitHub Profile
@tomriddle25
tomriddle25 / StretchTabComponent.kt
Created July 19, 2025 18:59 — forked from ardakazanci/StretchTabComponent.kt
Stretch Tab Jetpack Compose
data class TabPosition(val left: Float, val right: Float)
@Composable
fun StretchTabComponent() {
val tabs = listOf("SALE", "RENT")
var selectedIndex by remember { mutableIntStateOf(0) }
val tabPositions = remember { mutableStateListOf<TabPosition>() }
val startX = remember { Animatable(0f) }
val endX = remember { Animatable(0f) }
val scope = rememberCoroutineScope()
@tomriddle25
tomriddle25 / converter.sh
Created February 20, 2020 07:22 — forked from Kishanjvaghela/converter.sh
Create Image drawable for all resolutions
if [ $# -eq 0 ]; then
echo "No arguments supplied"
else if [ -f "$1" ]; then
echo " Creating different dimensions (dips) of "$1" ..."
mkdir -p drawable-xxhdpi
mkdir -p drawable-xhdpi
mkdir -p drawable-hdpi
mkdir -p drawable-mdpi
if [ $1 = "ic_launcher.png" ]; then