Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Pkmmte Xeleon Pkmmte

🎯
Focusing
View GitHub Profile
View Toaster.java
import android.support.annotation.IntDef;
import android.support.annotation.StringRes;
import android.widget.Toast;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import static android.widget.Toast.LENGTH_LONG;
import static android.widget.Toast.LENGTH_SHORT;
@Pkmmte
Pkmmte / PkMovementMethod.java
Created Feb 20, 2017
LinkMovementMethod subclass that does not override ALL TextView touch events and only notifies for actual link clicks.
View PkMovementMethod.java
import android.text.Layout;
import android.text.Selection;
import android.text.Spannable;
import android.text.method.LinkMovementMethod;
import android.text.style.ClickableSpan;
import android.view.MotionEvent;
import android.widget.TextView;
/**
* Created on 2/17/2017
@Pkmmte
Pkmmte / WindowInsetsFrameLayout.java
Last active Sep 11, 2019
A FrameLayout subclass that dispatches WindowInsets to its children instead of adjusting its padding. Useful for Fragment containers.
View WindowInsetsFrameLayout.java
package com.pkmmte.widget;
import android.annotation.TargetApi;
import android.content.Context;
import android.os.Build;
import android.util.AttributeSet;
import android.view.WindowInsets;
import android.widget.FrameLayout;
/**
View SlidingUpPanelLayout.java
package co.nowl.view;
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;