[Android General] grzegorz354:
Guide Battery Temperature​

Decompile SystemUI.apk

Add smail

Locate to

SystemUI\res\layout\sec_quick_status_bar_header_system_icons.xml

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:id="@id/quick_status_bar_system_icons" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="@dimen/status_bar_height" android:paddingStart="@dimen/status_bar_padding_start" android:paddingEnd="@dimen/status_bar_padding_end"
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:systemui="http://schemas.android.com/apk/res-auto">
<LinearLayout android:gravity="end|center" android:orientation="horizontal" android:id="@id/quick_status_bar_area" android:layout_width="fill_parent" android:layout_height="fill_parent">
[COLOR="Blue"]<com.android.systemui.rz.LeftLayout android:gravity="center_vertical" android:layout_width="wrap_content" android:layout_height="fill_parent" key="hide_temp">
<com.dev.Battery.BatteryTemperature android:textColor="@color/qs_tile_text" android:gravity="center_vertical" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginEnd="4.0dip" />
</com.android.systemui.rz.LeftLayout>[/COLOR]
<com.android.systemui.statusbar.policy.NetspeedView android:textStyle="bold" android:gravity="center" android:id="@id/networkSpeed" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:lineSpacingExtra="@dimen/netspeed_line_space_extra" android:importantForAccessibility="no" android:fontFamily="roboto-regular" android:layout_marginEnd="@dimen/battery_level_padding_start" />
<com.android.systemui.statusbar.phone.StatusIconContainer android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginEnd="3.0dip" />
<com.android.systemui.BatteryMeterView android:gravity="end|center" android:id="@id/battery" android:tag="qs_status_bar_battery" android:layout_width="wrap_content" android:layout_height="fill_parent" />
</LinearLayout>
</LinearLayout>

If you do not want to use Rom Control add only

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:id="@id/quick_status_bar_system_icons" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="@dimen/status_bar_height" android:paddingStart="@dimen/status_bar_padding_start" android:paddingEnd="@dimen/status_bar_padding_end"
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:systemui="http://schemas.android.com/apk/res-auto">
<LinearLayout android:gravity="end|center" android:orientation="horizontal" android:id="@id/quick_status_bar_area" android:layout_width="fill_parent" android:layout_height="fill_parent">
[COLOR="Blue"]<com.dev.Battery.BatteryTemperature android:textColor="@color/qs_tile_text" android:gravity="center_vertical" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginEnd="4.0dip" />[/COLOR]
<com.android.systemui.statusbar.policy.NetspeedView android:textStyle="bold" android:gravity="center" android:id="@id/networkSpeed" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:lineSpacingExtra="@dimen/netspeed_line_space_extra" android:importantForAccessibility="no" android:fontFamily="roboto-regular" android:layout_marginEnd="@dimen/battery_level_padding_start" />
<com.android.systemui.statusbar.phone.StatusIconContainer android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginEnd="3.0dip" />
<com.android.systemui.BatteryMeterView android:gravity="end|center" android:id="@id/battery" android:tag="qs_status_bar_battery" android:layout_width="wrap_content" android:layout_height="fill_parent" />
</LinearLayout>
</LinearLayout>

RomControl

<PreferenceCategory android:title="Battery Temperature">
<com.wubydax.romcontrol.v2.prefs.MySwitchPreference android:title="Battery Temperature" android:key="hide_temp" android:defaultValue="true" android:summaryOn="Enabled" android:summaryOff="Disabled" />
</PreferenceCategory>

Guide by _focus_

My adaptation to the RC