Android studio 搜中文
^((?!(\*|//)).)+[\u4e00-\u9fa5]
^((?!(\*|//)).)+[\u4e00-\u9fa5]
out.print()方法,可以输出一个java对象;out.write()方法,只能输入一个字符串;out.flush()是把缓冲区的数据强行输出;直接关闭流,会导致socket也被关闭.正确的调用方法是不直接关闭流,而是调用socket的closeinput/closeoutput方法来关闭,这…
百度地图API中,有GPS坐标转百度坐标的功能http://dev.baidu.com/wiki/static/map/API/examples/?v=1.2&0_6#0&6http接口是:http://api.map.baidu.com/ag/coord/convert?from=…
【˂span style="font…
今天用Tablayout——ViewPage出现getCustomView为空的问题通过源码发现,ViewPage的adapter更新会吧TabLayout 的customViewc置空。这个时候自动调用OnTabSelectedListener的onTabSelected方法去获取Cu…
NotificationChannel notificationChannel = new NotificationChannel (NOTIFICATION_C…
RecyclerView设置的OnItemClick点击最后一个无效,在点击最后一个无效后在部分手机上点击其他item会触发最后一个view的onclick事件,有的手机始终无反应。是因为popwindow里RecyclerView宽度设置为match_parent的原因改为wrap_content…