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
| import android.app.Activity | |
| import android.graphics.Rect | |
| import android.view.View | |
| import android.view.ViewGroup | |
| import android.view.ViewTreeObserver | |
| import android.app.Application | |
| import android.os.Bundle | |
| object KeyboardTool { |
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
| /** | |
| * author: xujiaji | |
| * created on: 2018/5/16 15:28 | |
| * description: 动态加载Apk工具类 | |
| */ | |
| public class DynamicLoadApkUtil | |
| { | |
| public static class PluginBean | |
| { |
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 class BeanUtil | |
| { | |
| public static Object getCommand(Map<String, Object> requestMap, | |
| String commandClass) | |
| throws Exception | |
| { | |
| Class c = Class.forName(commandClass); | |
| Object o = c.newInstance(); | |
| return updateCommand(requestMap, o); |
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
| import java.io.*; | |
| public class FileSystemClassLoader extends ClassLoader { | |
| private String rootDir; | |
| public FileSystemClassLoader(String rootDir) { | |
| this.rootDir = rootDir; | |
| } |
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
| interface Combiner<T> | |
| { | |
| T combine(T x, T y); | |
| } | |
| interface UnaryFunction<R, T> | |
| { | |
| R function(T x); | |
| } |
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 interface Addable<T> { void add(T t); } |
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 class Apply | |
| { | |
| public static <T, S extends Iterable<? extends T>> | |
| void apply(S seq, Method f, Object ... args) | |
| { | |
| try | |
| { | |
| for(T t : seq) | |
| { | |
| f.invoke(t, args); |