- 博客(6)
- 资源 (34)
- 收藏
- 关注
原创 【android】点击事件穿透解决方案
在一个布局中使用了FrameLayout,将布局分为上下两层,结果在操作上层布局空白处时,触发了下层布局按钮的点击事件,解决方法如下:在上层根布局添加如下属性即可android:clickable="true"
2017-07-18 11:30:47 2934
原创 【android】EditText输入银行卡号每四位空一格
完美仿微信银行卡输入框,输入每4个数字就自动添加一个空格代码如下:import android.text.Editable;import android.text.Selection;import android.text.TextWatcher;import android.widget.EditText;/** * Bank card input TextWatcher
2017-07-13 15:53:12 5123 1
原创 【android】禁止EditText自动获取焦点
有时候在页面加载的时候,我们需要默认EditText不自动获取焦点,以防止自动弹出输入法解决方法如下:在EditText的父布局中加入以下属性:android:focusable="true"android:focusableInTouchMode="true"示例:<LinearLayout android:layout_width="match_parent"
2017-07-12 21:42:49 1185
原创 【android】仿支付宝金额千分位格式化
格式化double,进行千分位分组,并保留最后两位小数,因为是金额,所以绝对不能四舍五入,效果如下:此处不能使用单纯的String.format来实现,因为默认String.format会自动四舍五入,例如: public static void main(String[] args) { System.out.println(formatPrice(16513.09)); ...
2017-07-11 12:04:30 7517
原创 【android】开发干货-图片合成之生成《飞行员驾驶证》
现在网上有很多假图片,这些东西都是怎么做出来的呢?接下来我们用android写一个APP来实现图片合成注意:请勿用于其它非法用途,发生任何违法事件本人概不负责
2017-07-06 17:31:19 5135
原创 【android】使用部分模拟器出现兼容问题Error inflating class EditText
在使用部分模拟器(此处我使用的是逍遥模拟器)会出现很奇怪的错误,但在其他手机上或模拟器上没有出现解决方法如下:在style.xml文件中 @color/colorPrimary @color/colorPrimaryDark @style/EditTextStyle
2017-07-03 09:56:54 3678
robomongo-0.9.0-rc8-windows-x86_64-c113244.zip
2017-08-08
android 仿微信加载进度条demo
2017-06-28
微信网页加载进度条
2017-06-28
C# JSON 1.1
2016-01-25
Android QQ技术分享三(QQ换肤之SkinEngine实现)
2015-10-16
Android QQ技术分享二(ClearableEditText实现)
2015-10-16
【cocos creater】9.仿《弓箭传说》- 子弹的碰撞.rar
2019-10-31
【cocos creater】7.仿《弓箭传说》- 控制主角朝向敌人.rar
2019-10-30
【cocos creater】6.仿《弓箭传说》- 控制主角移动.rar
2019-10-28
docker-apollo
2019-05-07
Twisted-18.9.0-cp35-cp35m-win_amd64
2018-12-12
Tensorflow MINIST数据模型源码.rar
2018-11-07
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人