Quantcast
Channel: xda-developers - Android Themes
Viewing all articles
Browse latest Browse all 4090

[GUIDE][2.3+] Add Weather information in your ExpandedView

$
0
0
WHAT IS THIS?
Hmm. You will have some weather info any where in your ExpandedView

FEATURES
Temperature (Celcius)
Weather description
Location
Weather Icon


THINGS NEEDED
Notepad++ or any other good textEditor
The attached files
Deodex ROM

STEPS
Download the attached files (PotatoWeatherSettings & Weather.zip)
Install the PotatoWeatherSettings .apk
Decompile your SystemUI,apk
Extract the Weather.zip then copy it to your decompiled SystemUI.apk (I'm assuming that you know already where to put smali files)
Go to your expandedView.xml or the xml that is responsible for your expanded layout and add this code

Code:

    <com.potato.statusbar.systemui.policy.WeatherLayout android:orientation="horizontal" android:layout_width="200.0dip" android:layout_height="48.0dip">
        <LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="48.0dip" android:layout_weight="1.0">
            <LinearLayout android:gravity="right" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="24.0dip">
                <com.potato.statusbar.systemui.policy.WeatherTemp android:textStyle="bold|italic" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="4.0dip" android:singleLine="true" />
                <com.potato.statusbar.systemui.policy.WeatherHypen android:textStyle="bold|italic" android:paddingRight="5.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
                <com.potato.statusbar.systemui.policy.WeatherCondition android:textStyle="bold|italic" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="4.0dip" android:singleLine="true" />
            </LinearLayout>
            <LinearLayout android:gravity="right" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="24.0dip">
                <com.potato.statusbar.systemui.policy.WeatherLocation android:textStyle="bold|italic" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="4.0dip" android:singleLine="true" />
            </LinearLayout>
        </LinearLayout>
        <com.potato.statusbar.systemui.policy.WeatherImage android:layout_gravity="center_vertical" android:id="@id/weatherImage1" android:padding="3.0dip" android:layout_width="50.0dip" android:layout_height="fill_parent" />
    </com.potato.statusbar.systemui.policy.WeatherLayout>

Compile your SystemUI then push it back to your device



NOTE
The weather is updating every 30 mins so if you don't have unlimited data plans just disable the weather.
Click GET WEATHER if you want to manually update the weather :D



CREDITS
ThePotatoInc
PacMan ROMS for coooool weather icons

Attached Thumbnails
Click image for larger version

Name:	device-2014-12-19-214532.png
Views:	N/A
Size:	18.2 KB
ID:	3071851   Click image for larger version

Name:	device-2014-12-19-214546.png
Views:	N/A
Size:	76.1 KB
ID:	3071852  
Attached Files
File Type: apk PotatoWeatherSettings.apk - [Click for QR Code] (930.0 KB)
File Type: zip weather.zip - [Click for QR Code] (15.4 KB)

Viewing all articles
Browse latest Browse all 4090

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>