Merge "Show the highlight for the wifi toggle switch."
This commit is contained in:
@@ -43,7 +43,6 @@
|
|||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center_vertical"
|
android:layout_gravity="center_vertical"
|
||||||
android:background="@null"
|
|
||||||
android:theme="@style/ThemeOverlay.SwitchBar.Settings" />
|
android:theme="@style/ThemeOverlay.SwitchBar.Settings" />
|
||||||
|
|
||||||
</merge>
|
</merge>
|
||||||
|
@@ -117,7 +117,6 @@ public class SwitchBar extends LinearLayout implements CompoundButton.OnCheckedC
|
|||||||
lp = (MarginLayoutParams) mSwitch.getLayoutParams();
|
lp = (MarginLayoutParams) mSwitch.getLayoutParams();
|
||||||
lp.setMarginEnd(switchBarMarginEnd);
|
lp.setMarginEnd(switchBarMarginEnd);
|
||||||
setBackgroundColor(switchBarBackgroundColor);
|
setBackgroundColor(switchBarBackgroundColor);
|
||||||
mSwitch.setBackgroundColor(switchBarBackgroundColor);
|
|
||||||
|
|
||||||
addOnSwitchChangeListener(new OnSwitchChangeListener() {
|
addOnSwitchChangeListener(new OnSwitchChangeListener() {
|
||||||
@Override
|
@Override
|
||||||
|
Reference in New Issue
Block a user