So no one has made a flashable zip yet
Sent from my SGH-I897 using xda premium
No one can really make a flashable zip because you would have to have one for every phone and ROM available for each of those phones..
Kendall
So no one has made a flashable zip yet
Sent from my SGH-I897 using xda premium
Did anyone got it working with dpi other than default? For me it works only with default DPI(240) but not with custom DPI like 200.
Sent from my GT-I9100 using xda premium
I tried this last night, changing the margin to 52 (didn't move), and then to 62 (notice some movement). Was going to try 72 but then it was already midnight. Had to get some rest.
Is that on custom dpi or default dpi? It works on default dpi which is 240 for S2 but in custom dpi like 200 i don't see any visual changes.
Sent from my GT-I9100 using xda premium
isn't changing the layout a way better method?
frameworks / base / core / res / res /layout / keyguard_screen_tab_unlock.xml
(for the decompile guys / res /layout / keyguard_screen_tab_unlock.xml)
i did not test this btw but i think this is much cleaner then changing the margin
Code:<GridLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent" android:id="@+id/root" android:gravity="center_horizontal"> <com.android.internal.widget.DigitalClock android:id="@+id/time" android:layout_marginTop="@dimen/keyguard_lockscreen_status_line_clockfont_top_margin" android:layout_marginBottom="12dip" - android:layout_marginRight="@dimen/keyguard_lockscreen_status_line_font_right_margin" - android:layout_gravity="right"> + android:layout_gravity="center"> <!-- Because we can't have multi-tone fonts, we render two TextViews, one on top of the other. Hence the redundant layout... --> <TextView android:id="@+id/timeDisplayBackground" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:ellipsize="none" android:textSize="@dimen/keyguard_lockscreen_clock_font_size" android:textAppearance="?android:attr/textAppearanceMedium" android:layout_marginBottom="6dip" android:textColor="@color/lockscreen_clock_background" /> <TextView android:id="@+id/timeDisplayForeground" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:ellipsize="none" android:textSize="@dimen/keyguard_lockscreen_clock_font_size" android:textAppearance="?android:attr/textAppearanceMedium" android:layout_marginBottom="6dip" android:textColor="@color/lockscreen_clock_foreground" android:layout_alignLeft="@id/timeDisplayBackground" android:layout_alignTop="@id/timeDisplayBackground" /> </com.android.internal.widget.DigitalClock> <LinearLayout android:orientation="horizontal" - android:layout_gravity="right" - android:layout_marginRight="@dimen/keyguard_lockscreen_status_line_font_right_margin"> + android:layout_gravity="center"> <TextView android:id="@+id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:ellipsize="marquee" android:textAppearance="?android:attr/textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" /> <TextView android:id="@+id/alarm_status" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="16dip" android:singleLine="true" android:ellipsize="marquee" android:textAppearance="?android:attr/textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" android:drawablePadding="4dip" /> </LinearLayout> <TextView android:id="@+id/status1" - android:layout_gravity="right" + android:layout_gravity="center" - android:layout_marginRight="@dimen/keyguard_lockscreen_status_line_font_right_margin" android:singleLine="true" android:ellipsize="marquee" android:textAppearance="?android:attr/textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" android:drawablePadding="4dip" />
What exactly did U changed in this .xml?Oh yeah, much better! Thank you!
DarkJelly Gnex on JellyBro sent this from the app.
Oh yeah, much better! Thank you!
DarkJelly Gnex on JellyBro sent this from the app.
Does this even work? I tried it on my HOX and it didnt changed anything. It was set to 66.0 running at 260dpi. I decompiled and compiled with no problem.
Yeah...but unlock is off centered on lowered dpi.Try owain94's method from 2 Page back. It will work even on custom dpi.
Sent from my GT-I9100 using xda premium
This will work on hdpi devices....but not on xhdpi. When U try your method on xhdpi the unlock ring is off centered on standard dpi (320) because on lowered dpi on a xhdpi device, rom is trying to use hdpi drawable...but there are none of these file. So U have to grabb these files from a hdpi rom and place these in framework from your xhdpi rom.I've written a guide on how to fix that issue for S2 but it may work with other devices too. Link
This will work on hdpi devices....but not on xhdpi. When U try your method on xhdpi the unlock ring is off centered on standard dpi (320) because on lowered dpi on a xhdpi device, rom is trying to use hdpi drawable...but there are none of these file. So U have to grabb these files from a hdpi rom and place these in framework from your xhdpi rom.
Further U have to edit also dimens.xml and then it is working on all dpi on a xhdpi device.
<dimen name="keyguard_lockscreen_clock_font_size">80.0dip</dimen>
<dimen name="keyguard_lockscreen_status_line_font_size">14.0dip</dimen>
<dimen name="keyguard_lockscreen_status_line_font_right_margin">42.0dip</dimen><dimen name="keyguard_lockscreen_status_line_clockfont_top_margin">22.0dip</dimen>
<dimen name="keyguard_lockscreen_status_line_clockfont_bottom_margin">12.0dip</dimen>
<dimen name="keyguard_lockscreen_pin_margin_left">40.0dip</dimen>
<dimen name="keyguard_lockscreen_status_line_font_right_margin">[B]52.0dip[/B]</dimen>
<dimen name="keyguard_lockscreen_clock_font_size">[B]85.0dip[/B]</dimen>
<GridLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/root"
android:gravity="center_horizontal">
<com.android.internal.widget.DigitalClock android:id="@+id/time"
android:layout_marginTop="@dimen/keyguard_lockscreen_status_line_clockfont_top_margin"
android:layout_marginBottom="12dip"
- android:layout_marginRight="@dimen/keyguard_lockscreen_status_line_font_right_margin"
- android:layout_gravity="right">
+ android:layout_gravity="center">
<!-- Because we can't have multi-tone fonts, we render two TextViews, one on
top of the other. Hence the redundant layout... -->
<TextView android:id="@+id/timeDisplayBackground"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:singleLine="true"
android:ellipsize="none"
android:textSize="@dimen/keyguard_lockscreen_clock_font_size"
android:textAppearance="?android:attr/textAppearanceMedium"
android:layout_marginBottom="6dip"
android:textColor="@color/lockscreen_clock_background"
/>
<TextView android:id="@+id/timeDisplayForeground"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:singleLine="true"
android:ellipsize="none"
android:textSize="@dimen/keyguard_lockscreen_clock_font_size"
android:textAppearance="?android:attr/textAppearanceMedium"
android:layout_marginBottom="6dip"
android:textColor="@color/lockscreen_clock_foreground"
android:layout_alignLeft="@id/timeDisplayBackground"
android:layout_alignTop="@id/timeDisplayBackground"
/>
</com.android.internal.widget.DigitalClock>
<LinearLayout
android:orientation="horizontal"
- android:layout_gravity="right"
- android:layout_marginRight="@dimen/keyguard_lockscreen_status_line_font_right_margin">
+ android:layout_gravity="center">
<TextView
android:id="@+id/date"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:singleLine="true"
android:ellipsize="marquee"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textSize="@dimen/keyguard_lockscreen_status_line_font_size"
/>
<TextView
android:id="@+id/alarm_status"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="16dip"
android:singleLine="true"
android:ellipsize="marquee"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textSize="@dimen/keyguard_lockscreen_status_line_font_size"
android:drawablePadding="4dip"
/>
</LinearLayout>
<TextView
android:id="@+id/status1"
- android:layout_gravity="right"
+ android:layout_gravity="center"
- android:layout_marginRight="@dimen/keyguard_lockscreen_status_line_font_right_margin"
android:singleLine="true"
android:ellipsize="marquee"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textSize="@dimen/keyguard_lockscreen_status_line_font_size"
android:drawablePadding="4dip"
/>
Hi,
I tried and got the same error as Magnumutz.
Copied framework-res.apk on PC, decomplied, opened (with notepad++) dimen.xml from \res\values folder, modified the values.
Now I'm not able to compile, since the error occurs.
Tried many version of apktool.
Can anyone help me to sort this......?
Hi,
I tried and got the same error as Magnumutz.
Copied framework-res.apk on PC, decomplied, opened (with notepad++) dimen.xml from \res\values folder, modified the values.
Now I'm not able to compile, since the error occurs.
Tried many version of apktool.
Can anyone help me to sort this......?