This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.cmfs.library.util; | |
| import android.os.Handler; | |
| import android.os.HandlerThread; | |
| import android.os.Message; | |
| import android.os.Process; | |
| import java.util.concurrent.atomic.AtomicInteger; | |
| public class AsyncHandler { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.cmfs.library.util; | |
| import android.content.Context; | |
| import android.support.v7.widget.RecyclerView; | |
| import android.view.LayoutInflater; | |
| import android.view.View; | |
| import android.view.ViewGroup; | |
| import java.util.ArrayList; | |
| import java.util.List; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.cmfs.library.util; | |
| import android.content.Context; | |
| import android.view.LayoutInflater; | |
| import android.view.View; | |
| import android.view.ViewGroup; | |
| import java.util.ArrayList; | |
| import java.util.List; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.cmfs.demo.hook; | |
| import android.annotation.SuppressLint; | |
| import android.app.Instrumentation; | |
| import android.content.Context; | |
| import android.content.pm.PackageManager; | |
| import android.os.IBinder; | |
| import android.os.IInterface; | |
| import android.support.annotation.Nullable; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.cmfs.library; | |
| import android.app.Application; | |
| import android.content.res.Configuration; | |
| import android.os.Process; | |
| import android.support.v4.util.ArrayMap; | |
| import android.util.SparseArray; | |
| /** | |
| * @author cmfs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.cmfs.util; | |
| import android.util.Printer; | |
| import android.view.View; | |
| import android.view.ViewGroup; | |
| /** | |
| * @author cmfs | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.cmfs.util; | |
| import android.annotation.SuppressLint; | |
| import android.content.Context; | |
| import android.content.res.AssetFileDescriptor; | |
| import android.content.res.AssetManager; | |
| import android.content.res.XmlResourceParser; | |
| import java.io.IOException; | |
| import java.io.InputStream; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.cmfs.util; | |
| import android.support.v4.view.LayoutInflaterFactory; | |
| import android.view.LayoutInflater; | |
| import java.lang.reflect.Field; | |
| /** | |
| * @author cmfs | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.cmfs.util; | |
| /** | |
| * @author cmfs | |
| */ | |
| public class Reflects { | |
| public static <T> T loadAs(String className, Class<T> targetClass, T defValue) { | |
| T instance = null; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public abstract class SingleFragmentHelper<T extends Fragment> implements Handler.Callback { | |
| private static final String TAG = "SingleFragmentHelper"; | |
| private static final int ID_REMOVE_SUPPORT_FRAGMENT_MANAGER = 1234; | |
| private final String mTag; | |
| private Map<FragmentManager, T> fragmentMap = new HashMap<>(); | |
| private Handler mainHandler; | |
| public SingleFragmentHelper(String tag) { | |
| mTag = tag; | |
| mainHandler = new Handler(Looper.getMainLooper()); |
OlderNewer