笔记

来源:互联网 发布:大数据的利弊 编辑:程序博客网 时间:2024/06/14 01:22

1,文字下划线:TextView.getPaint().setFlags(Paint.UNDERLINE_TEXT_FLAG);

2,Linux—mitmproxy 代理查看手机的get/post请求
1)手机和电脑处于同一个网段
2)把手机wifi代理设置成电脑的ip地址
3)这时候手机的网络请求就可以在电脑上查看
4)常用键 Tab(切换)、Q(返回)、Enter(进入)、上下方向键、Shift+c清屏
5)可以看到response的参数(各个字节)

3,保持ListView的被滑动的状态
Parcelable state = Lv_ticket_information.onSaveInstanceState();
Lv_ticket_information.setAdapter(ticketInformationAdapter);
Lv_ticket_information.onRestoreInstanceState(state);

4,adb logcat |grep bindView

5.错误
1)Only the original thread that created a view hierarchy can touch its views.
出错原因:在线程中处理视图控件;
解决方法:不能在线程中处理视图组件,可通过Handler处理

0 0
原创粉丝点击