透明度百分比对应 RGB 值
100% — FF
95% — F2
90% — E6
85% — D9
80% — CC
75% — BF
70% — B3
65% — A6
60% — 99
55% — 8C
50% — 80
45% — 73
40% — 66
35% — 59
30% — 4D
25% — 40
20% — 33
15% — 26
10% — 1A
5% — 0D
0% — 00
Fragment中setOnItemChildClickListener未生效的处理办法
//===============Adapter类中
//在adapter的convert中设置监听的元素 helper.addOnClickListener(R.id.iv_back)
//===============Fragment类中在Fragment设置子元素点击事件监听
adapter.setOnItemChildClickListener(new BaseQuickAdapter.OnItemChildClickListener() {
@Override public void onItemChildClick(BaseQuickAdapter adapter, View view, int position) {
switch (view.getId()) {
case R.id.iv_back:
//something
break;
}
}
})
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/282696.html