Permalink
Browse files

styling the settings grid

  • Loading branch information...
1 parent 02a0de6 commit e7434ceb52801b3ffe16f5bbc0aca509c4fcee26 @gzavitz gzavitz committed Apr 11, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/edu/gvsu/tveye/adapter/SettingsGridAdapter.java
View
5 src/edu/gvsu/tveye/adapter/SettingsGridAdapter.java
@@ -1,6 +1,8 @@
package edu.gvsu.tveye.adapter;
import android.content.Context;
+import android.graphics.Color;
+import android.util.TypedValue;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
@@ -41,6 +43,9 @@ public View getView(int position, View convertView, ViewGroup parent) {
TextView textView;
if(convertView == null) {
textView = new TextView(context);
+ textView.setTextSize(TypedValue.COMPLEX_UNIT_DIP, 28);
+ textView.setPadding(5, 5, 5, 5);
+ textView.setBackgroundColor(Color.parseColor("#F00"));
} else {
textView = (TextView) convertView;
}

0 comments on commit e7434ce

Please sign in to comment.