Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- TextView textView = (TextView)row.findViewById(android.R.id.text1);
- float scale = activity.getResources().getDisplayMetrics().density;
- boolean leftPadding = (parent.getTag().equals("right"));
- boolean topPadding = (position == 0);
- textView.setPadding((int)(20 * scale) * (leftPadding ? 2 : 1), (int)(20 * scale) * (!leftPadding && topPadding ? 1 : 0), (int)(20 * scale), 0);
- textView.setText(item);
- textView.setTextColor(Color.BLACK);
- textView.setTextSize(TypedValue.COMPLEX_UNIT_SP, 16);
Add Comment
Please, Sign In to add comment