http://chabudai.sakura.ne.jp/blogparts/honehoneclock/honehone_clock_wh.swf
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 class AspectRatioImageView2 extends ImageView { | |
public AspectRatioImageView2(Context context) | |
{ | |
super(context); | |
} | |
public AspectRatioImageView2(Context context, AttributeSet attrs) | |
{ | |
super(context, attrs); |
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 class NonSwipeableViewPager extends ViewPager { | |
public NonSwipeableViewPager(Context context) { | |
super(context); | |
} | |
public NonSwipeableViewPager(Context context, AttributeSet attrs) { | |
super(context, attrs); | |
} |
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 class TTSHelper implements TextToSpeech.OnInitListener { | |
private static TTSHelper instance; | |
private static TextToSpeech mTextToSpeech; | |
private static Context mContext; | |
private List<String> mBufferedMessages; | |
private boolean mIsReady; | |
private TTSHelper() { | |
mBufferedMessages = new ArrayList<>(); | |
} |
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 class IFlyHelper { | |
private static IFlyHelper instance; | |
// 语音合成对象 | |
private SpeechSynthesizer mTts; | |
private IFlyHelper(Context context) { | |
super(); | |
// 初始化合成对象 | |
mTts = SpeechSynthesizer.createSynthesizer(context, null); |
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
import android.content.Context; | |
import android.util.AttributeSet; | |
import android.view.MotionEvent; | |
import android.widget.ScrollView; | |
/** | |
* Created by albert on 15-3-19. | |
* | |
* 可以设置是否捕获touch事件,解决当包含其它可滚动组件时冲突的问题 | |
* |
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 void getIntalledAppInfo() { | |
List<PackageInfo> infos = getPackageManager().getInstalledPackages(0); | |
for (PackageInfo info : infos) { | |
String packageName = info.packageName; | |
int versionCode = info.versionCode; | |
String versionName = info.versionName; | |
long firstInstallTime = info.firstInstallTime; | |
String appName = info.applicationInfo.loadLabel(getPackageManager()).toString(); | |
Drawable icon = info.applicationInfo.loadIcon(getPackageManager()); | |
} |
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 boolean isSystemApp(PackageInfo info) { | |
return (info.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) == 1; | |
} |
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
@Override | |
public void failure(RetrofitError error) { | |
String body = new String(((TypedByteArray)error.getResponse().getBody()).getBytes()); | |
} |
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
[core] | |
editor = vim | |
[push] | |
default = simple | |
[alias] | |
aa = add -A | |
b = branch | |
c = checkout | |
l = log | |
m = commit |