Skip to content

Instantly share code, notes, and snippets.

View YohannesTz's full-sized avatar
🎯
Mostly Exploring, Cleaning up unfinished projects

Yohannes Tezera YohannesTz

🎯
Mostly Exploring, Cleaning up unfinished projects
View GitHub Profile
@brookmg
brookmg / ScannerOverlay.kt
Last active February 6, 2024 07:08
Basic QR Scanner overlay for Android. Originally made by Ravi Tamada.
package com.example.app.widget // Change this to the actual packagename
import android.content.Context
import android.graphics.*
import android.util.AttributeSet
import android.util.DisplayMetrics
import android.view.ViewGroup
import androidx.core.content.ContextCompat
// import /*Package name of the app*/.R
import kotlin.math.roundToInt
@chrisbanes
chrisbanes / moved.txt
Last active February 18, 2023 10:43
A prototype #JetpackCompose Painter which draws an Android Drawable
This is now available at https://google.github.io/accompanist/drawablepainter/
@ispite
ispite / ExampleDialog.kt
Last active May 6, 2023 15:15
Custom Dialog + Interface Tutorial on Kotlin
package ru.skillbox.custom_dialog_interface_tutorial
import android.app.Dialog
import android.content.Context
import android.os.Bundle
import android.view.View
import android.widget.EditText
import androidx.appcompat.app.AlertDialog
import androidx.appcompat.app.AppCompatDialogFragment
@Pasha831
Pasha831 / ModalBottomSheet.kt
Created January 25, 2023 13:17
ModalBottomSheetLayout for Material 3 Jetpack Compose
package com.hse.parkingapp.ui.beta.screens.components.material3
/*
* Copyright 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0