Skip to content

Instantly share code, notes, and snippets.

View itxaliraza's full-sized avatar
🎯
Focusing

Ali Raza itxaliraza

🎯
Focusing
View GitHub Profile
@Dev-Husnain
Dev-Husnain / CustomView.kt
Last active April 17, 2025 19:33
CustomView ( The View of different corner radius, backgrounds, rippleColor, shadowColor etc)
class CustomView @JvmOverloads constructor(
context: Context,
attrs: AttributeSet? = null,
defStyleAttr: Int = 0
) : ConstraintLayout(context, attrs, defStyleAttr) {
private var cornerRadiusTopLeft = 0f
private var cornerRadiusTopRight = 0f
private var cornerRadiusBottomLeft = 0f
private var cornerRadiusBottomRight = 0f
private var strokeWidth = 0
@fiftyonemoon
fiftyonemoon / AndroidXI
Created July 12, 2021 14:57
File create, rename, duplicate and delete in Android11.
import android.app.PendingIntent;
import android.app.RecoverableSecurityException;
import android.content.ContentResolver;
import android.content.ContentValues;
import android.content.Context;
import android.content.IntentSender;
import android.database.Cursor;
import android.net.Uri;
import android.os.Build;
import android.provider.MediaStore;