This file contains 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
var13 = var0.getPackageManager().getLaunchIntentForPackage(var0.getPackageName()); | |
var14 = new Intent("android.intent.action.MAIN"); | |
var14.addFlags(Intent.FLAG_NEW_TASK); | |
var14.addCategory("android.intent.category.LAUNCHER"); | |
var14.putExtra("title", var7); | |
var14.putExtra("content", var8); | |
var14.putExtra("ex", var26); | |
var14.setComponent(var13.getComponent()); | |
var0.startActivity(var14); |
This file contains 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 cn.itguy.widget; | |
import android.graphics.Rect; | |
import android.support.v7.widget.RecyclerView; | |
import android.view.View; | |
/** | |
* 设置RecyclerView GridLayoutManager or StaggeredGridLayoutManager spacing from http://blog.csdn.net/johnwcheung/article/details/54953568 | |
* Created by john on 17-1-5. | |
*/ |
This file contains 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
private int mState = ViewPager.SCROLL_STATE_IDLE; | |
private int mPosition; | |
@Override | |
public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) { | |
// Logger.w("int position = " + position + ", float positionOffset = " + positionOffset + ", int positionOffsetPixels = " + positionOffsetPixels); | |
mPosition = position; | |
} | |
@Override |
This file contains 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
Git常用命令 | |
查看、添加、提交、删除、找回,重置修改文件 | |
git help # 显示command的help | |
git show # 显示某次提交的内容 git show $id | |
git co -- # 抛弃工作区修改 | |
git co . # 抛弃工作区修改 |
This file contains 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 cn.itguy.fingerprint.util; | |
import android.content.Context; | |
import android.net.ConnectivityManager; | |
import android.net.NetworkInfo; | |
import android.telephony.TelephonyManager; | |
/** | |
* Check device's network connectivity and speed | |
* @author emil http://stackoverflow.com/users/220710/emil |
This file contains 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.mosheng.common.view; | |
import android.content.Context; | |
import android.text.Html; | |
import android.text.Spannable; | |
import android.text.TextUtils; | |
import android.view.LayoutInflater; | |
import android.view.View; | |
import android.view.ViewGroup; | |
import android.widget.BaseAdapter; |
This file contains 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.mosheng.common.util; | |
import android.content.Context; | |
import android.view.View; | |
import android.view.inputmethod.InputMethodManager; | |
/** | |
* 输入法相关工具类 | |
* | |
* @author Martin |
This file contains 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
WifiManager manager = (WifiManager) getSystemService(Context.WIFI_SERVICE); | |
WifiInfo info = manager.getConnectionInfo(); | |
String address = info.getMacAddress()); |
This file contains 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
// 获取屏幕高 | |
Point point = new Point(); | |
getWindowManager().getDefaultDisplay().getSize(point); | |
int screenHeight = point.y + CommonUtils.getNavigationBarHeight(context); | |
/** | |
* 获取虚拟按键栏高度 | |
* @param context | |
* @return | |
*/ |
This file contains 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 int getDisplayScreenHeight() | |
{ | |
int screenHeight = 0; | |
DisplayMetrics metrics = new DisplayMetrics(); | |
Display display = getWindowManager().getDefaultDisplay(); | |
display.getMetrics(metrics); | |
int ver = Build.VERSION.SDK_INT; | |
if (ver < 13) |