`
文章列表

expandlistview

expandlistview的DEMO,来自网络。   for (int i = 0; i < 5; i++) { Map<String, String> curGroupMap = new HashMap<String, String>(); groupData.add(curGroupMap); curGroupMap.put(G_TEXT, "Group " + i); List<Map<String, String>> children = new ArrayList< ...
转载:http://blog.csdn.net/u0fly/article/details/6400390 android 应用程序Activity之间数据传递与共享的几种途径(1) 1.基于消息的通信机制 Intent ---boudle ,extra 数据类型有限,比如遇到不可序列化的数据Bitmap,InputStream, 或者LinkList链表等等数据类型就不太好用。 2. 利用static静态数据, public static成员变量; 3.基于外部存储的传输, File/Preference/ Sqlite ,如果要针对第三方应用需要Conten ...
转载:http://www.eoeandroid.com/blog-535302-2176.html   布局:     在 android 中我们常用的布局方式有这么几种: 1.LinearLayout ( 线性布局 ) :(里面只可以有一个控件,并且不能设计这个控件的位置,控件会放到左上角)            ...
转载:http://blog.csdn.net/sky181772733/article/details/7003125#   案例:怎么样在一个ListView中含有TextView的item中实现字母滚动呢。这个在一些特定的场合经常用得到。如下图,当焦点位于某个item的时候其内容就自动滚动显示 要实现这样的效果,废话不多说直接上代码: adapter对应的layout 对应的listView的layout 切记千万不要在TextView中加上android:focusable="true" view plain <LinearLay ...
1、AndroidManifest.xml 文件中,申明 activity 的主题使用自定义对话框样式。 <activity android:name=".SensorGetValueActivity" android:label="@string/activity_custom_dialog" android:theme="@style/Theme.CustomDialog"> <intent-filter> ...
scrollview 使用setOnTouchListener后停止滑动: 解决办法:   一、 int touchY = 0; private boolean isScoll ; private void scrollView() { behavorLayout.setOnTouchListener(new OnTouchListener() { private int lastY = 0; private int touchEventId = -9983761; Handler handler = new Handler() { ...
Android开发神贴整理 http://www.apkbus.com/android-19658-1-1.html  
转载  Google Android开发精华教程     http://www.apkbus.com/android-13503-1-1.html  
使用Iterator 或for-each注意:java.util.ConcurrentModificationException   http://www.blogjava.net/fingki/archive/2010/03/02/314268.html

分享45个源码

http://www.apkbus.com/android-20978-1-1.html   http://terryblog.blog.51cto.com/1764499/547777

不显示近期任务

 
manifest中设置activity为: (在长按HOME键的时候,可以不显示近期任务)   android:excludeFromRecents="true"//不显示在近期任务中
转自: http://hi.baidu.com/jeremy16601/blog/item/2b338ee6b2973ac6f2d385d0.html   /** * 获取未安装的apk信息 * * @param ctx * @param apkPath * @return */ public static AppInfoData getApkFileInfo(Context ctx, String apkPath) { System.out.println(apkPath); File apkFile = new File(apkPa ...

遮罩效果。

来自: http://www.ligotop.com/2011/0526/137.html    
  收藏Android下bitmap内存限制OUT OF MEMORY的方法   http://www.ligotop.com/2011/0412/59.html     Android有效解决加载大图片时内存溢出的问题 尽量不要使用setImageBitmap或setImageResource或BitmapFactory.decodeResource来设置一张大图, 因为这些函数在完成decode后,最终都是通过java层的createBitmap来完成的,需要消耗更多内存。 因此,改用先通过BitmapFactory.decodeStream方法,创建出一个bitm ...

android课程

http://www.mobidever.com/courseDownload.php   http://www.verycd.com/topics/2900036/
Global site tag (gtag.js) - Google Analytics