Fix icon size for Data Usage / Battery Stats / Process Stats

- remove padding from app_percentage_item and apply it correctly
on its containers
- wrap app_percentage_item into preference_app_percentage for having
correct padding o nProcessStatsPreference and PowerGaugePreference

Change-Id: I290c92959f51a33a1edb49435cd0bd1e6cd9afa3
This commit is contained in:
Fabrice Di Meglio
2014-06-26 13:48:55 -07:00
parent c0ac943eb6
commit 200cca4c1d
7 changed files with 36 additions and 14 deletions

View File

@@ -47,7 +47,7 @@ public class ProcessStatsPreference extends Preference {
public ProcessStatsPreference(Context context, AttributeSet attrs, int defStyleAttr,
int defStyleRes) {
super(context, attrs, defStyleAttr, defStyleRes);
setLayoutResource(R.layout.app_percentage_item);
setLayoutResource(R.layout.preference_app_percentage);
}
public void init(Drawable icon, ProcStatsEntry entry) {