Skip to content
Snippets Groups Projects
Commit 657ae2e7 authored by akwizgran's avatar akwizgran
Browse files

Pad spinner items with Holo Light theme but not Light theme (SDK < 11).

parent 6a280944
No related branches found
No related tags found
No related merge requests found
......@@ -2,8 +2,10 @@ package net.sf.briar.android.groups;
import java.util.ArrayList;
import net.sf.briar.R;
import net.sf.briar.api.messaging.Group;
import android.content.Context;
import android.content.res.Resources;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
......@@ -23,7 +25,9 @@ implements SpinnerAdapter {
TextView name = new TextView(getContext());
name.setTextSize(18);
name.setMaxLines(1);
name.setPadding(10, 10, 10, 10);
Resources res = getContext().getResources();
int pad = res.getInteger(R.integer.spinner_padding);
name.setPadding(pad, pad, pad, pad);
name.setText(getItem(position).getName());
return name;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment