I want to keep my app as close to the devices original theme as possible. Therefor I use this layout for my separators:
This is spored in a separate layout file. Isn't there anyway to use the same resource programmatically?
I've tried with:
TextView tvSeparator = new TextView(context);
tvSeparator.setBackgroundResource(android.R.drawable.list_selector_background);
But I don't know the padding, the font size, the font style etc from this :/