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
#!/bin/bash | |
# Script adb+ | |
# Run any command adb provides on all your currently connected devices, | |
# Or prompt to select one device | |
showHelp() { | |
echo "Usage: adb+ [-a] <command>" | |
echo " -h: show help" | |
echo " -a: run command on all device" | |
echo " command: normal adb commands" |
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
1.debug false | |
2.sign true | |
3.test proguard | |
4.change version code | |
5.upload new apk to umeng and test update works | |
6.merge master to release branch | |
7.upload new apk to appstores |
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 static void makeEllipseEnd(TextView textView, String str, int maxLine) { | |
textView.setText(str); | |
textView.getViewTreeObserver().addOnPreDrawListener(new ViewTreeObserver.OnPreDrawListener() { | |
@Override | |
public boolean onPreDraw() { | |
textView.getViewTreeObserver().removeOnPreDrawListener(this); | |
if (textView.getLineCount() > maxLine) { | |
int offset = textView.getLayout().getLineEnd(maxLine - 1); | |
String text = textView.getText().subSequence(0, offset).toString(); | |
if (text.endsWith("\n")) { |