Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit be914b69 authored by ihtfp69's avatar ihtfp69
Browse files

Themes: add ability to theme quick settings battery tiles

This is to make the battery tiles more uniform to the rest
of quick settings and also allow the background to be themed

http://i.imgur.com/AA5bkMK.png

Change-Id: Iec03572a0fa3619d2652f30b6c260a278ed0c86b
parent e6c1c031
Loading
Loading
Loading
Loading
+926 B
Loading image diff...
+926 B
Loading image diff...
+926 B
Loading image diff...
+926 B
Loading image diff...
+32 −22
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2013 The Android Open Source Project
<!-- Copyright (C) 2013 The CyanogenMod Project

     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
@@ -13,27 +13,37 @@
     See the License for the specific language governing permissions and
     limitations under the License.
-->
<LinearLayout
        xmlns:android="http://schemas.android.com/apk/res/android"
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
        android:layout_gravity="top"
        android:orientation="vertical">
    <com.android.systemui.BatteryMeterView
    android:layout_gravity="top" >

    <FrameLayout
        android:id="@+id/image"
            android:layout_marginTop="@dimen/qs_tile_margin_above_icon"
        android:layout_width="@dimen/qs_tile_icon_size"
        android:layout_height="@dimen/qs_tile_icon_size"
        android:layout_centerHorizontal="true"
        android:layout_gravity="top|center_horizontal"
        android:layout_marginBottom="@dimen/qs_tile_margin_below_icon"
        android:layout_marginTop="@dimen/qs_tile_margin_above_icon"
        android:background="@drawable/ic_qs_battery_bg" >

        <com.android.systemui.BatteryMeterView
            android:id="@+id/battery"
            android:layout_width="22dp"
            android:layout_height="32dp"
            android:padding="3dp"
            android:layout_gravity="top|center_horizontal"
            />
            android:layout_gravity="center"
            android:padding="3dp" />
    </FrameLayout>

    <TextView
            style="@style/TextAppearance.QuickSettings.TileView"
        android:id="@+id/text"
        style="@style/TextAppearance.QuickSettings.TileView"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_below="@id/image"
        android:layout_centerHorizontal="true"
        android:layout_gravity="top|center_horizontal"
            android:gravity="top|center_horizontal"
            />
</LinearLayout>
        android:gravity="top|center_horizontal" />

</RelativeLayout>
Loading