Skip to content

Instantly share code, notes, and snippets.

@naman14
naman14 / ClickMonitoringView.kt
Created January 18, 2021 17:19
Handle possible child clicks in a parent viewgroup
package com.bharatpe.nativeloader
import android.content.Context
import android.graphics.Rect
import android.util.AttributeSet
import android.util.Log
import android.view.GestureDetector
import android.view.MotionEvent
import android.view.View
import android.view.ViewGroup
@naman14
naman14 / BPLoadingView.kt
Last active September 21, 2020 18:42
BharatPe native loading views and animation in Android and Web
package com.bharatpe.nativeloader
import android.animation.Animator
import android.animation.AnimatorListenerAdapter
import android.animation.AnimatorSet
import android.animation.ValueAnimator
import android.content.Context
import android.graphics.*
import android.util.AttributeSet
import android.view.View
@naman14
naman14 / SlidingUpPanelLayout.java
Last active May 28, 2019 21:07
AndroidSlidingUpPanel with RecyclerView. RecyclerView scrolls as long as it is scrollable and then panel starts collapsing- http://naman-dwivedi.in/slidinguppanel-recyclerview/
package com.sothree.slidinguppanel;
import android.annotation.SuppressLint;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.PixelFormat;
import android.graphics.Rect;
import android.graphics.drawable.Drawable;