Android
文章平均质量分 77
xshengh
这个作者很懒,什么都没留下…
展开
-
Android中的ListView用法(自动滚动)
Listview用法: import java.util.ArrayList; import java.util.List; import android.app.Activity; import android.os.Bundle; import android.widget.ArrayAdapter; import android.widget.ListView; public clas转载 2014-08-23 15:22:51 · 2865 阅读 · 0 评论 -
android启动activity的几种方式
跳转activity的几种方式,主要是通过intent意图,分为显示和隐式intent 1.显示跳转 A.class跳转 用例: ? 1 2 3 Intent it = new Intent(A.this,B.class); //it.putExtra("key","value"); //跳转时传的参数 startAct转载 2014-09-10 16:23:22 · 1613 阅读 · 0 评论 -
Difference between Preference commit and apply
Apply: Commit your preferences changes back from this Editor to the SharedPreferences object it is editing. This atomically performs the requested modifications, replacing whatever is currently in th原创 2015-02-05 16:11:09 · 561 阅读 · 0 评论