FORUMS

Analysis & Opinion

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

98 posts
Thanks Meter: 320
 
By KIMBASINGER, Member on 11th February 2014, 05:40 PM
Post Reply Subscribe to Thread Email Thread
17th February 2014, 03:38 PM |#21  
KIMBASINGER's Avatar
OP Member
Flag Valencia
Thanks Meter: 320
 
More
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:
<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:
<?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
Last edited by KIMBASINGER; 17th February 2014 at 04:16 PM.
The Following User Says Thank You to KIMBASINGER For This Useful Post: [ View ]
 
 
17th February 2014, 04:38 PM |#22  
android.zealot.fervor's Avatar
Senior Member
Flag ★◢↿MUSCAT↾◣★
Thanks Meter: 1,595
 
More


THANKS A LOT SIR !!!! I LOVE YOU
18th February 2014, 07:12 PM |#23  
Member
Thanks Meter: 6
 
More
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...
21st February 2014, 05:06 PM |#24  
Paktunio's Avatar
Junior Member
Flag Villebarou
Thanks Meter: 261
 
Donate to Me
More
Thx
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes