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

@@ -37,7 +37,7 @@ public class PowerGaugePreference extends Preference {
public PowerGaugePreference(Context context, Drawable icon, BatteryEntry info) {
super(context);
setLayoutResource(R.layout.app_percentage_item);
setLayoutResource(R.layout.preference_app_percentage);
setIcon(icon != null ? icon : new ColorDrawable(0));
mInfo = info;
}