我正在尝试在Android应用程序中更改gridview的字体大小.
这是我制作gridview的代码:
GridView gridview = (GridView)findViewById(R.id.gridView);
ArrayAdapter arrayadapter = new ArrayAdapter(
this,
R.layout.customstyle,
Rows );
gridview.setNumColumns(14);
gridview.setAdapter(arrayadapter);
这是我的自定义样式.xml文档中的代码
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
android:id="@+id/grid_item_label"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="8dip" >
当我尝试让它应用我的stlye时,该程序当前崩溃,但是当它使用标准样式时,它可以正常工作.
所以有人可以帮助我修复此样式,以便我设置字体大小
谢谢