Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Thread Deleted

[Q] Centering lockscreen and calling ring after DPI increase

OP virusalone

Prev Previous Post   Next Post Next
16th February 2014, 07:36 PM   |  #1  
virusalone's Avatar
OP Member
Flag Red City
Thanks Meter: 10
 
36 posts
Join Date:Joined: Nov 2012
More
Hi guys!
Can anyone help me with this trouble?
I am running the (blur) Eclipse rom on my xt926. After setting DPI to 220 my lockscreen ring looks like in the screenshot.

Try to find any tutorial but can't find something useful. But I can find what file to correct. http://forum.xda-developers.com/show....php?t=1848475
Here is the original keyguard_screen_tab_unlock.xml file code. (I have found that this file must be corrected.)
Code:
<?xml version="1.0" encoding="utf-8"?>
<GridLayout android:gravity="center_horizontal" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"
  xmlns:android="http://schemas.android.com/apk/res/android">
    <RelativeLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="@dimen/keyguard_lockscreen_status_line_clockfont_top_margin">
        <include android:layout_alignParentBottom="true" layout="@layout/zz_moto_sound_toggle" />
        <com.android.internal.widget.DigitalClock android:id="@id/time" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="@dimen/zz_moto_keyguard_lockscreen_status_line_font_right_margin" android:layout_marginBottom="12.0dip" android:layout_alignParentRight="true">
            <TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_clock_font_size" android:textColor="@color/lockscreen_clock_background" android:ellipsize="none" android:id="@id/timeDisplayBackground" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="6.0dip" android:singleLine="true" />
            <TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_clock_font_size" android:textColor="@color/lockscreen_clock_foreground" android:ellipsize="none" android:id="@id/timeDisplayForeground" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="6.0dip" android:singleLine="true" android:layout_alignLeft="@id/timeDisplayBackground" android:layout_alignTop="@id/timeDisplayBackground" />
        </com.android.internal.widget.DigitalClock>
    </RelativeLayout>
    <LinearLayout android:layout_gravity="right" android:orientation="horizontal" android:layout_marginRight="@dimen/zz_moto_keyguard_lockscreen_status_line_font_right_margin">
        <TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" android:ellipsize="marquee" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" />
        <TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" android:ellipsize="marquee" android:id="@id/alarm_status" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="16.0dip" android:singleLine="true" android:drawablePadding="4.0dip" />
    </LinearLayout>
    <TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" android:ellipsize="marquee" android:layout_gravity="right" android:id="@id/status1" android:layout_marginRight="@dimen/zz_moto_keyguard_lockscreen_status_line_font_right_margin" android:singleLine="true" android:drawablePadding="4.0dip" />
    <Space android:layout_gravity="fill" />
    <Button android:layout_gravity="right" android:id="@id/emergencyCallButton" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="4.0dip" android:layout_marginRight="16.0dip" android:text="@string/lockscreen_emergency_call" android:drawableLeft="@drawable/lockscreen_emergency_button" android:drawablePadding="4.0dip" style="?android:attr/buttonBarButtonStyle" />
    <LinearLayout android:gravity="center" android:orientation="horizontal" android:layout_width="fill_parent" android:weightSum="2.0" style="?android:attr/buttonBarStyle">
        <Button android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" android:layout_gravity="center_horizontal" android:id="@id/emergencyCallButton" android:visibility="gone" android:layout_width="0.0dip" android:layout_height="wrap_content" android:text="@string/lockscreen_emergency_call" android:drawableLeft="@drawable/lockscreen_emergency_button" android:drawablePadding="0.0dip" android:layout_weight="1.0" style="?android:attr/buttonBarButtonStyle" />
    </LinearLayout>
    <include android:layout_gravity="fill" android:id="@id/transport" android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_column="0" android:layout_row="0" android:layout_rowSpan="4" android:layout_columnSpan="1" layout="@layout/keyguard_transport_control" />
    <RelativeLayout android:layout_width="fill_parent" android:layout_height="390.0dip">
        <include android:gravity="center" android:layout_width="fill_parent" android:layout_height="400.0dip" layout="@layout/zz_moto_keyguard_unlock_widget" />
        <TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" android:textColor="?textColorSecondary" android:ellipsize="marquee" android:gravity="center_horizontal" android:id="@id/carrier" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="12.0dip" android:singleLine="true" android:layout_alignParentBottom="true" />
    </RelativeLayout>
