使用美团walle进行多渠道打包可以节省大量的时间, 但是使用中发现一个问题:

之前是使用walle打多渠道包, 然后将apk上传360进行加固; 后来发现加固之后的APP没有了渠道信息, 并且发现360加固完成后的自动重签名只有V1签名

因此需要我们自己手动重签名, 需要调整实现流程: 加固——重签名——多渠道打包

阅读全文 »

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
 
getWindow().getDecorView().getViewTreeObserver().addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() {
@Override
public void onGlobalLayout() {
mImgKeyboard.setImageResource(KeyboardUtils.isSoftShowing(ForumsPublishPostActivity.this)
? R.mipmap.jianpan_down_ico : R.mipmap.jianpan_ico);

// 除了软键盘以外的可见区域
Rect rect = new Rect();
getWindow().getDecorView().getWindowVisibleDisplayFrame(rect);
// 计算出剩余高度: 除了状态栏高度、topBar高度、bottomBar高度、键盘高度的剩余高度
int invisibleHeight = rect.bottom
- ViewUtils.getSystemBarHeight(ForumsPublishPostActivity.this)
- ViewUtils.dp2px(ForumsPublishPostActivity.this, 44)
- ViewUtils.dp2px(ForumsPublishPostActivity.this, 44);

// 计算出所点击的图片描述的EditText距离RecyclerView顶部的距离
View etDescView = mRecyclerview.getLayoutManager().findViewByPosition(mAdapter.etFocusPosition);
if (etDescView != null) {
int focusViewTop = etDescView.getTop();
int itemHeight = etDescView.getHeight();

int differ = focusViewTop + itemHeight - invisibleHeight;
if (differ > 0) {
// 让RecyclerView滚动差的那点距离
mRecyclerview.scrollBy(0, differ);
}
}

}
});

HTTP 响应状态代码指示特定 HTTP 请求是否已成功完成。响应分为五类:信息响应(100199),成功响应(200299),重定向(300399),客户端错误(400499)和服务器错误 (500599)。状态代码由 section 10 of RFC 2616定义

阅读全文 »

Markdown是一种纯文本格式的标记语言。通过简单的标记语法,它可以使普通文本内容具有一定的格式。

相比WYSIWYG编辑器

阅读全文 »