vendredi 19 décembre 2014

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

05:55






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<br/><br/>Name:	device-2014-12-19-214532.png<br/>Views:	N/A<br/>Size:	18.2 KB<br/>ID:	3071851
 

Click image for larger version<br/><br/>Name:	device-2014-12-19-214546.png<br/>Views:	N/A<br/>Size:	76.1 KB<br/>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)










Written by

We are Creative Blogger Theme Wavers which provides user friendly, effective and easy to use themes. Each support has free and providing HD support screen casting.

0 commentaires:

Enregistrer un commentaire

 

© 2013 Mobile Probleme. All rights resevered. Designed by Templateism

Back To Top