h - Move left
j - Move down
k - Move up
l - Move right
$ - Move to end of line
0 - Move to beginning of line (including whitespace)
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
| #!/usr/bin/env bash | |
| # 获取最近两次发布(通过tag判断)之间的提交记录 | |
| MODE="$1" | |
| EXCLUDE="" | |
| if [[ "$MODE" == "prod" ]]; then | |
| EXCLUDE="test@*" | |
| else | |
| EXCLUDE="prod@*" | |
| fi | |
| tagName="$(git describe --tags --exclude "debug@*" --exclude "v*" --exclude "$EXCLUDE" HEAD^1)" |
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
| /** | |
| * 扩展View的触摸区域 | |
| * @param view 需要扩展触摸区域的View | |
| * @param left 左边扩展范围(单位px,下同) | |
| * @param top 上边扩展范围 | |
| * @param right 右边扩展范围 | |
| * @param bottom 下边扩展范围 | |
| */ | |
| public static void extendTouchArea(final View view, final int left, final int top, final int right, final int bottom) { | |
| if (view == null || view.getParent() == null) { |