摘要:
在Android开发中,ListViw的使用是非常多的,下面列举ListView的一些使用方法显示ListView列表时,必需要三个元素:1、ListView对象,用来显示具体的数据。2、Adapter适配器,用将要显示的数据映射到ListView上。 可用:ArrayAdapter(一般只显示一行文字时用)、SimpleAdapter(可扩展性强)、SimpleCursorAdapter(用于显示数据库的数据)3、ListView要显示的数据,包括:字符串,图片,控件等。一、ArrayAdapter:展示数组列表,一般只需要展示一行文字的时候可用这个,源代码:显示ArrayAdapter 阅读全文
摘要:
textAppearance的属性设置android:textAppearance="?android:attr/textAppearanceSmall" android:textAppearance="?android:attr/textAppearanceMedium"android:textAppearance="?android:attr/textAppearanceLarge"textAppearance代码的设置nameText.setTextAppearance(getApplicationContext(), R.st 阅读全文