I am trying to change the font size of my gridview in my android application.
this is my code for makeing the gridview:
GridView gridview = (GridView)findViewById(R.id.gridView);
ArrayAdapter<String> arrayadapter = new ArrayAdapter<String>(
this,
R.layout.customstyle,
Rows );
gridview.setNumColumns(14);
gridview.setAdapter(arrayadapter);
and here is the code from my custom style .xml document
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<TextView
android:id="@+id/grid_item_label"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="8dip" >
</TextView>
</LinearLayout>
The program currently crashes when i try and get it to apply my stlye but it workss find when it uses the standard styles. so can someone help me fix this style so i can set the font size Thanks