Loading packages/SettingsLib/res/layout/usage_view.xml +4 −2 Original line number Diff line number Diff line Loading @@ -71,9 +71,11 @@ android:id="@+id/bottom_label_group" android:layout_width="match_parent" android:layout_height="wrap_content" android:paddingStart="@dimen/usage_graph_labels_width" android:orientation="horizontal"> <Space android:id="@+id/bottom_label_space" android:layout_width="@dimen/usage_graph_labels_width" android:layout_height="wrap_content"/> <include android:id="@+id/label_start" layout="@layout/usage_side_label" /> Loading packages/SettingsLib/src/com/android/settingslib/graph/UsageView.java +4 −3 Original line number Diff line number Diff line Loading @@ -71,10 +71,11 @@ public class UsageView extends FrameLayout { layout.addView(labels); // Set gravity. labels.setGravity(Gravity.END); // Swap the bottom label padding // Swap the bottom space order. LinearLayout bottomLabels = (LinearLayout) findViewById(R.id.bottom_label_group); bottomLabels.setPadding(bottomLabels.getPaddingRight(), bottomLabels.getPaddingTop(), bottomLabels.getPaddingLeft(), bottomLabels.getPaddingBottom()); View bottomSpace = bottomLabels.findViewById(R.id.bottom_label_space); bottomLabels.removeView(bottomSpace); bottomLabels.addView(bottomSpace); } else if (gravity != Gravity.START) { throw new IllegalArgumentException("Unsupported gravity " + gravity); } Loading Loading
packages/SettingsLib/res/layout/usage_view.xml +4 −2 Original line number Diff line number Diff line Loading @@ -71,9 +71,11 @@ android:id="@+id/bottom_label_group" android:layout_width="match_parent" android:layout_height="wrap_content" android:paddingStart="@dimen/usage_graph_labels_width" android:orientation="horizontal"> <Space android:id="@+id/bottom_label_space" android:layout_width="@dimen/usage_graph_labels_width" android:layout_height="wrap_content"/> <include android:id="@+id/label_start" layout="@layout/usage_side_label" /> Loading
packages/SettingsLib/src/com/android/settingslib/graph/UsageView.java +4 −3 Original line number Diff line number Diff line Loading @@ -71,10 +71,11 @@ public class UsageView extends FrameLayout { layout.addView(labels); // Set gravity. labels.setGravity(Gravity.END); // Swap the bottom label padding // Swap the bottom space order. LinearLayout bottomLabels = (LinearLayout) findViewById(R.id.bottom_label_group); bottomLabels.setPadding(bottomLabels.getPaddingRight(), bottomLabels.getPaddingTop(), bottomLabels.getPaddingLeft(), bottomLabels.getPaddingBottom()); View bottomSpace = bottomLabels.findViewById(R.id.bottom_label_space); bottomLabels.removeView(bottomSpace); bottomLabels.addView(bottomSpace); } else if (gravity != Gravity.START) { throw new IllegalArgumentException("Unsupported gravity " + gravity); } Loading