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
TypedArray array = context.getTheme().obtainStyledAttributes(attrs, | |
R.styleable.PieChart,0,0); | |
try { | |
mShowText = array.getBoolean(R.styleable.PieChart_showText,false); | |
mTextPos = array.getInteger(R.styleable.PieChart_labelPosition,0); | |
}finally { | |
array.recycle(); | |
} |
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 boolean isOnline() { | |
ConnectivityManager connMgr = (ConnectivityManager) | |
getSystemService(Context.CONNECTIVITY_SERVICE); | |
NetworkInfo networkInfo = connMgr.getActiveNetworkInfo(); | |
return (networkInfo != null && networkInfo.isConnected()); | |
} |
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
/** | |
* Created by searover on 3/29/15. | |
*/ | |
public class CustomTitleView extends View { | |
/** | |
* 文本 | |
*/ | |
private String mTitleText; |
NewerOlder