[Android General] AbrahamGC:
DeluxeOutdoor - Custom outdoor button on notif. panel

I'll show first images of the mod and then how to do it.. I think it's usefull :good:

First of all, this mod needs GearUtils and GearContentObserver, so make sure you have both on your SystemUI.

How to add it :

1- Download zip attached and extract SystemUI folder over your decompiled UI.

2- Then open res\layout\qs_brightness_dialog.xml

After the line that starts with <com.android.systemui.settings.ToggleSliderView add this line :

<com.android.deluxerom.DeluxeOutdoor android:layout_width="34.0dip" android:layout_height="fill_parent" android:paddingEnd="7.0dip" />

That's all for SystemUI.

Now for RomControl :

1- Extract RomControl folder from attached zip over your RC sources.

2- Open arrays.xml and add these values :

<string-array name="agc_outdoor_check_off_drawables">
<item>@drawable/check_off_1</item>
<item>@drawable/check_off_2</item>
<item>@drawable/check_off_3</item>
<item>@drawable/check_off_4</item>
</string-array>

<string-array name="agc_outdoor_check_off_entries">
<item>1</item>
<item>2</item>
<item>3</item>
<item>4</item>
</string-array>

<string-array name="agc_outdoor_check_on_drawables">
<item>@drawable/check_on_1</item>
<item>@drawable/check_on_2</item>
<item>@drawable/check_on_3</item>
<item>@drawable/check_on_4</item>
</string-array>

<string-array name="agc_outdoor_check_on_entries">
<item>1</item>
<item>2</item>
<item>3</item>
<item>4</item>
</string-array>

<string-array name="agc_outdoor_check_values">
<item>0</item>
<item>1</item>
<item>2</item>
<item>3</item

3- Where you want add these preferences :

<PreferenceScreen android:title="Outdoor mode">
<com.wubydax.romcontrol.v2.prefs.MySwitchPreference
android:title="Show / Hide"
android:key="agc_show_outdoor"
android:defaultValue="false" />
<com.wubydax.romcontrol.v2.prefs.ThumbnailListPreference
android:title="Icon on"
android:key="agc_icon_on_outdoor"
android:defaultValue="0"
android:dependency="agc_show_outdoor"
app:drawableArray="@array/agc_outdoor_check_on_drawables"
app:entryValuesList="@array/agc_outdoor_check_values"
app:entryList="@array/agc_outdoor_check_on_entries" />
<com.wubydax.romcontrol.v2.prefs.ThumbnailListPreference
android:title="Icon off"
android:dependency="agc_show_outdoor"
android:key="agc_icon_off_outdoor"
android:defaultValue="0"
app:drawableArray="@array/agc_outdoor_check_off_drawables"
app:entryValuesList="@array/agc_outdoor_check_values"
app:entryList="@array/agc_outdoor_check_off_entries" />
<com.wubydax.romcontrol.v2.prefs.ColorPickerPreference
android:title="Color on"
android:dependency="agc_show_outdoor"
android:key="agc_icon_on_color"
android:defaultValue="#000000"
alphaSlider="true"
hexValue="true" />
<com.wubydax.romcontrol.v2.prefs.ColorPickerPreference
android:title="Color off"
android:dependency="agc_show_outdoor"
android:key="agc_icon_off_color"
android:defaultValue="#FF0000"
alphaSlider="true"
hexValue="true" />
<com.wubydax.romcontrol.v2.prefs.MySeekBarPreference
android:title="Rotation"
android:dependency="agc_show_outdoor"
app:minValue="0"
app:maxValue="360"
android:key="agc_rotation_outdoor"
android:defaultValue="0" />
</PreferenceScreen>

Done! :good:

Thanks to [MENTION=5829833]a.raul[/MENTION] for the icons :D

​