Skip to content

Instantly share code, notes, and snippets.

View shawnlinboy's full-sized avatar

Shen Lin shawnlinboy

View GitHub Profile
@shawnlinboy
shawnlinboy / BlankItemDecoration.kt
Last active December 23, 2023 03:13
An ItemDecoration implementation which provides functionality that add extra blank space between list items.
/*
* Copyright (C) 2019 Shen Lin
*
* 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
*
* Unless required by applicable law or agreed to in writing, software
@shawnlinboy
shawnlinboy / DialogFragmentExt.java
Created August 13, 2016 09:01
try make a hidden method in DialogFragment's source become public accessable
package com.meizu.flyme.wallet.widget;
import android.support.v4.app.DialogFragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;
import java.lang.reflect.Field;
/**
* Created by linshen on 16-8-13.
@shawnlinboy
shawnlinboy / SmartBarUtils.java
Last active November 3, 2016 03:37
一个扩展后的魅族SmartBar工具类,增加三种隐藏SmartBar的方法,过期一种方法。
package in.mobilelin.smartbar;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import android.app.ActionBar;
import android.content.Context;
import android.content.res.Configuration;
import android.os.Build;