android
zkwniky
这个作者很懒,什么都没留下…
展开
-
当手机等设备旋转时,为何我们在微信输入框中输入的文字会消失?
前几天玩微信时,当我在微信中辛辛苦苦的输入了很多的文字,突然手机在手中一滑,微信界面切换到了横屏的模式,我突然发现我输入的文字都没有了。这也算是微信的一个小BUG吧,下面我们来分析下为什么我们的文字会消失,加入我们来设计微信,我们应该保证微信在设备旋转时,输入的文字不丢失。原因分析:设备旋转时,系统会销毁当前的活动实例,然后创建一个新的活动实例。这里就不演示了,大家记住就好。这原创 2017-02-09 13:36:20 · 4349 阅读 · 0 评论 -
android TextView 同时显示文字和图像
Drawable ss= ContextCompat.getDrawable(this,R.drawable.ic_backup); ss.setBounds(0, 0, ss.getMinimumWidth(),ss.getMinimumHeight()); mshow_award.setCompoundDrawablesWithIntrinsicBounds原创 2017-02-11 23:40:36 · 393 阅读 · 0 评论 -
使用工具 查看 sqlite数据库中的表
1 打开 android studio tools---->Android--->android device monitor data-->data>找到你的项目文件夹--databases--找到数据库 AwardItemStore.db 选中右上角 pull a file from the device 导出数据库文件2原创 2017-02-14 13:02:09 · 1247 阅读 · 0 评论 -
ubuntu 安装 apktool
进入官网Apktool install 可以看到这些Download Linux wrapper script (Right click, Save Link As apktool)Download apktool-2 (find newest here)Make sure you have the 32bit libraries (ia32-libs) downloaded an转载 2017-12-19 11:25:37 · 348 阅读 · 0 评论