- 博客(3)
- 资源 (3)
- 收藏
- 关注
原创 Bundle传递对象
//Intent.Bundle对象传递数据 1)Intent intent = new Intent(); intent.setClass(当前类.this,继承类.class); 2)用Bundle绑定要传递的数据 Bundle bundle = new Bundle(); bundle.putDouble("height",height); bundle.putString("se
2014-01-02 08:52:16
611
原创 Android--AlertDialog对话框
AlertDialog是真正意义上具有和用户交互的窗口. 通过new一个AlertDialog.Builder对象,可以构造一个具有Title(setTitle),Message(setMessage)和确认按钮(setPositiveButton)的对话框。如: new AlertDialog.Builder(class.this) .setTitle(R.string.app_about
2013-12-31 15:35:28
396
原创 Android-自动完成文字输入
自动输入功能也就是说,假如我们以前去过某个网站,当要输入账号时,只需输入前几个,后面的就会自动出现候选字,免去了重复打字的麻烦。 AutoCompleteTextView可以实现该功能。其用法和Spinner类似: A:用固定的候选字符串 1)在res/layout文件中创建一个AutoCompleteTextView,如 android:id="@+id/aut
2013-12-18 15:39:01
750
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人