Skip to content

Instantly share code, notes, and snippets.

View zenyagami's full-sized avatar

Zen Kun zenyagami

  • Berlin
View GitHub Profile
@zenyagami
zenyagami / SwipeToDeleteCompose
Created July 24, 2024 14:56
SwipeToDeleteCompose for material3
@Composable
fun <T> SwipeToDeleteContainer(
item: T,
onDelete: (T) -> Unit,
animationDuration: Int = 500,
content: @Composable (T) -> Unit,
) {
var isRemoved by remember { mutableStateOf(false) }
val state = rememberSwipeToDismissBoxState(
@zenyagami
zenyagami / gist:cdc540ecc0fffa0c7d69d4f6913d34f0
Created March 19, 2019 13:25
Term of service Internet speed master
nezdroid Terms of Service
1. Terms
By accessing our app, Internet Speed master, you are agreeing to be bound by these terms of service, all applicable laws and regulations, and agree that you are responsible for compliance with any applicable local laws. If you do not agree with any of these terms, you are prohibited from using or accessing Internet Speed master. The materials contained in Internet Speed master are protected by applicable copyright and trademark law.
2. Use License
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:background="@android:color/holo_blue_light"
android:layout_height="200dp"/>
<LinearLayout