Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,738,867 Members 42,042 Now Online
XDA Developers Android and Mobile Development Forum

[ Mod ] KeyguardSPlannerWidget XXUGNA7 new ver.( lockscreen Note3-S3 ) 14 / 02 / 2014

Tip us?
 
KIMBASINGER
Old
(Last edited by KIMBASINGER; 17th February 2014 at 04:16 PM.)
#21  
KIMBASINGER's Avatar
Member - OP
Thanks Meter 316
Posts: 98
Join Date: Feb 2011
Location: Valencia
android.zealot.fervor, you need knowledge of layouts in android ...
In theory, summarize:

***Extract the KeyguardSPlannerWidget.apk ( no center clock ) in
[ Mod XXUGNA7 ] KeyguardSPlannerWidget 4.3 [ dkt ]
https://dl.dropboxusercontent.com/u/...0dkt%20%5D.zip ,

decomplie apk, in layout folder open "keyguard_single_clock_layout.xml" with notepad+ and 11 lines

Code:
Select Code
<LinearLayout android:gravity="top" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"
  xmlns:android="http://schemas.android.com/apk/res/android">
 LinearLayout android:gravity="bottom" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="-14.0dip" android:layout_marginBottom="@dimen/missed_event_margin_bottom">
        <TextClock android:textSize="51.0dip" android:textColor="#ffffffff" android:gravity="top" android:id="@id/missed_clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:shadowColor="#bf000000" android:shadowDx="4.0" android:shadowDy="3.0" android:shadowRadius="4.0" android:textAllCaps="true" android:format12Hour="@string/widget_12_hours_format" android:format24Hour="@string/widget_24_hours_format" style="@style/widget_thin" />
<LinearLayout android:gravity="bottom" android:orientation="vertical" android:paddingBottom="10.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginLeft="6.0dip">
            <LinearLayout android:gravity="top" android:orientation="horizontal" android:paddingTop="2.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content">
<include android:layout_marginLeft="6.0dip" android:layout_above="@id/missed_date" layout="@layout/keyguard_alarm_area" />
                <include android:layout_marginLeft="10.0dip" layout="@layout/owner_info" />
            </LinearLayout>
          TextClock android:textSize="18.0dip" android:textColor="#ffffffff" android:layout_gravity="bottom" android:id="@id/missed_date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="6.0dip" android:layout_marginTop="-3.0dip" android:shadowColor="#bf000000" android:shadowDx="4.0" android:shadowDy="3.0" android:shadowRadius="4.0" android:layout_alignParentRight="true" android:textAllCaps="true" android:format12Hour="@string/abbrev_wday_day_abbrev_full_month_no_year" android:format24Hour="@string/abbrev_wday_day_abbrev_full_month_no_year" />
</LinearLayout>
    </LinearLayout>
If a linearlayout the orientation=vertical or horizontal + gravity=top or bottom, it shows the elementes align to left...


***Extract the KeyguardSPlannerWidget.apk in [ Mod XXUGNA7 ] KeyguardSPlanner Widget 4.3 [ dkt ]
https://dl.dropboxusercontent.com/u/...0%5D.zip<br />
decomplie apk, in layout folder open "keyguard_single_clock_layout.xml" with notepad+ and 11 lines:

Code:
Select Code
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:gravity="top" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"
  xmlns:android="http://schemas.android.com/apk/res/android">
    <TextClock android:textSize="68.0dip" android:textColor="#ffffffff" android:layout_gravity="top|center android:id="@id/missed_clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="-18.0dip" android:layout_marginBottom="@dimen/missed_event_margin_bottom" android:shadowColor="#bf000000" android:shadowDx="4.0" android:shadowDy="3.0" android:shadowRadius="4.0" android:textAllCaps="true" android:format12Hour="@string/widget_12_hours_format" android:format24Hour="@string/widget_24_hours_format" style="@style/widget_thin" />
    <TextClock android:textSize="15.0dip" android:textColor="#ffffffff" android:layout_gravity="bottom|center" android:id="@id/missed_date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="-9.0dip" android:shadowColor="#bf000000" android:shadowDx="4.0" android:shadowDy="3.0" android:shadowRadius="4.0" android:layout_alignParentRight="true" android:textAllCaps="true" android:format12Hour="@string/abbrev_wday_day_abbrev_full_month_no_year" android:format24Hour="@string/abbrev_wday_day_abbrev_full_month_no_year" />
    <LinearLayout android:gravity="bottom" android:orientation="vertical" android:paddingBottom="10.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginLeft="249.0dip" android:layout_marginTop="-83.0dip">
        <LinearLayout android:gravity="top" android:orientation="vertical" android:paddingTop="2.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content">
            <include android:layout_marginLeft="6.0dip" android:layout_above="@id/missed_date" layout="@layout/keyguard_alarm_area" />
            <include android:layout_marginLeft="10.0dip" android:layout_marginTop="10.0dip" layout="@layout/owner_info" />
        </LinearLayout>
    </LinearLayout
If a linearlayout the orientation=vertical or horizontal + gravity=center or center|top or center|bottom, it shows the elementes center in parent...
Too affect the parametre android:layout_width="fill_parent" and/or android:layout_width="wrap_content"...

You can learn a little configuration linearlayouts and relativelayouts in android, and can see the diference between first mod and second mod...

After of change a element of XML you compile apk ( with apk manager ), and delete resources file + delete the XML changed, and compile finally, and rename the compiled apk with the same name with original. Introduce this apk in zip and apply zip.

Excuse me for my bad english
The Following User Says Thank You to KIMBASINGER For This Useful Post: [ Click to Expand ]
 
android.zealot.fervor
Old
#22  
android.zealot.fervor's Avatar
Senior Member
Thanks Meter 1391
Posts: 1,179
Join Date: Nov 2013
Location: ★◢↿MUSCAT↾◣★


THANKS A LOT SIR !!!! I LOVE YOU
 
Ashganka
Old
#23  
Junior Member
Thanks Meter 6
Posts: 24
Join Date: Jul 2011
Great mod but:

1.If you have info about the owner enabled it disapperas
2. If you are using lock pattern the weather is only shown with the first unlock even if you have widgets maximized :/ samsung should improve it...
 
Paktunio
Old
#24  
Paktunio's Avatar
Member
Thanks Meter 240
Posts: 89
Join Date: Feb 2014
Thx
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes