共 58 篇文章 |
|
Android Studio上非常棒的插件。从所选的XML布局文件生成ButterKnife注入,需结合ButterKnife来使用。在选中布局文件,按alt+insert,在弹出的上下文菜单中,选中Generate ButterKnife即可。在你的类中,按下alt + insert键弹出插入代码的上下文菜单,选中Parcelable即可。响应式编程,在RxJava的基础上构建的Android版,需要结合RxJava使用。搜... 阅65 转0 评0 公众公开 17-07-17 18:21 |
阅1146 转0 评0 公众公开 17-05-15 14:48 |
Android 在程序中动态添加 View 布局或控件。LayoutParams params = new LayoutParams(LayoutParams. 阅237 转1 评0 公众公开 17-05-15 13:27 |
Android开发中软键盘的常见问题软键盘显示的原理。<activity Android:name=".Main" Android:label="@string/app_name" Android:windowSoftInputMode="adjustUnspecified|stateHidden" Android:configChanges="orientation|keyboardHidden"> <intent-filter> <action Android:name=&quo... 阅71 转0 评0 公众公开 17-05-15 08:02 |
Android如何修改app不在多任务列表中显示。比如不需要xxxActivity显示在多任务列表中:<activity android:name="xxxActivity" android:label="@string/app_name" android:screenOrientation="portrait"++ android:excludeFromRecents="true" android:theme="@style/AppActivityTheme" &g... 阅1819 转0 评0 公众公开 17-05-14 21:42 |
android 中 系统日期时间的获取。[java] view plain copy print?[Java] view plain copy print?Calendar c = Calendar.getInstance();取得系统日期:year = c.get(Calendar.YEAR) month = c.grt(Calendar.MONTH) day = c.get(Calendar.DAY_OF_MONTH) 取得系统时间:hour = c.get(Calendar.HOUR_OF_DAY); ... 阅26 转0 评0 公众公开 17-05-14 19:12 |
阅29 转0 评0 公众公开 17-05-09 13:33 |
AlertDialog.THEME_HOLO_DARK);dialog.show(); 阅1146 转0 评0 公众公开 17-03-30 18:57 |
> <set xmlns:android="http://schemas.android.com/apk/res/android" android:interpolator="@android:anim/accelerate_interpolator" > <translate android:duration="300" android:fromYDelta="100.0%" android:toYDelta="10.000002... 阅658 转0 评0 公众公开 17-03-29 18:57 |
Android ListView使用BaseAdapter与ListView的优化 在ListView的使用中,有时候还需要在里面加入按钮等控件,实现单独的操作。读者可以试试用SimpleAdapter添加一个按钮到ListView的条目中,会发现可以添加,但是却无法获得焦点,点击操作被ListView的Item所覆盖。总结一下,这节介绍了用BaseAdapter来绑定ListView的数据。同时ListView的优... 阅16 转0 评0 公众公开 17-03-23 13:26 |