<?xml version="1.0" encoding="utf-8"?>
<GridView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/gridview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:columnWidth="90dp"
android:numColumns="6"
android:verticalSpacing="3dp"
android:horizontalSpacing="10dp"
android:stretchMode="columnWidth"
android:gravity="center"
android:soundEffectsEnabled="true"/>
The example helloGridview has the vertical spacing as 10dp. Changing to 3 did not have an effect. I am setting the text size in the baseadapter like so:
textView.setText(mGearStrings[position]);
textView.setTextSize(TypedValue.COMPLEX_UNIT_SP,7.0f);
textView.setText(mGearStrings[position]);
textView.setTextSize(TypedValue.COMPLEX_UNIT_SP,7.0f);
No comments:
Post a Comment