</GridLayout>
And code of incall_touch_ui.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.phone.InCallTouchUi android:layout_width="fill_parent" android:layout_height="fill_parent"
  xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:prvandroid="http://schemas.android.com/apk/prv/res/android">
    <RelativeLayout android:id="@id/inCallControls" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="fill_parent">
        <ViewStub android:id="@id/dtmf_twelve_key_dialer_stub" android:layout="@layout/dtmf_twelve_key_dialer_view" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginBottom="@dimen/dialpad_vertical_margin" android:layout_above="@id/bottomButtons" />
        <LinearLayout android:orientation="vertical" android:id="@id/bottomButtons" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignParentBottom="true">
            <FrameLayout android:id="@id/extraButtonRow" android:background="@color/incall_button_extrarow_background" android:paddingLeft="@dimen/button_cluster_side_padding" android:paddingRight="@dimen/button_cluster_side_padding" android:layout_width="fill_parent" android:layout_height="wrap_content">
                <LinearLayout android:orientation="horizontal" android:id="@id/manageConferenceButton" android:background="?android:selectableItemBackground" android:layout_width="fill_parent" android:layout_height="wrap_content">
                    <ImageButton android:id="@id/manageConferenceButtonImage" android:clickable="false" android:src="@drawable/ic_groups_holo_dark" android:contentDescription="@string/onscreenManageConferenceText" style="@style/InCallExtraRowButton" />
                    <TextView android:id="@id/manageConferenceButtonLabel" android:text="@string/onscreenManageConferenceText" style="@style/InCallExtraRowButtonLabel" />
                </LinearLayout>
                <LinearLayout android:orientation="horizontal" android:id="@id/cdmaMergeButton" android:background="?android:selectableItemBackground" android:layout_width="fill_parent" android:layout_height="wrap_content">
                    <ImageButton android:id="@id/cdmaMergeButtonImage" android:clickable="false" android:src="@drawable/ic_merge" android:contentDescription="@string/onscreenMergeCallsText" style="@style/InCallExtraRowButton" />
                    <TextView android:id="@id/cdmaMergeButtonLabel" android:text="@string/onscreenMergeCallsText" style="@style/InCallExtraRowButtonLabel" />
                </LinearLayout>
                <LinearLayout android:orientation="horizontal" android:id="@id/cdmaSwapButton" android:background="?android:selectableItemBackground" android:layout_width="fill_parent" android:layout_height="wrap_content">
                    <ImageButton android:id="@id/cdmaSwapButtonImage" android:clickable="false" android:src="@drawable/ic_incall_switch" android:contentDescription="@string/onscreenSwapCallsText" style="@style/InCallExtraRowButton" />
                    <TextView android:id="@id/cdmaSwapButtonLabel" android:text="@string/onscreenSwapCallsText" style="@style/InCallExtraRowButtonLabel" />
                </LinearLayout>
            </FrameLayout>
            <ImageButton android:id="@id/endButton" android:background="@drawable/end_call_background" android:layout_width="fill_parent" android:src="@drawable/ic_dial_end_call" android:contentDescription="@string/onscreenEndCallText" style="@style/InCallEndButton" />
            <LinearLayout android:orientation="horizontal" android:background="@drawable/dialpad_background" android:paddingLeft="@dimen/button_cluster_side_padding" android:paddingRight="@dimen/button_cluster_side_padding" android:layout_width="fill_parent" android:layout_height="wrap_content">
                <View style="@style/VerticalSeparator" />
                <com.android.phone.AlphaToggleButton android:id="@id/dialpadButton" android:background="@drawable/btn_compound_background" android:textOn="@string/onscreenShowDialpadText" android:textOff="@string/onscreenShowDialpadText" android:drawableTop="@drawable/ic_dialpad" android:layout_weight="1.0" android:contentDescription="@string/onscreenShowDialpadText" style="@style/InCallCompoundButton" />
                <View style="@style/VerticalSeparator" />
                <ToggleButton android:id="@id/audioButton" android:background="@drawable/btn_compound_background" android:textOn="@string/onscreenSpeakerText" android:textOff="@string/onscreenSpeakerText" android:drawableTop="@drawable/btn_compound_audio" android:layout_weight="1.0" android:contentDescription="@string/onscreenAudioText" style="@style/InCallCompoundButton" />
                <View style="@style/VerticalSeparator" />
                <com.android.phone.AlphaToggleButton android:id="@id/muteButton" android:background="@drawable/btn_compound_background" android:textOn="@string/onscreenMuteText" android:textOff="@string/onscreenMuteText" android:drawableTop="@drawable/ic_mute_holo_dark" android:layout_weight="1.0" android:contentDescription="@string/onscreenMuteText" style="@style/InCallCompoundButton" />
                <View style="@style/VerticalSeparator" />
                <com.android.phone.AlphaButton android:id="@id/addButton" android:text="@string/onscreenAddCallText" android:drawableTop="@drawable/ic_add_contact_holo_dark" android:layout_weight="1.0" android:contentDescription="@string/onscreenAddCallText" style="@style/InCallAlphaButton" />
                <com.android.phone.AlphaButton android:id="@id/umtsMergeButton" android:text="@string/onscreenMergeButtonShortText" android:drawableTop="@drawable/ic_merge" android:layout_weight="1.0" android:contentDescription="@string/onscreenMergeButtonShortText" style="@style/InCallAlphaButton" />
                <com.android.phone.AlphaToggleButton android:id="@id/holdButton" android:background="@drawable/btn_compound_background" android:textOn="@string/onscreenHoldShortText" android:textOff="@string/onscreenHoldShortText" android:drawableTop="@drawable/ic_hold_pause_holo_dark" android:layout_weight="1.0" android:contentDescription="@string/onscreenHoldShortText" style="@style/InCallCompoundButton" />
                <com.android.phone.AlphaButton android:id="@id/umtsSwapButton" android:text="@string/onscreenSwapCallsShortText" android:drawableTop="@drawable/ic_incall_switch" android:layout_weight="1.0" android:contentDescription="@string/onscreenSwapCallsShortText" style="@style/InCallAlphaButton" />
                <com.android.phone.AlphaButton android:id="@id/overflowButton" android:text="@string/onscreenOverflowText" android:drawableTop="@drawable/ic_menu_overflow" android:layout_weight="1.0" android:contentDescription="@*android:string/data_usage_3g_limit_title" style="@style/InCallAlphaButton" />
                <View style="@style/VerticalSeparator" />
            </LinearLayout>
        </LinearLayout>
    </RelativeLayout>
    <LinearLayout android:layout_gravity="bottom|center" android:id="@id/incomingCallHolder" android:background="@*android:color/transparent" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="wrap_content">
        <include layout="@layout/moto_incoming_lockscreen" />
    </LinearLayout>
</com.android.phone.InCallTouchUi>
Which parameter I need to correct to center the rings?
Thank you in advance.
Attached Thumbnails
Click image for larger version

Name:	Screenshot_2014-02-16-22-18-02.jpg
Views:	317
Size:	152.4 KB
ID:	2583005  
Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes