Skip to content

Instantly share code, notes, and snippets.

@yunjaena
yunjaena / build.gradle.kts
Last active February 28, 2024 08:15
Gradle dependency graph generator
plugins {
// ...
alias(libs.plugins.gradle.dependency.graph.generator)
alias(libs.plugins.idea.ext)
}
moduleGraphConfig {
readmePath.set("./README.md")
heading.set("### Dependency Diagram")
showFullPath.set(false)
@yunjaena
yunjaena / TouchImageView.java
Created September 14, 2022 08:05 — forked from Antarix/TouchImageView.java
Android extended (Zoom in,Zoom out) ImageView with Double tap and pinch gesture
import android.annotation.TargetApi;
import android.content.Context;
import android.content.res.Configuration;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Matrix;
import android.graphics.PointF;
import android.graphics.RectF;
import android.graphics.drawable.Drawable;
import android.net.Uri;
@yunjaena
yunjaena / 1 ViewBindingDelegates.kt
Created May 25, 2022 01:27 — forked from gmk57/1 ViewBindingDelegates.kt
Kotlin delegates for Android View Binding with usage examples
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.appcompat.app.AppCompatActivity
import androidx.fragment.app.DialogFragment
import androidx.fragment.app.Fragment
import androidx.lifecycle.DefaultLifecycleObserver
import androidx.lifecycle.Lifecycle
import androidx.lifecycle.LifecycleOwner
import androidx.viewbinding.ViewBinding
@yunjaena
yunjaena / colors.xml
Created February 6, 2020 06:42
Material Design Color Palette Colors.xml Resource file for Android
<?xml version="1.0" encoding="utf-8"?>
<!--
Google Material Design Color Palette for Android http://www.google.com/design/spec/style/color.html#color-ui-color-palette
Spreadsheet used to create this reosurce - http://bit.ly/mdcolor_spreadsheet
Link to this colors.xml resource file - http://bit.ly/mdcolorsxml
Harshad Kale
https://github.com/kalehv
-->