共 58 篇文章
显示摘要每页显示  条
Android Studio上非常棒的插件。从所选的XML布局文件生成ButterKnife注入,需结合ButterKnife来使用。在选中布局文件,按alt+insert,在弹出的上下文菜单中,选中Generate ButterKnife即可。在你的类中,按下alt + insert键弹出插入代码的上下文菜单,选中Parcelable即可。响应式编程,在RxJava的基础上构建的Android版,需要结合RxJava使用。搜...
Android 在程序中动态添加 View 布局或控件。LayoutParams params = new LayoutParams(LayoutParams.
Android开发中软键盘的常见问题软键盘显示的原理。<activity Android:name=".Main" Android:label="@string/app_name" Android:windowSoftInputMode="adjustUnspecified|stateHidden" Android:configChanges="orientation|keyboardHidden"> <intent-filter> <action Android:name=&quo...
Android如何修改app不在多任务列表中显示。比如不需要xxxActivity显示在多任务列表中:<activity android:name="xxxActivity" android:label="@string/app_name" android:screenOrientation="portrait"++ android:excludeFromRecents="true" android:theme="@style/AppActivityTheme" &g...
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); ...
AlertDialog.THEME_HOLO_DARK);dialog.show();
> <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...
Android ListView使用BaseAdapter与ListView的优化 在ListView的使用中,有时候还需要在里面加入按钮等控件,实现单独的操作。读者可以试试用SimpleAdapter添加一个按钮到ListView的条目中,会发现可以添加,但是却无法获得焦点,点击操作被ListView的Item所覆盖。总结一下,这节介绍了用BaseAdapter来绑定ListView的数据。同时ListView的优...
帮助 | 留言交流 | 联系我们 | 服务条款 | 下载网文摘手 | 下载手机客户端
北京六智信息技术股份有限公司 Copyright© 2005-2024 360doc.com , All Rights Reserved
京ICP证090625号 京ICP备05038915号 京网文[2016]6433-853号 京公网安备11010502030377号
返回
顶部