[RAZR i Themes and Apps] Shinobu-Kenji:
hello guys, I know this it's an old thread but I'm trying to re-write all the code for the lockscreen in JB.Retail.UK (the Compilation 29) but seems that i fail in something 'cause i've a grey-rare-line on the notifications bar. Here's the image

View attachment 2734807

The second "problem" that i've is the center alignment of the clock, i change some lines from sources code, but it's fail when i'm trying to compile

<?xml version="1.0" encoding="utf-8"?>
<!--
**
** Copyright 2009, The Android Open Source Project
**
** Licensed under the Apache License, Version 2.0 (the "License")
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** distributed under the License is distributed on an "AS IS" BASIS,
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
** See the License for the specific language governing permissions and
** limitations under the License.
*/
-->

<!-- This is the general lock screen which shows information about the
state of the device, as well as instructions on how to get past it
depending on the state of the device. It is the same for landscape
and portrait.-->
<GridLayout
xmlns:android="schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:gravity="center_horizontal">

<!-- Android source doesn't have this lines, and I don't know about code writing,
so I keep like motorola with some changes. OshinoKenji -->
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="80.0dip"
android:layout_marginRight="@dimen/secured_lockscreen_status_side_margin"
android:layout_marginBottom="20.0dip">

<com.android.internal.widget.DigitalClock
android:id="@id/time"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/secured_lockscreen_status_side_margin"
android:layout_marginRight="@dimen/zz_moto_keyguard_lockscreen_status_line_font_right_margin"
android:layout_alignParentLeft="true">

<TextView
android:textAppearance="?textAppearanceMedium"
android:textSize="@dimen/keyguard_lockscreen_clock_font_size"
android:textColor="@color/lockscreen_clock_background"
android:ellipsize="none"
android:gravity="center_vertical"
android:id="@id/timeDisplayBackground"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
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:singleLine="true"
android:layout_alignLeft="@id/timeDisplayBackground"
android:layout_alignTop="@id/timeDisplayBackground" />

</com.android.internal.widget.DigitalClock>
</RelativeLayout>

<!-- the next code lines are about date and clock alarm... i believe -->
<LinearLayout
android:orientation="horizontal"
android:layout_gravity="right"
android:layout_marginRight="@dimen/keyguard_lockscreen_status_line_font_right_margin">

<TextView
android:id="@+id/date"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:singleLine="true"
android:ellipsize="marquee"
android:textAppearance="?textAppearanceMedium"
android:textSize="@dimen/keyguard_lockscreen_status_line_font_size"
/>
<RelativeLayout
android:layout_gravity="center_vertical"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1.0">

<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="?textAppearanceMedium"
android:textSize="@dimen/keyguard_lockscreen_status_line_font_size"
android:drawablePadding="4dip"
/>
</RelativeLayout>
</LinearLayout>

<!-- next line is about "status" -->
<TextView
android:id="@+id/status1"
android:layout_gravity="right"
android:layout_marginRight="@dimen/keyguard_lockscreen_status_line_font_right_margin"
android:singleLine="true"
android:ellipsize="marquee"
android:textAppearance="?textAppearanceMedium"
android:textSize="@dimen/keyguard_lockscreen_status_line_font_size"
android:drawablePadding="4dip"
/>

<!-- Music transport control -->
<include
android:id="@+id/transport"
layout="@layout/keyguard_transport_control"
android:layout_row="0"
android:layout_column="0"
android:layout_rowSpan="4"
android:layout_columnSpan="1"
android:layout_gravity="fill"
android:layout_height="80.0dip"
android:layout_width="fill_parent"
android:layout_marginLeft="@dimen/secured_lockscreen_status_side_margin"
android:layout_marginTop="6.0dip"
android:layout_marginRight="@dimen/secured_lockscreen_status_side_margin"
/>

<!-- ID Carrier on Lockscreen -->
<RelativeLayout
android:layout_gravity="bottom"
android:layout_width="fill_parent"
android:layout_height="380.0dip"
android:layout_row="4">

<LinearLayout
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true">

<TextView
android:textAppearance="?textAppearanceMedium"
android:textSize="@dimen/moto_keyguard_lockscreen_statusview_textsize"
android:textStyle="bold"
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_marginTop="32.0dip"
android:layout_marginBottom="6.0dip"
android:singleLine="true" />
</LinearLayout>

<!-- Android AOSP Circle Lockscreen -->
<FrameLayout
android:gravity="bottom"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="370.0dip">

<com.android.internal.widget.multiwaveview.GlowPadView
android:gravity="top"
android:layout_gravity="center_horizontal"
android:orientation="horizontal"
android:id="@id/unlock_widget"
android:focusable="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:innerRadius="@dimen/glowpadview_inner_radius"
android:targetDescriptions="@array/lockscreen_target_descriptions_with_camera"
android:directionDescriptions="@array/lockscreen_direction_descriptions"
android:outerRingDrawable="@drawable/ic_lockscreen_outerring"
android:pointDrawable="@drawable/ic_lockscreen_glowdot"
android:glowRadius="@dimen/glowpadview_glow_radius"
android:targetDrawables="@array/lockscreen_targets_with_camera"
android:handleDrawable="@drawable/ic_lockscreen_handle"
android:outerRadius="@dimen/glowpadview_target_placement_radius"
android:vibrationDuration="20"
android:snapMargin="@dimen/glowpadview_snap_margin"
android:feedbackCount="1" />
</FrameLayout>
</RelativeLayout>
</GridLayout>

can anyone help me with this? Thks