G Flex 2 - Glance Feature - G3 Developer Discussion [Developers Only]

So I just watched a Youtube Video reviewing the G-Flex2. So far an average phone compared to G3 but sports the Snapdragon 810... Also noted is apparently the throttling is crazy and heat a major issue.
But to the point. It has a Quick Glance Feature. When screen was off and you swiped from top you got a quick glance of time etc. A neat feature that i'm thinking should be fairly easy to port.
Anyone else interested?

Sounds great! I'd love such a feature, it could be like an alternative to the quickcircle !
+1

Yes, I wanted to post this when I saw the glance feature and hoped somebody ported it.

+1 awesome feature ,would love to have this in my g3

Yeah, this would be one more of those little things that makes the G3 the best phone I've owned!
+1 from me

We have some pretty clever people here. Maybe someone can get into it and port it over

I just compared the lg_glance_view_layout.xml (xxxhdpi/layout) from the Flex2 system and the G3 20H SystemUI
Interestingly, the glance_view_layout.xml is already there in the 20H SystemUi but with limited content
since there are many new id-s smali code editing might be also required, this is something I cannot do
The differencies:
--- C:\Users\L\Documents\Virtuous Ten Studio\Projects\ChupaChups4\LGSystemUI CC4\Data\res\layout\lg_glance_view_layout.xml 2015-02-06 18:50:14.796000000 +0100
+++ C:\Users\L\Documents\Virtuous Ten Studio\Projects\Flex2\LGSystemUI\Data\res\layout\lg_glance_view_layout.xml 2015-03-22 21:38:43.462000000 +0100
@@ -1,18 +1,60 @@
Code:
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout android:gravity="center|top" android:orientation="vertical" android:id="@id/glance_view_wall_container" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
- <LinearLayout android:orientation="vertical" android:id="@id/glance_view_touch" android:layout_width="fill_parent" android:layout_height="fill_parent">
+ <LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
+ <FrameLayout android:gravity="center|top" android:layout_width="fill_parent" android:layout_height="@dimen/glanceview_clock_bg_height">
+ <View android:background="@drawable/lg_glance_background" android:layout_width="fill_parent" android:layout_height="fill_parent" />
+ <View android:id="@id/glance_view_glow" android:background="@drawable/lg_glance_glow" android:layout_width="fill_parent" android:layout_height="fill_parent" />
+ </FrameLayout>
+ <View android:layout_gravity="bottom" android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0" />
+ </LinearLayout>
+ <LinearLayout android:orientation="vertical" android:id="@id/glance_view_touch" android:layout_width="fill_parent" android:layout_height="wrap_content">
<View android:background="#00000000" android:layout_width="fill_parent" android:layout_height="@dimen/status_bar_height" />
- <LinearLayout android:gravity="center_horizontal" android:orientation="vertical" android:background="#ff000000" android:paddingTop="25.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent">
- <com.lge.lockscreen.widget.ClockView android:id="@id/glance_view_clock" android:layout_width="fill_parent" android:layout_height="wrap_content">
- <TextView android:textSize="@dimen/digital_ampm_font_size" android:textColor="#ffffffff" android:ellipsize="none" android:id="@id/am_pm_l" android:paddingTop="@dimen/digital_ampm_padding_top" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignTop="@id/lge_clock_text" android:layout_toStartOf="@id/lge_clock_text" />
- <TextView android:textSize="@dimen/digital_clock_font_size" android:textColor="#ffffffff" android:ellipsize="none" android:id="@id/lge_clock_text" android:paddingTop="@dimen/digital_clock_padding_top" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:layout_centerInParent="true" android:paddingStart="3.0dip" android:paddingEnd="3.0dip" />
- <TextView android:textSize="@dimen/digital_ampm_font_size" android:textColor="#ffffffff" android:ellipsize="none" android:id="@id/am_pm" android:paddingTop="@dimen/digital_ampm_padding_top" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignTop="@id/lge_clock_text" android:layout_toEndOf="@id/lge_clock_text" />
- </com.lge.lockscreen.widget.ClockView>
- <com.lge.lockscreen.widget.DateView android:gravity="center_horizontal" android:layout_gravity="center_horizontal" android:orientation="vertical" android:id="@id/lge_date_view" android:layout_width="wrap_content" android:layout_height="wrap_content">
- <TextView android:textSize="@dimen/digital_ampm_font_size" android:textColor="#ffffffff" android:layout_gravity="center_horizontal" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:layout_centerInParent="true" />
- </com.lge.lockscreen.widget.DateView>
- </LinearLayout>
- </LinearLayout>
- <View android:id="@id/glance_view_wall" android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="fill_parent" />
-</FrameLayout>
\ No newline at end of file
+ <FrameLayout android:layout_width="fill_parent" android:layout_height="fill_parent">
+ <com.lge.systemui.widget.LgeGlanceClockWidgetView android:gravity="center_horizontal" android:orientation="vertical" android:id="@id/glance_view_default_clock" android:background="#00000000" android:paddingTop="25.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content">
+ <com.lge.systemui.widget.LgeGlanceClockView android:id="@id/glance_view_clock" android:layout_width="fill_parent" android:layout_height="wrap_content">
+ <TextView android:textSize="@dimen/glance_digital_ampm_font_size" android:textColor="#ff000000" android:ellipsize="none" android:id="@id/am_pm_l" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignTop="@id/lge_clock_text" android:layout_toStartOf="@id/lge_clock_text" />
+ <TextView android:textSize="@dimen/glance_digital_clock_font_size" android:textColor="#ff000000" android:ellipsize="none" android:id="@id/lge_clock_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:layout_centerInParent="true" android:paddingStart="4.0dip" android:paddingEnd="3.0dip" />
+ <TextView android:textSize="@dimen/glance_digital_ampm_font_size" android:textColor="#ff000000" android:ellipsize="none" android:id="@id/am_pm" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignTop="@id/lge_clock_text" android:layout_toEndOf="@id/lge_clock_text" />
+ </com.lge.systemui.widget.LgeGlanceClockView>
+ <com.lge.systemui.widget.LgeGlanceDateView android:gravity="center_horizontal" android:layout_gravity="center_horizontal" android:orientation="vertical" android:id="@id/lge_date_view" android:layout_width="wrap_content" android:layout_height="wrap_content">
+ <TextView android:textSize="@dimen/glance_digital_ampm_font_size" android:textColor="#ff000000" android:layout_gravity="center_horizontal" android:id="@id/date" android:paddingTop="8.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:layout_centerInParent="true" />
+ </com.lge.systemui.widget.LgeGlanceDateView>
+ </com.lge.systemui.widget.LgeGlanceClockWidgetView>
+ <com.lge.systemui.widget.LgeGlanceClockWidgetView android:gravity="center_horizontal" android:orientation="horizontal" android:id="@id/glance_view_dual_clock" android:background="#00000000" android:paddingTop="15.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent">
+ <LinearLayout android:orientation="vertical" android:clickable="true" android:layout_width="@dimen/dual_clock_width" android:layout_height="wrap_content" android:layout_weight="1.0" android:layout_marginStart="@dimen/dual_clock_margin_start" android:layout_marginEnd="@dimen/dual_clock_spacing">
+ <com.lge.systemui.widget.LgeGlanceCityView android:id="@id/lge_city_view" android:layout_width="wrap_content" android:layout_height="wrap_content">
+ <TextView android:textSize="@dimen/dual_city_font_size" android:textStyle="bold" android:textColor="#ff000000" android:gravity="top" android:layout_gravity="start" android:id="@id/local_location" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/sp_local_location_NORMAL" android:singleLine="true" />
+ </com.lge.systemui.widget.LgeGlanceCityView>
+ <ImageView android:id="@id/local_location_line" android:background="@drawable/lockscreen_dualclock_line_black" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="2.0dip" />
+ <com.lge.systemui.widget.LgeGlanceClockView android:gravity="bottom" android:layout_gravity="start" android:id="@id/glance_view_dual_local_clock" android:paddingTop="2.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content">
+ <TextView android:textSize="@dimen/dual_ampm_font_size" android:textColor="#ff000000" android:id="@id/am_pm_l" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:layout_alignTop="@id/lge_clock_text" />
+ <TextView android:textSize="@dimen/dual_clock_font_size" android:textColor="#ff000000" android:ellipsize="none" android:id="@id/lge_clock_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:paddingStart="2.0dip" android:paddingEnd="2.0dip" android:layout_toEndOf="@id/am_pm_l" />
+ <TextView android:textSize="@dimen/dual_ampm_font_size" android:textColor="#ff000000" android:id="@id/am_pm" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:layout_alignTop="@id/lge_clock_text" android:layout_toEndOf="@id/lge_clock_text" />
+ </com.lge.systemui.widget.LgeGlanceClockView>
+ <com.lge.systemui.widget.LgeGlanceDateView android:layout_gravity="start" android:orientation="vertical" android:id="@id/lge_date_view" android:layout_width="wrap_content" android:layout_height="wrap_content">
+ <TextView android:textSize="@dimen/dual_date_font_size" android:textColor="#ff000000" android:layout_gravity="start" android:id="@id/local_date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="@dimen/dual_clock_date_margin_start" />
+ </com.lge.systemui.widget.LgeGlanceDateView>
+ </LinearLayout>
+ <LinearLayout android:orientation="vertical" android:clickable="true" android:layout_width="@dimen/dual_clock_width" android:layout_height="wrap_content" android:layout_weight="1.0" android:layout_marginEnd="@dimen/dual_clock_margin_end">
+ <com.lge.systemui.widget.LgeGlanceCityView android:id="@id/lge_default_city_view" android:layout_width="wrap_content" android:layout_height="wrap_content">
+ <TextView android:textSize="@dimen/dual_city_font_size" android:textStyle="bold" android:textColor="#ff000000" android:gravity="top" android:layout_gravity="start" android:id="@id/default_city_location" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/sp_korea_location_NORMAL" />
+ </com.lge.systemui.widget.LgeGlanceCityView>
+ <ImageView android:id="@id/default_city_location_line" android:background="@drawable/lockscreen_dualclock_line_black" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="2.0dip" />
+ <com.lge.systemui.widget.LgeGlanceDefaultCityClockView android:gravity="bottom" android:layout_gravity="start" android:id="@id/glance_view_city_clock_view" android:paddingTop="2.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content">
+ <TextView android:textSize="@dimen/dual_ampm_font_size" android:textColor="#ff000000" android:id="@id/am_pm_l" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:layout_alignTop="@id/lge_clock_text" />
+ <TextView android:textSize="@dimen/dual_clock_font_size" android:textColor="#ff000000" android:ellipsize="none" android:id="@id/lge_clock_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:paddingStart="2.0dip" android:paddingEnd="2.0dip" android:layout_toEndOf="@id/am_pm_l" />
+ <TextView android:textSize="@dimen/dual_ampm_font_size" android:textColor="#ff000000" android:id="@id/am_pm" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:layout_alignTop="@id/lge_clock_text" android:layout_toEndOf="@id/lge_clock_text" />
+ </com.lge.systemui.widget.LgeGlanceDefaultCityClockView>
+ <com.lge.systemui.widget.LgeGlanceDateView android:layout_gravity="start" android:orientation="vertical" android:id="@id/lge_default_city_date_view" android:layout_width="wrap_content" android:layout_height="wrap_content">
+ <TextView android:textSize="@dimen/dual_date_font_size" android:textColor="#ff000000" android:layout_gravity="start" android:id="@id/korea_date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="@dimen/dual_clock_date_margin_start" />
+ </com.lge.systemui.widget.LgeGlanceDateView>
+ </LinearLayout>
+ </com.lge.systemui.widget.LgeGlanceClockWidgetView>
+ </FrameLayout>
+ </LinearLayout>
+ <FrameLayout android:id="@id/glance_view_wall" android:layout_width="fill_parent" android:layout_height="@dimen/glanceview_effect_wall_height">
+ <FrameLayout android:id="@id/glance_view_wall_animation" android:background="@drawable/glance_wall_animation" android:layout_width="fill_parent" android:layout_height="fill_parent" />
+ <View android:id="@id/glance_view_wall_shade" android:background="@drawable/sunshine_bg" android:layout_width="fill_parent" android:layout_height="fill_parent" />
+ </FrameLayout>
+</FrameLayout>
\ No newline at end of file

Kickoff said:
I just compared the lg_glance_view_layout.xml (xxxhdpi/layout) from the Flex2 system and the G3 20H SystemUI
Interestingly, the glance_view_layout.xml is already there in the 20H SystemUi but with limited content
since there are many new id-s smali code editing might be also required, this is something I cannot do
Click to expand...
Click to collapse
Hey @Kickoff great to see you here. Thanks for digging in and taking a look. Interesting that its visible on the G3 but just not populated the same. You think anyone currently theming on the G3 like yourself would be able to master the port?
Judging by the reaction a few people are keen.
Did you watch the video on youtube? I like the feature a lot.

Anybody knows if G3's hardware can actually report any events other than taps when screen is off?..

Maybe bring this thread over to the developers only section and lets work on it jointly.

Kickoff said:
Maybe bring this thread over to the developers only section and lets work on it jointly.
Click to expand...
Click to collapse
I put in the request to move.

Kickoff said:
Maybe bring this thread over to the developers only section and lets work on it jointly.
Click to expand...
Click to collapse
No real need yet. We need to find out what touchscreen controller Flex 2 is using. If it's the same as in G3 (Synaptics 93528A), then the feature is most likely portable. If not, chances are slim.

Kickoff said:
I just compared the lg_glance_view_layout.xml (xxxhdpi/layout) from the Flex2 system and the G3 20H SystemUI
Interestingly, the glance_view_layout.xml is already there in the 20H SystemUi but with limited content
since there are many new id-s smali code editing might be also required, this is something I cannot do
The differencies:
--- C:\Users\L\Documents\Virtuous Ten Studio\Projects\ChupaChups4\LGSystemUI CC4\Data\res\layout\lg_glance_view_layout.xml 2015-02-06 18:50:14.796000000 +0100
+++ C:\Users\L\Documents\Virtuous Ten Studio\Projects\Flex2\LGSystemUI\Data\res\layout\lg_glance_view_layout.xml 2015-03-22 21:38:43.462000000 +0100
@@ -1,18 +1,60 @@
Code:
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout android:gravity="center|top" android:orientation="vertical" android:id="@id/glance_view_wall_container" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
- <LinearLayout android:orientation="vertical" android:id="@id/glance_view_touch" android:layout_width="fill_parent" android:layout_height="fill_parent">
+ <LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
+ <FrameLayout android:gravity="center|top" android:layout_width="fill_parent" android:layout_height="@dimen/glanceview_clock_bg_height">
+ <View android:background="@drawable/lg_glance_background" android:layout_width="fill_parent" android:layout_height="fill_parent" />
+ <View android:id="@id/glance_view_glow" android:background="@drawable/lg_glance_glow" android:layout_width="fill_parent" android:layout_height="fill_parent" />
+ </FrameLayout>
+ <View android:layout_gravity="bottom" android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0" />
+ </LinearLayout>
+ <LinearLayout android:orientation="vertical" android:id="@id/glance_view_touch" android:layout_width="fill_parent" android:layout_height="wrap_content">
<View android:background="#00000000" android:layout_width="fill_parent" android:layout_height="@dimen/status_bar_height" />
- <LinearLayout android:gravity="center_horizontal" android:orientation="vertical" android:background="#ff000000" android:paddingTop="25.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent">
- <com.lge.lockscreen.widget.ClockView android:id="@id/glance_view_clock" android:layout_width="fill_parent" android:layout_height="wrap_content">
- <TextView android:textSize="@dimen/digital_ampm_font_size" android:textColor="#ffffffff" android:ellipsize="none" android:id="@id/am_pm_l" android:paddingTop="@dimen/digital_ampm_padding_top" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignTop="@id/lge_clock_text" android:layout_toStartOf="@id/lge_clock_text" />
- <TextView android:textSize="@dimen/digital_clock_font_size" android:textColor="#ffffffff" android:ellipsize="none" android:id="@id/lge_clock_text" android:paddingTop="@dimen/digital_clock_padding_top" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:layout_centerInParent="true" android:paddingStart="3.0dip" android:paddingEnd="3.0dip" />
- <TextView android:textSize="@dimen/digital_ampm_font_size" android:textColor="#ffffffff" android:ellipsize="none" android:id="@id/am_pm" android:paddingTop="@dimen/digital_ampm_padding_top" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignTop="@id/lge_clock_text" android:layout_toEndOf="@id/lge_clock_text" />
- </com.lge.lockscreen.widget.ClockView>
- <com.lge.lockscreen.widget.DateView android:gravity="center_horizontal" android:layout_gravity="center_horizontal" android:orientation="vertical" android:id="@id/lge_date_view" android:layout_width="wrap_content" android:layout_height="wrap_content">
- <TextView android:textSize="@dimen/digital_ampm_font_size" android:textColor="#ffffffff" android:layout_gravity="center_horizontal" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:layout_centerInParent="true" />
- </com.lge.lockscreen.widget.DateView>
- </LinearLayout>
- </LinearLayout>
- <View android:id="@id/glance_view_wall" android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="fill_parent" />
-</FrameLayout>
\ No newline at end of file
+ <FrameLayout android:layout_width="fill_parent" android:layout_height="fill_parent">
+ <com.lge.systemui.widget.LgeGlanceClockWidgetView android:gravity="center_horizontal" android:orientation="vertical" android:id="@id/glance_view_default_clock" android:background="#00000000" android:paddingTop="25.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content">
+ <com.lge.systemui.widget.LgeGlanceClockView android:id="@id/glance_view_clock" android:layout_width="fill_parent" android:layout_height="wrap_content">
+ <TextView android:textSize="@dimen/glance_digital_ampm_font_size" android:textColor="#ff000000" android:ellipsize="none" android:id="@id/am_pm_l" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignTop="@id/lge_clock_text" android:layout_toStartOf="@id/lge_clock_text" />
+ <TextView android:textSize="@dimen/glance_digital_clock_font_size" android:textColor="#ff000000" android:ellipsize="none" android:id="@id/lge_clock_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:layout_centerInParent="true" android:paddingStart="4.0dip" android:paddingEnd="3.0dip" />
+ <TextView android:textSize="@dimen/glance_digital_ampm_font_size" android:textColor="#ff000000" android:ellipsize="none" android:id="@id/am_pm" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignTop="@id/lge_clock_text" android:layout_toEndOf="@id/lge_clock_text" />
+ </com.lge.systemui.widget.LgeGlanceClockView>
+ <com.lge.systemui.widget.LgeGlanceDateView android:gravity="center_horizontal" android:layout_gravity="center_horizontal" android:orientation="vertical" android:id="@id/lge_date_view" android:layout_width="wrap_content" android:layout_height="wrap_content">
+ <TextView android:textSize="@dimen/glance_digital_ampm_font_size" android:textColor="#ff000000" android:layout_gravity="center_horizontal" android:id="@id/date" android:paddingTop="8.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:layout_centerInParent="true" />
+ </com.lge.systemui.widget.LgeGlanceDateView>
+ </com.lge.systemui.widget.LgeGlanceClockWidgetView>
+ <com.lge.systemui.widget.LgeGlanceClockWidgetView android:gravity="center_horizontal" android:orientation="horizontal" android:id="@id/glance_view_dual_clock" android:background="#00000000" android:paddingTop="15.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent">
+ <LinearLayout android:orientation="vertical" android:clickable="true" android:layout_width="@dimen/dual_clock_width" android:layout_height="wrap_content" android:layout_weight="1.0" android:layout_marginStart="@dimen/dual_clock_margin_start" android:layout_marginEnd="@dimen/dual_clock_spacing">
+ <com.lge.systemui.widget.LgeGlanceCityView android:id="@id/lge_city_view" android:layout_width="wrap_content" android:layout_height="wrap_content">
+ <TextView android:textSize="@dimen/dual_city_font_size" android:textStyle="bold" android:textColor="#ff000000" android:gravity="top" android:layout_gravity="start" android:id="@id/local_location" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/sp_local_location_NORMAL" android:singleLine="true" />
+ </com.lge.systemui.widget.LgeGlanceCityView>
+ <ImageView android:id="@id/local_location_line" android:background="@drawable/lockscreen_dualclock_line_black" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="2.0dip" />
+ <com.lge.systemui.widget.LgeGlanceClockView android:gravity="bottom" android:layout_gravity="start" android:id="@id/glance_view_dual_local_clock" android:paddingTop="2.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content">
+ <TextView android:textSize="@dimen/dual_ampm_font_size" android:textColor="#ff000000" android:id="@id/am_pm_l" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:layout_alignTop="@id/lge_clock_text" />
+ <TextView android:textSize="@dimen/dual_clock_font_size" android:textColor="#ff000000" android:ellipsize="none" android:id="@id/lge_clock_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:paddingStart="2.0dip" android:paddingEnd="2.0dip" android:layout_toEndOf="@id/am_pm_l" />
+ <TextView android:textSize="@dimen/dual_ampm_font_size" android:textColor="#ff000000" android:id="@id/am_pm" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:layout_alignTop="@id/lge_clock_text" android:layout_toEndOf="@id/lge_clock_text" />
+ </com.lge.systemui.widget.LgeGlanceClockView>
+ <com.lge.systemui.widget.LgeGlanceDateView android:layout_gravity="start" android:orientation="vertical" android:id="@id/lge_date_view" android:layout_width="wrap_content" android:layout_height="wrap_content">
+ <TextView android:textSize="@dimen/dual_date_font_size" android:textColor="#ff000000" android:layout_gravity="start" android:id="@id/local_date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="@dimen/dual_clock_date_margin_start" />
+ </com.lge.systemui.widget.LgeGlanceDateView>
+ </LinearLayout>
+ <LinearLayout android:orientation="vertical" android:clickable="true" android:layout_width="@dimen/dual_clock_width" android:layout_height="wrap_content" android:layout_weight="1.0" android:layout_marginEnd="@dimen/dual_clock_margin_end">
+ <com.lge.systemui.widget.LgeGlanceCityView android:id="@id/lge_default_city_view" android:layout_width="wrap_content" android:layout_height="wrap_content">
+ <TextView android:textSize="@dimen/dual_city_font_size" android:textStyle="bold" android:textColor="#ff000000" android:gravity="top" android:layout_gravity="start" android:id="@id/default_city_location" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/sp_korea_location_NORMAL" />
+ </com.lge.systemui.widget.LgeGlanceCityView>
+ <ImageView android:id="@id/default_city_location_line" android:background="@drawable/lockscreen_dualclock_line_black" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="2.0dip" />
+ <com.lge.systemui.widget.LgeGlanceDefaultCityClockView android:gravity="bottom" android:layout_gravity="start" android:id="@id/glance_view_city_clock_view" android:paddingTop="2.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content">
+ <TextView android:textSize="@dimen/dual_ampm_font_size" android:textColor="#ff000000" android:id="@id/am_pm_l" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:layout_alignTop="@id/lge_clock_text" />
+ <TextView android:textSize="@dimen/dual_clock_font_size" android:textColor="#ff000000" android:ellipsize="none" android:id="@id/lge_clock_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:paddingStart="2.0dip" android:paddingEnd="2.0dip" android:layout_toEndOf="@id/am_pm_l" />
+ <TextView android:textSize="@dimen/dual_ampm_font_size" android:textColor="#ff000000" android:id="@id/am_pm" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:layout_alignTop="@id/lge_clock_text" android:layout_toEndOf="@id/lge_clock_text" />
+ </com.lge.systemui.widget.LgeGlanceDefaultCityClockView>
+ <com.lge.systemui.widget.LgeGlanceDateView android:layout_gravity="start" android:orientation="vertical" android:id="@id/lge_default_city_date_view" android:layout_width="wrap_content" android:layout_height="wrap_content">
+ <TextView android:textSize="@dimen/dual_date_font_size" android:textColor="#ff000000" android:layout_gravity="start" android:id="@id/korea_date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="@dimen/dual_clock_date_margin_start" />
+ </com.lge.systemui.widget.LgeGlanceDateView>
+ </LinearLayout>
+ </com.lge.systemui.widget.LgeGlanceClockWidgetView>
+ </FrameLayout>
+ </LinearLayout>
+ <FrameLayout android:id="@id/glance_view_wall" android:layout_width="fill_parent" android:layout_height="@dimen/glanceview_effect_wall_height">
+ <FrameLayout android:id="@id/glance_view_wall_animation" android:background="@drawable/glance_wall_animation" android:layout_width="fill_parent" android:layout_height="fill_parent" />
+ <View android:id="@id/glance_view_wall_shade" android:background="@drawable/sunshine_bg" android:layout_width="fill_parent" android:layout_height="fill_parent" />
+ </FrameLayout>
+</FrameLayout>
\ No newline at end of file
Click to expand...
Click to collapse
LGSystemUI_GFlex2
LGSystemUI\res\drawable\glance_wall_animation.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<animation-list android:id="@id/glance_wall_animation" android:oneshot="false"
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:duration="200" android:drawable="@drawable/sunshine_01" />
<item android:duration="200" android:drawable="@drawable/sunshine_02" />
<item android:duration="200" android:drawable="@drawable/sunshine_03" />
<item android:duration="200" android:drawable="@drawable/sunshine_04" />
<item android:duration="200" android:drawable="@drawable/sunshine_05" />
<item android:duration="200" android:drawable="@drawable/sunshine_06" />
</animation-list>
LGSystemUI\res\drawable-xxhdpi
Code:
1- lg_glance_background.png
2- lg_glance_glow.png
3- sunshine_01.png
4- sunshine_02.png
5- sunshine_03.png
6- sunshine_04.png
7- sunshine_05.png
8- sunshine_06.png
LGSystemUI\res\layout\keyguard_simple_host_view.xml
Code:
Line 7: <View android:id="@id/keyguard_glance_background" android:background="#ff000000" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="fill_parent" />
LGSystemUI\res\layout\lg_glance_view_layout.xml
Code:
Line 2: <FrameLayout android:gravity="center|top" android:orientation="vertical" android:id="@id/glance_view_wall_container" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="fill_parent"
Line 5: <FrameLayout android:gravity="center|top" android:layout_width="fill_parent" android:layout_height="@dimen/glanceview_clock_bg_height">
Line 6: <View android:background="@drawable/lg_glance_background" android:layout_width="fill_parent" android:layout_height="fill_parent" />
Line 7: <View android:id="@id/glance_view_glow" android:background="@drawable/lg_glance_glow" android:layout_width="fill_parent" android:layout_height="fill_parent" />
Line 7: <View android:id="@id/glance_view_glow" android:background="@drawable/lg_glance_glow" android:layout_width="fill_parent" android:layout_height="fill_parent" />
Line 11: <LinearLayout android:orientation="vertical" android:id="@id/glance_view_touch" android:layout_width="fill_parent" android:layout_height="wrap_content">
Line 14: <com.lge.systemui.widget.LgeGlanceClockWidgetView android:gravity="center_horizontal" android:orientation="vertical" android:id="@id/glance_view_default_clock" android:background="#00000000" android:paddingTop="25.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content">
Line 15: <com.lge.systemui.widget.LgeGlanceClockView android:id="@id/glance_view_clock" android:layout_width="fill_parent" android:layout_height="wrap_content">
Line 16: <TextView android:textSize="@dimen/glance_digital_ampm_font_size" android:textColor="#ff000000" android:ellipsize="none" android:id="@id/am_pm_l" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignTop="@id/lge_clock_text" android:layout_toStartOf="@id/lge_clock_text" />
Line 17: <TextView android:textSize="@dimen/glance_digital_clock_font_size" android:textColor="#ff000000" android:ellipsize="none" android:id="@id/lge_clock_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:layout_centerInParent="true" android:paddingStart="4.0dip" android:paddingEnd="3.0dip" />
Line 18: <TextView android:textSize="@dimen/glance_digital_ampm_font_size" android:textColor="#ff000000" android:ellipsize="none" android:id="@id/am_pm" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignTop="@id/lge_clock_text" android:layout_toEndOf="@id/lge_clock_text" />
Line 21: <TextView android:textSize="@dimen/glance_digital_ampm_font_size" android:textColor="#ff000000" android:layout_gravity="center_horizontal" android:id="@id/date" android:paddingTop="8.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:layout_centerInParent="true" />
Line 24: <com.lge.systemui.widget.LgeGlanceClockWidgetView android:gravity="center_horizontal" android:orientation="horizontal" android:id="@id/glance_view_dual_clock" android:background="#00000000" android:paddingTop="15.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent">
Line 30: <com.lge.systemui.widget.LgeGlanceClockView android:gravity="bottom" android:layout_gravity="start" android:id="@id/glance_view_dual_local_clock" android:paddingTop="2.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content">
Line 44: <com.lge.systemui.widget.LgeGlanceDefaultCityClockView android:gravity="bottom" android:layout_gravity="start" android:id="@id/glance_view_city_clock_view" android:paddingTop="2.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content">
Line 56: <FrameLayout android:id="@id/glance_view_wall" android:layout_width="fill_parent" android:layout_height="@dimen/glanceview_effect_wall_height">
Line 56: <FrameLayout android:id="@id/glance_view_wall" android:layout_width="fill_parent" android:layout_height="@dimen/glanceview_effect_wall_height">
Line 57: <FrameLayout android:id="@id/glance_view_wall_animation" android:background="@drawable/glance_wall_animation" android:layout_width="fill_parent" android:layout_height="fill_parent" />
Line 57: <FrameLayout android:id="@id/glance_view_wall_animation" android:background="@drawable/glance_wall_animation" android:layout_width="fill_parent" android:layout_height="fill_parent" />
Line 58: <View android:id="@id/glance_view_wall_shade" android:background="@drawable/sunshine_bg" android:layout_width="fill_parent" android:layout_height="fill_parent" />
C:\apktool44\LGSystemUI\res\layout\msim_super_status_bar.xml (1 hit)
Line 19: <include android:visibility="gone" android:layout_width="fill_parent" android:layout_height="fill_parent" layout="@layout/lg_glance_view_layout" />
LGSystemUI\res\layout\super_status_bar.xml
Code:
Line 19: <include android:visibility="gone" android:layout_width="fill_parent" android:layout_height="fill_parent" layout="@layout/lg_glance_view_layout" />
LGSystemUI\res\values\dimens.xml
Code:
Line 188: <dimen name="glanceview_clock_bg_height">140.0dip</dimen>
Line 189: <dimen name="glanceview_clock_height">130.0dip</dimen>
Line 190: <dimen name="glanceview_effect_wall_height">229.19998dip</dimen>
Line 191: <dimen name="glance_digital_clock_font_size">46.669983dip</dimen>
Line 192: <dimen name="glance_digital_ampm_font_size">13.329987dip</dimen>
LGSystemUI\res\values\ids.xml
Code:
Line 254: <item type="id" name="keyguard_glance_background">false</item>
Line 287: <item type="id" name="glance_view_wall_container">false</item>
Line 288: <item type="id" name="glance_view_glow">false</item>
Line 289: <item type="id" name="glance_view_touch">false</item>
Line 290: <item type="id" name="glance_view_default_clock">false</item>
Line 291: <item type="id" name="glance_view_clock">false</item>
Line 292: <item type="id" name="glance_view_dual_clock">false</item>
Line 293: <item type="id" name="glance_view_dual_local_clock">false</item>
Line 294: <item type="id" name="glance_view_city_clock_view">false</item>
Line 295: <item type="id" name="glance_view_wall">false</item>
Line 296: <item type="id" name="glance_view_wall_animation">false</item>
Line 297: <item type="id" name="glance_view_wall_shade">false</item>
Line 875: <item type="id" name="glance_wall_animation">false</item>
LGSystemUI\res\values\public.xml
Code:
Line 211: <public type="drawable" name="glance_wall_animation" id="0x7f020076" />
Line 2023: <public type="drawable" name="lg_glance_background" id="0x7f0204a5" />
Line 2024: <public type="drawable" name="lg_glance_glow" id="0x7f0204a6" />
Line 2658: <public type="layout" name="lg_glance_view_layout" id="0x7f040043" />
Line 5104: <public type="dimen" name="glanceview_clock_bg_height" id="0x7f0e00b9" />
Line 5105: <public type="dimen" name="glanceview_clock_height" id="0x7f0e00ba" />
Line 5106: <public type="dimen" name="glanceview_effect_wall_height" id="0x7f0e00bb" />
Line 5107: <public type="dimen" name="glance_digital_clock_font_size" id="0x7f0e00bc" />
Line 5108: <public type="dimen" name="glance_digital_ampm_font_size" id="0x7f0e00bd" />
Line 5819: <public type="id" name="keyguard_glance_background" id="0x7f100117" />
Line 5852: <public type="id" name="glance_view_wall_container" id="0x7f100138" />
Line 5853: <public type="id" name="glance_view_glow" id="0x7f100139" />
Line 5854: <public type="id" name="glance_view_touch" id="0x7f10013a" />
Line 5855: <public type="id" name="glance_view_default_clock" id="0x7f10013b" />
Line 5856: <public type="id" name="glance_view_clock" id="0x7f10013c" />
Line 5857: <public type="id" name="glance_view_dual_clock" id="0x7f10013d" />
Line 5858: <public type="id" name="glance_view_dual_local_clock" id="0x7f10013e" />
Line 5859: <public type="id" name="glance_view_city_clock_view" id="0x7f10013f" />
Line 5860: <public type="id" name="glance_view_wall" id="0x7f100140" />
Line 5861: <public type="id" name="glance_view_wall_animation" id="0x7f100141" />
Line 5862: <public type="id" name="glance_view_wall_shade" id="0x7f100142" />
Line 6440: <public type="id" name="glance_wall_animation" id="0x7f100384" />
LGSystemUI\res\values-xhdpi\dimens.xml
Code:
Line 4: <dimen name="glanceview_clock_bg_height">130.0dip</dimen>
Line 5: <dimen name="glanceview_clock_height">110.0dip</dimen>
Line 6: <dimen name="glanceview_effect_wall_height">191.0dip</dimen>
LGSystemUI\res\values-xxhdpi\dimens.xml
Code:
Line 3: <dimen name="glanceview_clock_bg_height">140.0dip</dimen>
Line 4: <dimen name="glanceview_clock_height">115.0dip</dimen>
Line 5: <dimen name="glanceview_effect_wall_height">229.19998dip</dimen>
LGSystemUI\smali\com\android\keyguard\KeyguardSimpleHostView.smali
Code:
Line 635: sget v0, Lcom/android/keyguard/R$id;->keyguard_glance_background:I
LGSystemUI\smali\com\android\keyguard\R$id.smali
Code:
Line 142: .field public static final keyguard_glance_background:I = 0x7f100117
LGSystemUI\smali\com\android\systemui\statusbar\phone\StatusBarWindowView$LGGlanceView$1.smali
Code:
Line 127: .local v2, glanceTime:J
Line 319: .end local v2 #glanceTime:J
LGSystemUI\smali\com\lge\lockscreen\feature\LGFeatureConfig.smali
Code:
Line 1159: const-string v0, "config_feature_glance_view"
LGSystemUI\smali\com\lge\lockscreen\model\KeyguardModel$5.smali
Code:
Line 1902: const-string v9, "[Glance] keyguard get the glance intent first at "
LGLockScreenSettings_GFlex2
LGLockScreenSettings\res\values\bools.xml
Code:
Line 64: <bool name="config_feature_glance_view">true</bool>
LGLockScreenSettings\res\values\public.xml
Code:
Line 295: <public type="bool" name="config_feature_glance_view" id="0x7f09003d" />
This is what I found and tried to adjust .xml and codes smali and always FC.

I made the same experience. I read somewhere that 20K will include Flex2 features maybe we should simply wait.

Kickoff said:
I made the same experience. I read somewhere that 20K will include Flex2 features maybe we should simply wait.
Click to expand...
Click to collapse
Now the real question is how long will it take for AT&T to actually give us that update...
I'm still waiting on AT&T to approve the Atrix HD 4.4.2 update Motorola sent them at the end of 2013...
I'd offer to join in and help, but I'm busy with my own project at the moment. When I'm done with that, hopefully in 3 to 5 days, this will be the first thing I do after a reboot menu mod....makes me wish I knew of a way to decompile an app, patch it, and recompile it in an updater script....

bryjenko said:
So I just watched a Youtube Video reviewing the G-Flex2. So far an average phone compared to G3 but sports the Snapdragon 810... Also noted is apparently the throttling is crazy and heat a major issue.
But to the point. It has a Quick Glance Feature. When screen was off and you swiped from top you got a quick glance of time etc. A neat feature that i'm thinking should be fairly easy to port.
Anyone else interested?
Click to expand...
Click to collapse
easy? yo know that you need to mess with the kernel too to get this to work?

suljo94 said:
easy? yo know that you need to mess with the kernel too to get this to work?
Click to expand...
Click to collapse
Fairly easy were my words... I didntsay ot was going to be a walk in the park but compared to climbing everest... ?

Less talk more work guys
Anyway, Glance view is for OLED screens. You can turn on or off each pixel of OLED displays, thats why glance view is productive on G Flex 2. While on LCD screens, if you turn on one pixel, you have to turn on all screen.
That is to say glace view is possible to port, but it might not be as productive as on the lg g flex 2

it will be like the quickcover option... you see only the circle but the screen is all on...

g4 has it
Lg g4 doesnt have amolef but still has it....

Related

[Q] How to remove a transparent dialer

I have the problem which is shown in picture below. I've tried to replace SemcPhone.apk and Contacts.apk with other ones, but there was no effect.
silkoo said:
I have the problem which is shown in picture below. I've tried to replace SemcPhone.apk and Contacts.apk with other ones, but there was no effect.
Click to expand...
Click to collapse
That's awesome
I think the images are part of the frameworks
Pvy
Sent from my Galaxy Nexus using xda premium
Are you using the stock ROM !?
No, its custom AWESOME-4000 ROM
I have got this ad well when I put the xperia t phonebook onto my arc so it could be that you have incompatible dialer with home launcher just try different launcher.
Sent from my X10i using xda premium
I have this problem too..I installed xperia T home and phonebook and dialer ..I think problem is with phonebook.apk or dialler
am2222 said:
I have this problem too..I installed xperia T home and phonebook and dialer ..I think problem is with phonebook.apk or dialler
Click to expand...
Click to collapse
I've tried to replace the dialer - no effect.
silkoo said:
I've tried to replace the dialer - no effect.
Click to expand...
Click to collapse
if you use phonebook from stock rom then it works, ie not transparent
a.
I've the same question: Where can I change the transparent dialer in phonebook.apk? I changed dial_background.png in some folders but it didn't help.
I changed a lot more pictures and .xml strings but still no luck. I didn't find any topic for the sony stock phonebook.apks, so I would be thankful if someone can help!
silkoo said:
I have the problem which is shown in picture below. I've tried to replace SemcPhone.apk and Contacts.apk with other ones, but there was no effect.
Click to expand...
Click to collapse
I'm too trying to search for a solution - For sure it's unrelated to SemcPhone or Contacts apps. Instead it's framework-res.apk. For Xperia 2012 devices after decompile, in able to recompile you have to change background in styles.xml. After recompile my modded framework-res.apk I got the same problem as you (transparent smart dialer). I haven't found (actually don't know) which line called out that background for smartsearch dialer.
accts said:
I'm too trying to search for a solution - For sure it's unrelated to SemcPhone or Contacts apps. Instead it's framework-res.apk. For Xperia 2012 devices after decompile, in able to recompile you have to change background in styles.xml. After recompile my modded framework-res.apk I got the same problem as you (transparent smart dialer). I haven't found (actually don't know) which line called out that background for smartsearch dialer.
Click to expand...
Click to collapse
Upload the de compiled contacts.apk as a zip and I'll look
Pvy
Sent from my Galaxy Nexus using Tapatalk 2
pvyParts said:
Upload the de compiled contacts.apk as a zip and I'll look
Pvy
Sent from my Galaxy Nexus using Tapatalk 2
Click to expand...
Click to collapse
My system app doesn't have the contacts.apk - I do have a contactsimport.apk - Is it the same ? beside as mentioned my was related to framework-res.
accts said:
My system app doesn't have the contacts.apk - I do have a contactsimport.apk - Is it the same ? beside as mentioned my was related to framework-res.
Click to expand...
Click to collapse
Nope. Phonebook.apk ?
Pvy
Sent from my Galaxy Nexus using Tapatalk 2
pvyParts said:
Nope. Phonebook.apk ?
Pvy
Sent from my Galaxy Nexus using Tapatalk 2
Click to expand...
Click to collapse
Here is the zip decompiled phonebook.apk - View attachment LT28i_68_phonebook.zip
Finally got around to checking this for yo guys,
Now it is REALLY easy to figure this out so prepare for a spiel.
if there is an image that you need to figure out. somewhere in an app. this is my process of doing it.
first figure out what part of the app it is in (the Dialer in the main activity)
check for a layout that is named Dialer
Code:
/res/layout/dialpad
close enough for me.
look at the xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:orientation="vertical" android:id="@id/dialpad" android:background="@drawable/dial_background" android:layout_width="fill_parent" android:layout_height="@dimen/dialpad_height" android:baselineAligned="false"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="@dimen/dialpad_button_height" android:baselineAligned="false" android:layout_weight="1.0" android:directionality="none">
<RelativeLayout android:id="@id/one" android:background="@drawable/dial_num_left" android:paddingLeft="@dimen/dialpad_button_padding_left" android:focusable="true" android:clickable="true" android:layout_width="@dimen/dialpad_button_width" android:layout_height="fill_parent" android:layout_weight="1.0" android:soundEffectsEnabled="false" android:directionality="leftToRight">
<TextView android:id="@id/oneNum" android:layout_width="@dimen/dialpad_button_num_text_width" android:layout_height="wrap_content" android:text="@string/lockscreen_strings_dialpad_1_txt" style="@style/Dialpad.Digit" />
<LinearLayout android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" android:baselineAligned="false" android:layout_toRightOf="@id/oneNum" android:layout_centerVertical="true">
<TextView android:id="@id/oneSearchLabel" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/dialpad_search_lable_margin_left" android:text="@string/dialpad_search_label_1_txt" style="@style/Dialpad.Label" />
<ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/dialpad_voicemail_icn" />
</LinearLayout>
</RelativeLayout>
<RelativeLayout android:id="@id/two" android:background="@drawable/dial_num" android:paddingLeft="@dimen/dialpad_button_padding_left" android:focusable="true" android:nextFocusDown="@id/five" android:clickable="true" android:layout_width="@dimen/dialpad_button_width" android:layout_height="fill_parent" android:layout_weight="1.0" android:soundEffectsEnabled="false" android:directionality="leftToRight">
<TextView android:id="@id/twoNum" android:layout_width="@dimen/dialpad_button_num_text_width" android:layout_height="wrap_content" android:text="@string/lockscreen_strings_dialpad_2_txt" style="@style/Dialpad.Digit" />
<LinearLayout android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" android:baselineAligned="false" android:layout_toRightOf="@id/twoNum" android:layout_centerVertical="true">
<TextView android:id="@id/twoSearchLabel" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/dialpad_search_lable_margin_left" android:text="@string/dialpad_search_label_2_txt" style="@style/Dialpad.Label" />
<TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/dialpad_label_2_txt" style="@style/Dialpad.Label" />
</LinearLayout>
</RelativeLayout>
<RelativeLayout android:id="@id/three" android:background="@drawable/dial_num" android:paddingLeft="@dimen/dialpad_button_padding_left" android:focusable="true" android:clickable="true" android:layout_width="@dimen/dialpad_button_width" android:layout_height="fill_parent" android:layout_weight="1.0" android:soundEffectsEnabled="false" android:directionality="leftToRight">
<TextView android:id="@id/threeNum" android:layout_width="@dimen/dialpad_button_num_text_width" android:layout_height="wrap_content" android:text="@string/lockscreen_strings_dialpad_3_txt" style="@style/Dialpad.Digit" />
<LinearLayout android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" android:baselineAligned="false" android:layout_toRightOf="@id/threeNum" android:layout_centerVertical="true">
<TextView android:id="@id/threeSearchLabel" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/dialpad_search_lable_margin_left" android:text="@string/dialpad_search_label_3_txt" style="@style/Dialpad.Label" />
<TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/dialpad_label_3_txt" style="@style/Dialpad.Label" />
</LinearLayout>
</RelativeLayout>
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="@dimen/dialpad_button_height" android:baselineAligned="false" android:layout_weight="1.0" android:directionality="none">
<RelativeLayout android:id="@id/four" android:background="@drawable/dial_num_left" android:paddingLeft="@dimen/dialpad_button_padding_left" android:focusable="true" android:clickable="true" android:layout_width="@dimen/dialpad_button_width" android:layout_height="fill_parent" android:layout_weight="1.0" android:soundEffectsEnabled="false" android:directionality="leftToRight">
<TextView android:id="@id/fourNum" android:layout_width="@dimen/dialpad_button_num_text_width" android:layout_height="wrap_content" android:text="@string/lockscreen_strings_dialpad_4_txt" style="@style/Dialpad.Digit" />
<LinearLayout android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" android:baselineAligned="false" android:layout_toRightOf="@id/fourNum" android:layout_centerVertical="true">
<TextView android:id="@id/fourSearchLabel" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/dialpad_search_lable_margin_left" android:text="@string/dialpad_search_label_4_txt" style="@style/Dialpad.Label" />
<TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/dialpad_label_4_txt" style="@style/Dialpad.Label" />
</LinearLayout>
</RelativeLayout>
<RelativeLayout android:id="@id/five" android:background="@drawable/dial_num" android:paddingLeft="@dimen/dialpad_button_padding_left" android:focusable="true" android:nextFocusUp="@id/two" android:nextFocusDown="@id/eight" android:clickable="true" android:layout_width="@dimen/dialpad_button_width" android:layout_height="fill_parent" android:layout_weight="1.0" android:soundEffectsEnabled="false" android:directionality="leftToRight">
<TextView android:id="@id/fiveNum" android:layout_width="@dimen/dialpad_button_num_text_width" android:layout_height="wrap_content" android:text="@string/lockscreen_strings_dialpad_5_txt" style="@style/Dialpad.Digit" />
<LinearLayout android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" android:baselineAligned="false" android:layout_toRightOf="@id/fiveNum" android:layout_centerVertical="true">
<TextView android:id="@id/fiveSearchLabel" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/dialpad_search_lable_margin_left" android:text="@string/dialpad_search_label_5_txt" style="@style/Dialpad.Label" />
<TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/dialpad_label_5_txt" style="@style/Dialpad.Label" />
</LinearLayout>
</RelativeLayout>
<RelativeLayout android:id="@id/six" android:background="@drawable/dial_num" android:paddingLeft="@dimen/dialpad_button_padding_left" android:focusable="true" android:clickable="true" android:layout_width="@dimen/dialpad_button_width" android:layout_height="fill_parent" android:layout_weight="1.0" android:soundEffectsEnabled="false" android:directionality="leftToRight">
<TextView android:id="@id/sixNum" android:layout_width="@dimen/dialpad_button_num_text_width" android:layout_height="wrap_content" android:text="@string/lockscreen_strings_dialpad_6_txt" style="@style/Dialpad.Digit" />
<LinearLayout android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" android:baselineAligned="false" android:layout_toRightOf="@id/sixNum" android:layout_centerVertical="true">
<TextView android:id="@id/sixSearchLabel" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/dialpad_search_lable_margin_left" android:text="@string/dialpad_search_label_6_txt" style="@style/Dialpad.Label" />
<TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/dialpad_label_6_txt" style="@style/Dialpad.Label" />
</LinearLayout>
</RelativeLayout>
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="@dimen/dialpad_button_height" android:baselineAligned="false" android:layout_weight="1.0" android:directionality="none">
<RelativeLayout android:id="@id/seven" android:background="@drawable/dial_num_left" android:paddingLeft="@dimen/dialpad_button_padding_left" android:focusable="true" android:clickable="true" android:layout_width="@dimen/dialpad_button_width" android:layout_height="fill_parent" android:layout_weight="1.0" android:soundEffectsEnabled="false" android:directionality="leftToRight">
<TextView android:id="@id/sevenNum" android:layout_width="@dimen/dialpad_button_num_text_width" android:layout_height="wrap_content" android:text="@string/lockscreen_strings_dialpad_7_txt" style="@style/Dialpad.Digit" />
<LinearLayout android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" android:baselineAligned="false" android:layout_toRightOf="@id/sevenNum" android:layout_centerVertical="true">
<TextView android:id="@id/sevenSearchLabel" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/dialpad_search_lable_margin_left" android:text="@string/dialpad_search_label_7_txt" style="@style/Dialpad.Label" />
<TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/dialpad_label_7_txt" style="@style/Dialpad.Label" />
</LinearLayout>
</RelativeLayout>
<RelativeLayout android:id="@id/eight" android:background="@drawable/dial_num" android:paddingLeft="@dimen/dialpad_button_padding_left" android:focusable="true" android:nextFocusUp="@id/five" android:nextFocusDown="@id/zero" android:clickable="true" android:layout_width="@dimen/dialpad_button_width" android:layout_height="fill_parent" android:layout_weight="1.0" android:soundEffectsEnabled="false" android:directionality="leftToRight">
<TextView android:id="@id/eightNum" android:layout_width="@dimen/dialpad_button_num_text_width" android:layout_height="wrap_content" android:text="@string/lockscreen_strings_dialpad_8_txt" style="@style/Dialpad.Digit" />
<LinearLayout android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" android:baselineAligned="false" android:layout_toRightOf="@id/eightNum" android:layout_centerVertical="true">
<TextView android:id="@id/eightSearchLabel" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/dialpad_search_lable_margin_left" android:text="@string/dialpad_search_label_8_txt" style="@style/Dialpad.Label" />
<TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/dialpad_label_8_txt" style="@style/Dialpad.Label" />
</LinearLayout>
</RelativeLayout>
<RelativeLayout android:id="@id/nine" android:background="@drawable/dial_num" android:paddingLeft="@dimen/dialpad_button_padding_left" android:focusable="true" android:clickable="true" android:layout_width="@dimen/dialpad_button_width" android:layout_height="fill_parent" android:layout_weight="1.0" android:soundEffectsEnabled="false" android:directionality="leftToRight">
<TextView android:id="@id/nineNum" android:layout_width="@dimen/dialpad_button_num_text_width" android:layout_height="wrap_content" android:text="@string/lockscreen_strings_dialpad_9_txt" style="@style/Dialpad.Digit" />
<LinearLayout android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" android:baselineAligned="false" android:layout_toRightOf="@id/nineNum" android:layout_centerVertical="true">
<TextView android:id="@id/nineSearchLabel" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/dialpad_search_lable_margin_left" android:text="@string/dialpad_search_label_9_txt" style="@style/Dialpad.Label" />
<TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/dialpad_label_9_txt" style="@style/Dialpad.Label" />
</LinearLayout>
</RelativeLayout>
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="@dimen/dialpad_button_height" android:baselineAligned="false" android:layout_weight="1.0" android:directionality="none">
<RelativeLayout android:id="@id/star" android:background="@drawable/dial_num_special_left" android:paddingLeft="@dimen/dialpad_button_star_or_pound_padding_left" android:focusable="true" android:clickable="true" android:layout_width="@dimen/dialpad_button_width" android:layout_height="fill_parent" android:layout_weight="1.0" android:soundEffectsEnabled="false" android:directionality="leftToRight">
<TextView android:id="@id/starNum" android:layout_width="@dimen/dialpad_button_num_text_width" android:layout_height="wrap_content" android:layout_marginTop="@dimen/dialpad_button_star_margin_top" android:text="@string/general_dialpad_star_txt" style="@style/Dialpad.Star" />
<TextView android:id="@id/starSearchLabel" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/dialpad_search_lable_margin_left" android:text="@string/dialpad_search_label_star_txt" android:layout_toRightOf="@id/starNum" android:layout_centerVertical="true" style="@style/Dialpad.Label" />
</RelativeLayout>
<RelativeLayout android:id="@id/zero" android:background="@drawable/dial_num_special" android:paddingLeft="@dimen/dialpad_button_padding_left" android:focusable="true" android:nextFocusUp="@id/eight" android:clickable="true" android:layout_width="@dimen/dialpad_button_width" android:layout_height="fill_parent" android:layout_weight="1.0" android:soundEffectsEnabled="false" android:directionality="leftToRight">
<TextView android:id="@id/zeroNum" android:layout_width="@dimen/dialpad_button_num_text_width" android:layout_height="wrap_content" android:text="@string/lockscreen_strings_dialpad_0_txt" style="@style/Dialpad.Digit" />
<LinearLayout android:orientation="vertical" android:layout_width="wrap_content" android:layout_height="wrap_content" android:baselineAligned="false" android:layout_toRightOf="@id/zeroNum" android:layout_centerVertical="true">
<TextView android:id="@id/zeroSearchLabel" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/dialpad_search_lable_margin_left" android:text="@string/dialpad_search_label_0_txt" style="@style/Dialpad.Label" />
<TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/dialpad_search_lable_margin_left" android:layout_marginTop="@dimen/dialpad_lable_plus_margin_top" android:text="@string/dialpad_label_0_txt" android:includeFontPadding="false" style="@style/Dialpad.Plus" />
</LinearLayout>
</RelativeLayout>
<RelativeLayout android:id="@id/pound" android:background="@drawable/dial_num_special" android:paddingLeft="@dimen/dialpad_button_star_or_pound_padding_left" android:focusable="true" android:clickable="true" android:layout_width="@dimen/dialpad_button_width" android:layout_height="fill_parent" android:layout_weight="1.0" android:soundEffectsEnabled="false" android:directionality="leftToRight">
<TextView android:id="@id/poundNum" android:layout_width="@dimen/dialpad_button_num_text_width" android:layout_height="wrap_content" android:text="@string/general_dialpad_hash_txt" style="@style/Dialpad.Pound" />
<TextView android:id="@id/poundSearchLabel" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/dialpad_search_lable_margin_left" android:text="@string/dialpad_search_label_pound_txt" android:layout_toRightOf="@id/poundNum" android:layout_centerVertical="true" style="@style/Dialpad.Label" />
</RelativeLayout>
</LinearLayout>
</LinearLayout>
ok thats long and confusing how the hell...
Click to expand...
Click to collapse
do a find fast for background
First hit is
Code:
<LinearLayout android:orientation="vertical" android:id="@id/dialpad" android:[COLOR="Red"]background[/COLOR]="@drawable/dial_background" android:layout_width="fill_parent" android:layout_height="@dimen/dialpad_height" android:baselineAligned="false"
xmlns:android="http://schemas.android.com/apk/res/android">
find the drawable
Code:
drawable-hdpi/dial_background
check if it is transparent (gimp / firworks / photoshop)
Hells Yeah! problem solvered.
Click to expand...
Click to collapse
in short your images are
Code:
drawable-hdpi/dial_background.png
drawable-mdpi/dial_background.png
drawable-xdpi/dial_background.png
drawable-land-hdpi/dial_background.png
drawable-land-hdpi/dial_background.png
drawable-land-xdpi/dial_background.png
those are the ones you need to change to get rid of the transparent dialer.
follow this process and you will be able to find anything. works the same for images text layouts what ever. if you are slack like me use a program like Astrogrep (windows) / Grep (linux) to search the entire folder for short keywords then narrow the search down from there (dial for example here)
this has been a public service announcement by pvyParts
Pvy.

[H] modding mms.apk

i am trying to mod my mms apk but now i am stuck i want to know if anyone can tell me where or what i need to change to change the maxwidth of my mms "bubble" to 185.0dip here is my message_list_item_recv.xml file also placed it in a attachment. thanks in advance.
<?xml version="1.0" encoding="utf-8"?>
<com.android.mms.ui.MessageListItem androidrientation="horizontal" android:id="@id/msg_list_item_recv" android:background="@color/transparent" android:layout_width="fill_parent" android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout androidrientation="vertical" android:id="@id/mms_layout_view_parent" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0">
<RelativeLayout android:id="@id/message_layout" android:layout_width="fill_parent" android:layout_height="wrap_content">
<android.widget.QuickContactBadge android:id="@id/avatar" android:layout_width="@dimen/avatar_width_height" android:layout_height="@dimen/avatar_width_height" android:layout_marginLeft="@dimen/avatar_margin_left_right" android:layout_marginTop="@dimen/avatar_margin_top_bottom" android:layout_marginRight="@dimen/avatar_margin_left_right" android:layout_marginBottom="@dimen/avatar_margin_top_bottom" android:layout_alignParentLeft="true" position="left_middle" style="?android:attr/quickContactBadgeStyleWindowSmall" />
<RelativeLayout androidrientation="vertical" android:id="@id/message_block" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/message_block_margin_left_right_noavatar" android:layout_marginRight="@dimen/message_block_margin_left_right_noavatar" android:minHeight="@dimen/avatar_width_height" android:layout_toRightOf="@id/avatar" android:layout_alignParentLeft="true">
<TextView android:textAppearance="?android:textAppearanceSmall" android:textSize="16.0sp" android:textColor="@color/message_recieved" android:autoLink="all" android:linksClickable="false" android:id="@id/text_view" androidaddingLeft="@dimen/message_item_text_padding_left_right" androidaddingTop="@dimen/message_item_text_padding_top" androidaddingRight="@dimen/message_item_text_padding_left_right" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<LinearLayout androidrientation="horizontal" android:id="@id/status_view" androidaddingLeft="@dimen/message_item_text_padding_left_right" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/text_view">
<ImageView android:id="@id/locked_indicator" androidaddingRight="3.0dip" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/ic_lock_message_sms" />
<ImageView android:id="@id/delivered_indicator" androidaddingRight="3.0dip" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/ic_sms_mms_delivered" />
<ImageView android:id="@id/details_indicator" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/ic_sms_mms_details" />
<TextView android:textAppearance="?android:textAppearanceSmall" android:textColor="@color/text_hairline" android:id="@id/date_view" androidaddingRight="3.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
<ViewStub android:id="@id/mms_layout_view_stub" android:layout="@layout/mms_layout_view" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_below="@id/status_view" />
</RelativeLayout>
</RelativeLayout>
</LinearLayout>
<ViewStub android:layout_gravity="center_vertical" android:id="@id/mms_downloading_view_stub" android:layout="@layout/mms_downloading_view" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</com.android.mms.ui.MessageListItem>

[How to][StatusBar] Custom txt/Carrier/center clock/custom icons/left side icons

Hello theNTER][/URL]
Added guidelines in N4 seattery/signal/wifi icons with custom[/COLOR][/URL][/SIZE]
[URL="http://forum.xda-developers.com/
please
enricocid said:
Hello there
Here is a simple guide to add a Custom name to top-left status bar.
All You need is:
- Know how to decompile/recompiling Apk file
- notepad++
- Tool for decompiling, : apkmanager/apktool/Virtous/apkmultitools ...
1. Decompile SystemUI.apk
2. navigate to res/layout/status_bar.xml
3.Open Status_bar.xml with notepad++
4.Copy this line like the following example:
Code:
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="left|center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:text="@string/hello" android:singleLine="true" />
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.PhoneStatusBarView android:orientation="vertical" android:id="@id/status_bar" android:background="@drawable/status_bar_background" android:focusable="true" android:fitsSystemWindows="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<ImageView android:id="@id/notification_lights_out" android:paddingBottom="2.0dip" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_lights_out_dot_small" android:scaleType="center" android:paddingStart="6.0dip" />
<LinearLayout android:orientation="horizontal" android:id="@id/status_bar_contents" android:layout_width="fill_parent" android:layout_height="fill_parent" android:paddingStart="6.0dip" android:paddingEnd="6.0dip">
<LinearLayout android:orientation="horizontal" android:id="@id/notification_icon_area" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
[COLOR="Red"][B] <TextView android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="left|center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:text="@string/hello" android:singleLine="true" />[/B][/COLOR]
<com.android.systemui.statusbar.StatusBarIconView android:id="@id/moreIcon" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/stat_notify_more" />
<com.android.systemui.statusbar.phone.IconMerger android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/notificationIcons" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentStart="true" />
</LinearLayout>
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent">
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
</LinearLayout>
<LinearLayout android:gravity="right|center" android:orientation="horizontal" android:id="@id/system_icon_area" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
<LinearLayout android:gravity="right|center" android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<LinearLayout android:gravity="right|center" android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:paddingLeft="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent">
<com.android.systemui.statusbar.policy.Traffic android:textAppearance="@style/TextAppearance.StatusBar.Traffic" android:gravity="left|center" android:id="@id/traffic" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_view" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Battery" android:gravity="center" android:id="@id/battery_text" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
<com.erryy.BatteryText android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textSize="12.0dip" android:gravity="center" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="-3.0dip" android:singleLine="true" />
<ImageView android:id="@id/battery" android:layout_width="wrap_content" android:layout_height="wrap_content" android:paddingStart="4.0dip" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/ticker" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent" android:paddingStart="6.0dip">
<ImageSwitcher android:id="@id/tickerIcon" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:layout_marginEnd="4.0dip">
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:scaleType="center" />
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:scaleType="center" />
</ImageSwitcher>
<com.android.systemui.statusbar.phone.TickerView android:id="@id/tickerText" android:paddingTop="2.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0" android:paddingEnd="10.0dip">
<TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
</com.android.systemui.statusbar.phone.TickerView>
</LinearLayout>
</com.android.systemui.statusbar.phone.PhoneStatusBarView>
"android:textAppearance="@style/TextAppearance.StatusBar.Clock" means that your custom text will have same colors and dimensions defined for clock (these are defined in /values/styles: 16dip and Holo Blue Light ).
If You want to add Your dip and your preferred color, just replaces above line with this:
android:textSize="15.0dip" android:textColor="#ffa6a6a6"
Code:
<TextView [COLOR="Red"]android:textSize="15.0dip" android:textColor="#ffa6a6a6"[/COLOR] android:gravity="left|center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:text="@string/hello" android:singleLine="true" />
You can change text color and size to fit your needs.
android:textSize="x.0dip"
and android:textColor="#hex code of Your preferred color"
for example #ffdd4814 is Ubuntu Orange
5) Now, the last step:
Navigate to res/values/string
and add this at the end of the file:
Code:
<string name="hello">Your text here</string>
Like this example:
Code:
... <string name="quick_settings_rssi_label">RSSI</string>
<string name="quick_settings_rssi_emergency_only">Emergency Calls Only</string>
<string name="quick_settings_settings_label">Settings</string>
<string name="quick_settings_time_label">Time</string>
<string name="quick_settings_user_label">Me</string>
<string name="quick_settings_wifi_label">Wi-Fi</string>
<string name="quick_settings_wifi_not_connected">Not Connected</string>
<string name="quick_settings_wifi_no_network">No Network</string>
<string name="quick_settings_wifi_off_label">Wi-Fi Off</string>
<string name="quick_settings_wifi_display_label">Wi-Fi Display</string>
<string name="quick_settings_wifi_display_no_connection_label">Wireless Display</string>
<string name="quick_settings_brightness_dialog_title">Brightness</string>
<string name="quick_settings_brightness_dialog_auto_brightness_label">AUTO</string>
<string name="status_bar_help_title">Notifications appear here</string>
<string name="status_bar_help_text">"Access them anytime by swiping down.
Swipe down again for system controls."</string>
<string name="accessibility_sleep_button">Sleep button.</string>
[COLOR="Red"]<string name="hello">Your text here</string>[/COLOR]
</resources>
6) Recompile back ... enjoy!!
Service Provider
White clock & wifi/battery/signal white resources [how to]
Center Clock, left signals and how to replace battery/signal/wifi icons with custom​
Guidelines to correctly set jdk in Windows and Linux​
To flash Your mods... ​
Click to expand...
Click to collapse
Can someone do a walk though video on how to do this with the s4 i337m please.

[How to] Add a custom text to Status bar 11.09.2013

Hello there
Here is a simple guide to add a Custom name to top-left status bar.
All You need is:
- Know how to decompile/recompiling Apk file
- notepad++
- Tool for decompiling, : apkmanager/apktool/Virtous/apkmultitools ...
1. Decompile SystemUI.apk
2. navigate to res/layout/status_bar.xml
3.Open Status_bar.xml with notepad++
4.Copy this line like the following example:
Code:
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="left|center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:text="@string/hello" android:singleLine="true" />
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.PhoneStatusBarView android:orientation="vertical" android:id="@id/status_bar" android:background="@drawable/status_bar_background" android:focusable="true" android:fitsSystemWindows="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<ImageView android:id="@id/notification_lights_out" android:paddingBottom="2.0dip" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_lights_out_dot_small" android:scaleType="center" android:paddingStart="6.0dip" />
<LinearLayout android:orientation="horizontal" android:id="@id/status_bar_contents" android:layout_width="fill_parent" android:layout_height="fill_parent" android:paddingStart="6.0dip" android:paddingEnd="6.0dip">
<LinearLayout android:orientation="horizontal" android:id="@id/notification_icon_area" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
[COLOR="Red"][B] <TextView android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="left|center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:text="@string/hello" android:singleLine="true" />[/B][/COLOR]
<com.android.systemui.statusbar.StatusBarIconView android:id="@id/moreIcon" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/stat_notify_more" />
<com.android.systemui.statusbar.phone.IconMerger android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/notificationIcons" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentStart="true" />
</LinearLayout>
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent">
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
</LinearLayout>
<LinearLayout android:gravity="right|center" android:orientation="horizontal" android:id="@id/system_icon_area" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
<LinearLayout android:gravity="right|center" android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<LinearLayout android:gravity="right|center" android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:paddingLeft="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent">
<com.android.systemui.statusbar.policy.Traffic android:textAppearance="@style/TextAppearance.StatusBar.Traffic" android:gravity="left|center" android:id="@id/traffic" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_view" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Battery" android:gravity="center" android:id="@id/battery_text" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
<com.erryy.BatteryText android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textSize="12.0dip" android:gravity="center" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="-3.0dip" android:singleLine="true" />
<ImageView android:id="@id/battery" android:layout_width="wrap_content" android:layout_height="wrap_content" android:paddingStart="4.0dip" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id="@id/ticker" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent" android:paddingStart="6.0dip">
<ImageSwitcher android:id="@id/tickerIcon" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:layout_marginEnd="4.0dip">
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:scaleType="center" />
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:scaleType="center" />
</ImageSwitcher>
<com.android.systemui.statusbar.phone.TickerView android:id="@id/tickerText" android:paddingTop="2.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0" android:paddingEnd="10.0dip">
<TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
</com.android.systemui.statusbar.phone.TickerView>
</LinearLayout>
</com.android.systemui.statusbar.phone.PhoneStatusBarView>
"android:textAppearance="@style/TextAppearance.StatusBar.Clock" means that your custom text will have same colors and dimensions defined for clock (these are defined in /values/styles: 16dip and Holo Blue Light ).
If You want to add Your dip and your preferred color, just replaces above line with this:
android:textSize="15.0dip" android:textColor="#ffa6a6a6"
Code:
<TextView [COLOR="Red"]android:textSize="15.0dip" android:textColor="#ffa6a6a6"[/COLOR] android:gravity="left|center" android:layout_width="wrap_content" android:layout_height="fill_parent" android:text="@string/hello" android:singleLine="true" />
You can change text color and size to fit your needs.
android:textSize="x.0dip"
and android:textColor="#hex code of Your preferred color"
for example #DD4814 is Ubuntu Orange
5) Now, the last step:
Navigate to res/values/string
and add this at the end of the file:
Code:
<string name="hello">Your text here</string>
ex:
Code:
<string name="hello">ivn888</string>
Like this example:
Code:
... <string name="quick_settings_rssi_label">RSSI</string>
<string name="quick_settings_rssi_emergency_only">Emergency Calls Only</string>
<string name="quick_settings_settings_label">Settings</string>
<string name="quick_settings_time_label">Time</string>
<string name="quick_settings_user_label">Me</string>
<string name="quick_settings_wifi_label">Wi-Fi</string>
<string name="quick_settings_wifi_not_connected">Not Connected</string>
<string name="quick_settings_wifi_no_network">No Network</string>
<string name="quick_settings_wifi_off_label">Wi-Fi Off</string>
<string name="quick_settings_wifi_display_label">Wi-Fi Display</string>
<string name="quick_settings_wifi_display_no_connection_label">Wireless Display</string>
<string name="quick_settings_brightness_dialog_title">Brightness</string>
<string name="quick_settings_brightness_dialog_auto_brightness_label">AUTO</string>
<string name="status_bar_help_title">Notifications appear here</string>
<string name="status_bar_help_text">"Access them anytime by swiping down.
Swipe down again for system controls."</string>
<string name="accessibility_sleep_button">Sleep button.</string>
[COLOR="Red"]<string name="hello">Your text here</string>[/COLOR]
</resources>
6) Recompile back ... enjoy!!
​
CREDITS:
:good:enricocid:good:​
Nice share bro ..will try some day ..
Sent from my Nexus 7 using xda premium
Thanks for the info,could be useful to others
Sent from my Nexus 7 using XDA Premium 4 mobile app

[GUIDE][MOD][4.4-5.X]Dual-Lines Statusbar (plus Extra Mod's)

Hello XDA
================================================
Perhaps only a few people are interested about this, because the size of statusbar wider/higher and make your device screen "such as" narrowing. But it's okay. This is just for fun, as well as theming which became one of the fun things in the android world.
So, Heyho Let's Go
!!
================================================
Only a few are required:
All the things needed for de / recompiling apk
Please backup your previous ROM
Don't be too serious
## For kitkat look at #3 ​===============
STEP-BY-STEP
===============
V.1
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
​
1. Framework-res.apk
Open your dimens.xml
Find this :​
PHP:
<dimen name="status_bar_height">25.0dip</dimen>
<dimen name="navigation_bar_height">48.0dip</dimen>
<dimen name="navigation_bar_height_landscape">48.0dip</dimen>
Change to :​
PHP:
<dimen name="status_bar_height">50.0dip</dimen>
<dimen name="navigation_bar_height">45.0dip</dimen>
<dimen name="navigation_bar_height_landscape">45.0dip</dimen>
Click to expand...
Click to collapse
Sometimes, if we make any changes in framework-res.apk, can make SystemUI be a mess. If you want to do this without touching framework-res.apk, add all the above lines into your framework-res overlay apk.
(Ex: android-res-305.apk in my ROM)
Click to expand...
Click to collapse
Done
2. SystemUI.apk
1. system_icons.xml OR msim_system_icons.xml
Compare my base layout with stock layout / yours
Stock layout :​
PHP:
<LinearLayout android:gravity="center_vertical" android:id="@id/system_icons" android:layout_width="wrap_content" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<com.android.keyguard.AlphaOptimizedLinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<include android:id="@id/msim_signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="2.5dip" layout="@layout/msim_signal_cluster_view" />
<com.android.systemui.BatteryMeterView android:id="@id/battery" android:visibility="gone" android:layout_width="9.5dip" android:layout_height="14.5dip" android:layout_marginBottom="@dimen/battery_margin_bottom" android:layout_marginStart="7.0dip" />
<LinearLayout android:id="@id/somc_battery" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginStart="4.0dip">
<ImageView android:layout_gravity="center_vertical" android:id="@id/status" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<LinearLayout android:id="@id/battery_meter" android:layout_width="wrap_content" android:layout_height="fill_parent">
<ImageView android:layout_gravity="center_vertical" android:id="@id/battery_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:layout_gravity="center_vertical" android:id="@id/stamina_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
<FrameLayout android:id="@id/battery_percent" android:layout_width="wrap_content" android:layout_height="fill_parent">
<com.sonymobile.systemui.statusbar.BatteryImage android:layout_gravity="start|center" android:id="@id/battery_percent_bg" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</FrameLayout>
</LinearLayout>
</LinearLayout>
New base layout structure :​
PHP:
<LinearLayout android:id="@id/system_icons" android:layout_width="fill_parent" android:layout_height="wrap_content" android:gravity="center|right" android:orientation="vertical" android:layout_toEndOf="@+id/fun_c"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:id="@+id/fun_rtop" android:layout_width="wrap_content" android:layout_height="25.0dip" android:layout_gravity="right" android:orientation="horizontal">
## Everything that is in here, will be in the RIGHT TOP lines on your statusbar
</LinearLayout>
<LinearLayout android:id="@+id/fun_rbottom" android:layout_width="wrap_content" android:layout_height="25.0dip" android:orientation="horizontal">
## Everything that is in here, will be in the RIGHT BOTTOM lines on your statusbar
</LinearLayout>
</LinearLayout>
Click to expand...
Click to collapse
NOTES :
I changed @id/system_icons layout, to be like this
PHP:
android:id="@id/system_icons"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:gravity="center|right"
android:orientation="vertical"
android:layout_toEndOf="@+id/fun_c"
I made two new linear layout, id's, with a height of each 25.0dip
Click to expand...
Click to collapse
Next, re-arrangement id's
Put these id's into RIGHT TOP lines space (@+id/fun_rtop)
Code:
@id/statusIcons
@id/battery
@id/somc_battery
Put these id into RIGHT BOTTOM lines space (@+id/fun_rbottom)
Code:
@id/signal_cluster OR @id/msim_signal_cluster
Click to expand...
Click to collapse
The result will look like this
PHP:
<LinearLayout android:id="@id/system_icons" android:layout_width="fill_parent" android:layout_height="wrap_content" android:gravity="center|right" android:orientation="vertical" android:layout_toEndOf="@+id/fun_c"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:id="@+id/fun_rtop" android:layout_width="wrap_content" android:layout_height="25.0dip" android:layout_gravity="right" android:orientation="horizontal">
<com.android.keyguard.AlphaOptimizedLinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<com.android.systemui.BatteryMeterView android:id="@id/battery" android:visibility="gone" android:layout_width="9.5dip" android:layout_height="14.5dip" android:layout_marginBottom="@dimen/battery_margin_bottom" android:layout_marginStart="7.0dip" />
<LinearLayout android:id="@id/somc_battery" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginStart="4.0dip">
<ImageView android:layout_gravity="center_vertical" android:id="@id/status" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<LinearLayout android:id="@id/battery_meter" android:layout_width="wrap_content" android:layout_height="fill_parent">
<ImageView android:layout_gravity="center_vertical" android:id="@id/battery_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:layout_gravity="center_vertical" android:id="@id/stamina_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
<FrameLayout android:id="@id/battery_percent" android:layout_width="wrap_content" android:layout_height="fill_parent">
<com.sonymobile.systemui.statusbar.BatteryImage android:layout_gravity="start|center" android:id="@id/battery_percent_bg" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</FrameLayout>
</LinearLayout>
</LinearLayout>
<LinearLayout android:id="@+id/fun_rbottom" android:layout_width="wrap_content" android:layout_height="25.0dip" android:orientation="horizontal">
<include android:id="@id/msim_signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="2.5dip" layout="@layout/msim_signal_cluster_view" />
</LinearLayout>
</LinearLayout>
Click to expand...
Click to collapse
2. status_bar.xml OR msim_status_bar.xml
From the screenshot in OP, we can see the clock, day and date in the middle of the status bar. And that means we need to HIDE it all while on the lock screen. Maybe it could be done by editing the smali codes (for experts), but unfortunately I am not an expert haha .
So I looked for another methods, it's impractical and an imperfect, but it works.
The key is : Do not kick them out from AlphaOptimized layouts
Click to expand...
Click to collapse
Now, we'll just change the layout @id/status_bar_content only.
Compare 2 layout below
Stock Layout :​
PHP:
<LinearLayout android:orientation="horizontal" android:id="@id/status_bar_contents" android:layout_width="fill_parent" android:layout_height="fill_parent" android:paddingStart="6.0dip" android:paddingEnd="8.0dip">
<com.android.systemui.statusbar.AlphaOptimizedFrameLayout android:orientation="horizontal" android:id="@id/notification_icon_area" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
<com.android.keyguard.AlphaOptimizedLinearLayout android:id="@id/notification_icon_area_inner" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.StatusBarIconView android:id="@id/moreIcon" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/stat_notify_more" />
<com.android.keyguard.CarrierText android:textAppearance="?android:textAppearanceSmall" android:textColor="@color/carrier_text_color" android:ellipsize="marquee" android:gravity="center_vertical" android:id="@id/carrier_text" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
<com.android.systemui.statusbar.phone.IconMerger android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/notificationIcons" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentStart="true" />
</com.android.keyguard.AlphaOptimizedLinearLayout>
</com.android.systemui.statusbar.AlphaOptimizedFrameLayout>
<com.android.keyguard.AlphaOptimizedLinearLayout android:orientation="horizontal" android:id="@id/system_icon_area" android:layout_width="wrap_content" android:layout_height="fill_parent">
<include layout="@layout/msim_system_icons" />
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="start|center" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:paddingStart="7.0dip" />
</com.android.keyguard.AlphaOptimizedLinearLayout>
</LinearLayout>
New base layout structure :​
PHP:
<LinearLayout android:orientation="horizontal" android:id="@id/status_bar_contents" android:layout_width="fill_parent" android:layout_height="fill_parent" >
<com.android.systemui.statusbar.AlphaOptimizedFrameLayout android:id="@id/notification_icon_area" android:layout_width="0.0dip" android:layout_height="fill_parent" android:orientation="horizontal">
<com.android.keyguard.AlphaOptimizedLinearLayout android:id="@id/notification_icon_area_inner" android:layout_width="wrap_content" android:layout_height="fill_parent" android:orientation="vertical" android:paddingStart="6.0dip">
<LinearLayout android:id="@+id/fun_ltop" android:layout_width="wrap_content" android:layout_height="25.0dip" android:orientation="horizontal">
## Everything that is in here, will be in the LEFT TOP lines on your statusbar
</LinearLayout>
<LinearLayout android:id="@+id/fun_lbottom" android:layout_width="wrap_content" android:layout_height="25.0dip" android:orientation="horizontal">
## Everything that is in here, will be in the LEFT BOTTOM lines on your statusbar
</LinearLayout>
</com.android.keyguard.AlphaOptimizedLinearLayout>
<com.android.keyguard.AlphaOptimizedLinearLayout android:id="@id/system_icon_area" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_gravity="end" android:orientation="horizontal" android:paddingEnd="6.0dip">
<RelativeLayout android:id="@+id/fun_r" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:id="@+id/fun_c" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_centerInParent="true" android:layout_gravity="center" android:gravity="center" android:orientation="vertical" >
## Everything that is in here, will be in the CENTER on your statusbar
</LinearLayout>
</RelativeLayout>
</com.android.keyguard.AlphaOptimizedLinearLayout>
</com.android.systemui.statusbar.AlphaOptimizedFrameLayout>
</LinearLayout>
Click to expand...
Click to collapse
Next, re-arrangement id's
Put these id into LEFT TOP lines space (@+id/fun_ltop)
Code:
@id/notificationIcons
Put these id's into LEFT BOTTOM lines space (@+id/fun_lbottom)
Code:
@id/carrier_text
@id/moreIcon
Put these id into CENTER lines space (@+id/fun_c)
Code:
@id/clock
Click to expand...
Click to collapse
The result will look like this
PHP:
<LinearLayout android:id="@id/status_bar_contents" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="horizontal" >
<com.android.systemui.statusbar.AlphaOptimizedFrameLayout android:id="@id/notification_icon_area" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="horizontal">
<com.android.keyguard.AlphaOptimizedLinearLayout android:id="@id/notification_icon_area_inner" android:layout_width="wrap_content" android:layout_height="fill_parent" android:orientation="vertical" android:paddingStart="6.0dip">
<LinearLayout android:id="@+id/fun_ltop" android:layout_width="wrap_content" android:layout_height="25.0dip" android:orientation="horizontal">
<com.android.systemui.statusbar.phone.IconMerger android:id="@id/notificationIcons" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentStart="true" android:gravity="center_vertical" android:orientation="horizontal" />
</LinearLayout>
<LinearLayout android:id="@+id/fun_lbottom" android:layout_width="wrap_content" android:layout_height="25.0dip" android:orientation="horizontal">
<com.android.keyguard.CarrierText android:id="@id/carrier_text" android:layout_width="wrap_content" android:layout_height="fill_parent" android:ellipsize="marquee" android:gravity="center_vertical" android:singleLine="true" android:textAppearance="?android:textAppearanceSmall" android:textColor="@color/carrier_text_color" android:visibility="gone" />
<com.android.systemui.statusbar.StatusBarIconView android:id="@id/moreIcon" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/stat_notify_more" android:visibility="gone" />
</LinearLayout>
</com.android.keyguard.AlphaOptimizedLinearLayout>
<com.android.keyguard.AlphaOptimizedLinearLayout android:id="@id/system_icon_area" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_gravity="end" android:orientation="horizontal" android:paddingEnd="6.0dip">
<RelativeLayout android:id="@+id/fun_r" android:layout_width="fill_parent" android:layout_height="fill_parent">
<include layout="@layout/msim_system_icons" />
<LinearLayout android:id="@+id/fun_c" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_centerInParent="true" android:layout_gravity="center" android:gravity="center" android:orientation="vertical" >
<com.android.systemui.statusbar.policy.Clock android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center" android:singleLine="true" android:textAppearance="@style/TextAppearance.StatusBar.Clock" />
</LinearLayout>
</RelativeLayout>
</com.android.keyguard.AlphaOptimizedLinearLayout>
</com.android.systemui.statusbar.AlphaOptimizedFrameLayout>
</LinearLayout>
Click to expand...
Click to collapse
3. keyguard_status_bar.xml OR msim_keyguard_status_bar.xml
All that is in the middle of the statusbar, have been hidden. Now it's time to set the lockscreen statusbar
Click to expand...
Click to collapse
Compare 2 layout below
Stock layout​
PHP:
<com.android.systemui.statusbar.phone.KeyguardStatusBarView android:id="@id/keyguard_header" android:layout_width="fill_parent" android:layout_height="@dimen/status_bar_header_height_keyguard" android:baselineAligned="false"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<com.android.systemui.statusbar.phone.MultiUserSwitch android:id="@id/multi_user_switch" android:background="@drawable/ripple_drawable" android:layout_width="@dimen/multi_user_switch_width_keyguard" android:layout_height="@dimen/status_bar_header_height_keyguard" android:layout_marginEnd="@dimen/multi_user_switch_keyguard_margin" android:layout_alignParentEnd="true">
<ImageView android:layout_gravity="center" android:id="@id/multi_user_avatar" android:layout_width="@dimen/multi_user_avatar_keyguard_size" android:layout_height="@dimen/multi_user_avatar_keyguard_size" android:scaleType="centerInside" />
</com.android.systemui.statusbar.phone.MultiUserSwitch>
<LinearLayout android:id="@id/system_icons_super_container" android:layout_width="wrap_content" android:layout_height="@dimen/status_bar_header_height" android:layout_alignWithParentIfMissing="true" android:paddingEnd="@dimen/system_icons_keyguard_padding_end" android:layout_marginStart="16.0dip" android:layout_toStartOf="@id/multi_user_switch">
<FrameLayout android:layout_gravity="center_vertical" android:id="@id/system_icons_container" android:layout_width="wrap_content" android:layout_height="@dimen/status_bar_height">
<include layout="@layout/msim_system_icons" />
</FrameLayout>
<TextView android:textSize="@dimen/battery_level_text_size" android:textColor="#ffffffff" android:layout_gravity="center_vertical" android:id="@id/battery_level" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:importantForAccessibility="noHideDescendants" android:paddingEnd="@dimen/battery_level_padding_end" android:layout_marginStart="@dimen/header_battery_margin_keyguard" />
</LinearLayout>
<com.android.keyguard.CarrierText android:textAppearance="?android:textAppearanceSmall" android:textColor="#ffffffff" android:ellipsize="marquee" android:gravity="center_vertical" android:layout_gravity="center_vertical" android:id="@id/keyguard_carrier_text" android:layout_width="fill_parent" android:layout_height="@dimen/status_bar_header_height_keyguard" android:singleLine="true" android:layout_marginStart="@dimen/keyguard_carrier_text_margin" android:layout_toStartOf="@id/system_icons_super_container" />
</com.android.systemui.statusbar.phone.KeyguardStatusBarView>
Modded layout​
PHP:
<com.android.systemui.statusbar.phone.KeyguardStatusBarView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui" android:id="@id/keyguard_header" android:layout_width="fill_parent" android:layout_height="@dimen/status_bar_header_height_keyguard" android:baselineAligned="false" android:paddingEnd="6.0dip" android:paddingStart="6.0dip">
<com.android.keyguard.CarrierText android:id="@id/keyguard_carrier_text" android:layout_width="fill_parent" android:layout_height="25.0dip" android:layout_alignParentBottom="true" android:layout_alignParentStart="true" android:layout_gravity="center_vertical" android:layout_toStartOf="@id/multi_user_switch" android:ellipsize="marquee" android:gravity="center_vertical" android:singleLine="true" android:textAppearance="?android:textAppearanceSmall" android:textColor="#ffffffff" />
<com.android.systemui.statusbar.phone.MultiUserSwitch android:id="@id/multi_user_switch" android:layout_width="@dimen/multi_user_switch_width_keyguard" android:layout_height="@dimen/status_bar_header_height_keyguard" android:layout_centerHorizontal="true" android:background="@drawable/ripple_drawable">
<ImageView android:id="@id/multi_user_avatar" android:layout_width="@dimen/multi_user_avatar_keyguard_size" android:layout_height="@dimen/multi_user_avatar_keyguard_size" android:layout_gravity="center" android:scaleType="centerInside" />
</com.android.systemui.statusbar.phone.MultiUserSwitch>
<LinearLayout android:id="@id/system_icons_super_container" android:layout_width="fill_parent" android:layout_height="@dimen/status_bar_header_height" android:layout_alignParentEnd="true" android:layout_alignWithParentIfMissing="true" android:layout_toEndOf="@id/multi_user_switch" android:gravity="end">
<FrameLayout android:id="@id/system_icons_container" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_gravity="center_vertical">
<include layout="@layout/msim_system_icons" />
</FrameLayout>
<TextView android:id="@id/battery_level" android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_gravity="center_vertical" android:importantForAccessibility="noHideDescendants" android:textColor="#ffffffff" android:textSize="@dimen/battery_level_text_size" android:visibility="gone" />
</LinearLayout>
</com.android.systemui.statusbar.phone.KeyguardStatusBarView>
Click to expand...
Click to collapse
NOTES :
I hide the battery percentage = @id/battery_level
PHP:
<TextView android:id="@id/battery_level"
android:layout_width="0.0dip"
android:layout_height="0.0dip"
android:layout_gravity="center_vertical"
android:importantForAccessibility="noHideDescendants"
android:textColor="#ffffffff"
android:textSize="@dimen/battery_level_text_size"
android:visibility="gone" />
Moving @id/multi_user_switch to the center. And @id/system_icons_super_container to the right.
Click to expand...
Click to collapse
4. dimens.xml
Find this :​
PHP:
<dimen name="status_bar_header_height_keyguard">40.0dip</dimen>
<dimen name="multi_user_switch_width_keyguard">34.0dip</dimen>
<dimen name="multi_user_avatar_keyguard_size">22.0dip</dimen>
Change the values to be like this :​
PHP:
<dimen name="status_bar_header_height_keyguard">50.0dip</dimen>
<dimen name="multi_user_switch_width_keyguard">46.0dip</dimen>
<dimen name="multi_user_avatar_keyguard_size">40.0dip</dimen>
Click to expand...
Click to collapse
5. Done & Enjoy !!​
This method doesn't touch any smali's., so I think it could work in ODEX or DEODEX ROM
If there was a mistake of the above methods, or doesn't works, please let me know.​
V.2
​1. Framework-res.apk === Look at V.1
2. SystemUI.apk
1. status_bar.xml OR msim_status_bar.xml
Now, we'll just change the layout @id/status_bar_content only.
Look at my new base layout
PHP:
<LinearLayout android:id="@id/status_bar_contents" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="horizontal" android:paddingEnd="6.0dip" android:paddingStart="6.0dip">
<com.android.systemui.statusbar.AlphaOptimizedFrameLayout android:id="@id/notification_icon_area" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" android:orientation="horizontal">
<com.android.keyguard.AlphaOptimizedLinearLayout android:id="@id/notification_icon_area_inner" android:layout_width="fill_parent" android:layout_height="25.0dp" >
<RelativeLayout android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:id="@+id/fun_ltop" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_alignParentStart="true" android:orientation="horizontal" >
## Everything that is in here, will be in the LEFT on your TOP line
</LinearLayout>
<LinearLayout android:id="@+id/fun_ctop" android:layout_width="wrap_content" android:layout_height="fill_parent" android:orientation="horizontal" android:layout_centerInParent="true" >
## Everything that is in here, will be in the CENTER on your TOP line
</LinearLayout>
<LinearLayout android:id="@+id/fun_rtop" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_alignParentEnd="true" android:gravity="end" android:orientation="horizontal" >
## Everything that is in here, will be in the RIGHT on your TOP line
</LinearLayout>
</RelativeLayout>
</com.android.keyguard.AlphaOptimizedLinearLayout>
<com.android.keyguard.AlphaOptimizedLinearLayout android:id="@id/system_icon_area" android:layout_width="fill_parent" android:layout_height="25.0dp" android:layout_gravity="bottom" android:orientation="horizontal">
<LinearLayout android:id="@+id/fun_lbottom" android:layout_width="wrap_content" android:layout_height="fill_parent" android:orientation="horizontal">
## Everything that is in here, will be in the LEFT on your BOTTOM line
</LinearLayout>
<LinearLayout android:id="@+id/fun_rbottom" android:layout_width="fill_parent" android:layout_height="fill_parent" android:gravity="end" android:orientation="horizontal">
## Everything that is in here, will be in the RIGHT on your BOTTOM line
</LinearLayout>
</com.android.keyguard.AlphaOptimizedLinearLayout>
</com.android.systemui.statusbar.AlphaOptimizedFrameLayout>
</LinearLayout>
Click to expand...
Click to collapse
Next, re-arrangement id's
Put these id into LEFT BOTTOM lines space (@+id/fun_lbottom)
Code:
@id/moreIcon
@id/carrier_text
@id/notificationIcons
Put these lines into RIGHT BOTTOM lines space (@+id/fun_rbottom)
PHP:
<include layout="@layout/msim_system_icons" />
I made the the top line to adjust clock position (and other mods if you have). So put @id/clock in the position you want, but remain in the the top line. Just for example , this is for center clock
PHP:
<LinearLayout android:id="@+id/fun_c_top" android:layout_width="wrap_content" android:layout_height="fill_parent" android:orientation="horizontal" android:layout_centerInParent="true" >
<com.android.systemui.statusbar.policy.ClockCenter android:id="@id/center_clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:gravity="center" android:paddingEnd="8.0dp" android:paddingStart="8.0dp" android:singleLine="true" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:visibility="gone" />
</LinearLayout>
Click to expand...
Click to collapse
The result will look like this
PHP:
<LinearLayout android:id="@id/status_bar_contents" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="horizontal" android:paddingEnd="6.0dip" android:paddingStart="6.0dip">
<com.android.systemui.statusbar.AlphaOptimizedFrameLayout android:id="@id/notification_icon_area" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" android:orientation="horizontal">
<com.android.keyguard.AlphaOptimizedLinearLayout android:id="@id/notification_icon_area_inner" android:layout_width="fill_parent" android:layout_height="25.0dp" >
<RelativeLayout android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:id="@+id/fun_l_top" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_alignParentStart="true" android:orientation="horizontal" />
<LinearLayout android:id="@+id/fun_c_top" android:layout_width="wrap_content" android:layout_height="fill_parent" android:orientation="horizontal" android:layout_centerInParent="true" >
<com.android.systemui.statusbar.policy.Clock android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:gravity="center" android:paddingEnd="8.0dp" android:paddingStart="8.0dp" android:singleLine="true" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:visibility="gone" />
</LinearLayout>
<LinearLayout android:id="@+id/fun_r_top" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_alignParentEnd="true" android:gravity="end" android:orientation="horizontal" />
</RelativeLayout>
</com.android.keyguard.AlphaOptimizedLinearLayout>
<com.android.keyguard.AlphaOptimizedLinearLayout android:id="@id/system_icon_area" android:layout_width="fill_parent" android:layout_height="25.0dp" android:layout_gravity="bottom" android:orientation="horizontal">
<LinearLayout android:id="@+id/fun_l_bottom" android:layout_width="wrap_content" android:layout_height="fill_parent" android:orientation="horizontal">
<com.android.systemui.statusbar.StatusBarIconView android:id="@id/moreIcon" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/stat_notify_more" android:visibility="gone" />
<com.android.keyguard.CarrierText android:id="@id/carrier_text" android:layout_width="wrap_content" android:layout_height="fill_parent" android:ellipsize="marquee" android:gravity="center_vertical" android:singleLine="true" android:textAppearance="?android:textAppearanceSmall" android:textColor="@color/carrier_text_color" android:visibility="gone" />
<com.android.systemui.statusbar.phone.IconMerger android:id="@id/notificationIcons" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentStart="true" android:gravity="center_vertical" android:orientation="horizontal" />
</LinearLayout>
<LinearLayout android:id="@+id/fun_r_bottom" android:layout_width="fill_parent" android:layout_height="fill_parent" android:gravity="end" android:orientation="horizontal">
<include layout="@layout/msim_system_icons" />
</LinearLayout>
</com.android.keyguard.AlphaOptimizedLinearLayout>
</com.android.systemui.statusbar.AlphaOptimizedFrameLayout>
</LinearLayout>
Click to expand...
Click to collapse
2. keyguard_status_bar.xml OR msim_keyguard_status_bar.xml
Look at my modded layout
PHP:
<com.android.systemui.statusbar.phone.KeyguardStatusBarView android:id="@id/keyguard_header" android:layout_width="fill_parent" android:layout_height="@dimen/status_bar_header_height_keyguard" android:baselineAligned="false" android:paddingStart="6.0dip" android:paddingEnd="6.0dip"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<com.android.keyguard.CarrierText android:textAppearance="?android:textAppearanceSmall" android:textColor="#ffffffff" android:ellipsize="marquee" android:gravity="center_vertical" android:id="@id/keyguard_carrier_text" android:layout_alignParentTop="true" android:layout_width="fill_parent" android:layout_height="25.0dip" android:singleLine="true" android:layout_toStartOf="@id/multi_user_switch" android:layout_alignParentStart="true" />
<TextView android:id="@+id/profile_runtext" android:gravity="center" android:background="#00000000" android:layout_width="200.0dp" android:layout_height="20.0dip" android:singleLine="true" android:layout_alignParentBottom="true" android:layout_centerHorizontal="true" />
<com.android.systemui.statusbar.phone.MultiUserSwitch android:id="@id/multi_user_switch" android:background="@drawable/ripple_drawable" android:layout_width="@dimen/multi_user_switch_width_keyguard" android:layout_height="@dimen/multi_user_switch_width_keyguard" android:layout_centerHorizontal="true">
<ImageView android:layout_gravity="center" android:id="@id/multi_user_avatar" android:layout_width="@dimen/multi_user_avatar_keyguard_size" android:layout_height="@dimen/multi_user_avatar_keyguard_size" android:scaleType="centerInside" />
</com.android.systemui.statusbar.phone.MultiUserSwitch>
<LinearLayout android:gravity="end" android:id="@id/system_icons_super_container" android:layout_width="fill_parent" android:layout_height="25.0dp" android:layout_alignWithParentIfMissing="true" android:layout_toEndOf="@id/multi_user_switch" android:layout_alignParentEnd="true">
<FrameLayout android:layout_gravity="center_vertical" android:id="@id/system_icons_container" android:layout_width="wrap_content" android:layout_height="fill_parent">
<include layout="@layout/msim_system_icons" />
</FrameLayout>
<TextView android:textSize="@dimen/battery_level_text_size" android:textColor="#ffffffff" android:layout_gravity="center_vertical" android:id="@id/battery_level" android:visibility="gone" android:layout_width="0.0dip" android:layout_height="0.0dip" android:importantForAccessibility="noHideDescendants" />
</LinearLayout>
</com.android.systemui.statusbar.phone.KeyguardStatusBarView>
Click to expand...
Click to collapse
Look at @+id/profile_runtext from above codes. You can change that lines with yours. But my suggestion, please to use the same attributes.
PHP:
android:gravity="center"
android:layout_height="20.0dip" ##Maximal of height is 20.0dp
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true" />
Click to expand...
Click to collapse
3. dimens.xml
Find this :​
PHP:
<dimen name="status_bar_header_height_keyguard">40.0dip</dimen>
<dimen name="multi_user_switch_width_keyguard">34.0dip</dimen>
<dimen name="multi_user_avatar_keyguard_size">22.0dip</dimen>
Change the values to be like this :​
PHP:
<dimen name="status_bar_header_height_keyguard">50.0dip</dimen>
<dimen name="multi_user_switch_width_keyguard">30.0dip</dimen>
<dimen name="multi_user_avatar_keyguard_size">26.0dip</dimen>
Click to expand...
Click to collapse
4. Done & Enjoy !!​================================================​
3. Extra Mod's (Optional)
V.1
1. Day, date, and seconds in clock
Open status_bar.xml OR msim_status_bar.xml
Hide your stock @id/clock (DON'T DELETE)
Add this :​
PHP:
android:visibility="gone"
If doesn't work, change to be like this :​
PHP:
android:layout_height="0.0dip"
android:layout_width="0.0dip"
Click to expand...
Click to collapse
Add this lines below your stock @id/clock :
PHP:
<TextClock android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:format12Hour="@string/status_bar_clock_12hr_format" android:format24Hour="@string/status_bar_clock_24hr_format" android:gravity="center" android:singleLine="true" android:textAppearance="@style/TextAppearance.StatusBar.Clock" />
<com.android.systemui.statusbar.policy.DateView android:id="@+id/date_statbar" android:layout_width="wrap_content" android:layout_height="wrap_content" android:datePattern="@string/status_bar_date_format" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textSize="10.0dip" />
Click to expand...
Click to collapse
Add this lines above your stock @id/clock :
PHP:
<com.android.systemui.statusbar.policy.DateView android:id="@+id/day_statbar" android:layout_width="wrap_content" android:layout_height="wrap_content" android:datePattern="@string/status_bar_day_format" android:textAllCaps="true" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textSize="10.0dip" />
Click to expand...
Click to collapse
So the layout should be like this :
PHP:
<LinearLayout android:id="@+id/fun_c" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_centerInParent="true" android:layout_gravity="center" android:gravity="center" android:orientation="vertical" android:paddingEnd="4.0dip" android:paddingStart="4.0dip" >
<com.android.systemui.statusbar.policy.DateView android:id="@+id/day_statbar" android:layout_width="wrap_content" android:layout_height="wrap_content" android:datePattern="@string/status_bar_day_format" android:textAllCaps="true" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textSize="10.0dip" />
<com.android.systemui.statusbar.policy.Clock android:id="@id/clock" android:layout_width="0.0dip" android:layout_height="0.0dip" android:gravity="center" android:singleLine="true" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:visibility="gone" />
<TextClock android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:format12Hour="@string/status_bar_clock_12hr_format" android:format24Hour="@string/status_bar_clock_24hr_format" android:gravity="center" android:singleLine="true" android:textAppearance="@style/TextAppearance.StatusBar.Clock" />
<com.android.systemui.statusbar.policy.DateView android:id="@+id/date_statbar" android:layout_width="wrap_content" android:layout_height="wrap_content" android:datePattern="@string/status_bar_date_format" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textSize="10.0dip" />
</LinearLayout>
Click to expand...
Click to collapse
Open your strings.xml, and add this :
PHP:
<string name="status_bar_clock_12hr_format">h:mm:ss</string>
<string name="status_bar_clock_24hr_format">HH:mm:ss</string>
<string name="status_bar_day_format">EEEE</string>
<string name="status_bar_date_format">dMMMyyyy</string>
Click to expand...
Click to collapse
Done
Some additional info
These few formats that you can use for your pattern in strings.xml​
Code:
Days / Dates
d : 1
dd : 01
EEE : Tue
EEEE : Tuesday
Months
M : 9
MM : 09
MMM : SEP
MMMM : SEPTEMBER
Years
yy : 14
yyyy : 2014
Hours (12 hours)
h : 5
hh : 08
Hours (24 hours)
H : 4/17 (4am)
HH : 4am = 04
Minutes
m : 5
mm : 05
Seconds
s : 7
ss : 07
a : AM/PM
Click to expand...
Click to collapse
2. Statusbar background
Open your status_bar.xml OR msim_status_bar.xml
Add this lines above @id/notification_icon_area_inner
PHP:
<LinearLayout android:id="@+id/fun_statbar_bg" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_gravity="center" android:background="@drawable/YOUR_PNG_FILE_NAME" android:orientation="vertical" />
to be like this :​
PHP:
<com.android.systemui.statusbar.AlphaOptimizedFrameLayout android:id="@id/notification_icon_area" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="horizontal">
<LinearLayout android:id="@+id/fun_statbar_bg" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_gravity="center" android:background="@drawable/YOUR_PNG_FILE_NAME" android:orientation="vertical" />
<com.android.keyguard.AlphaOptimizedLinearLayout android:id="@id/notification_icon_area_inner" android:layout_width="wrap_content" android:layout_height="fill_parent" android:orientation="vertical" android:paddingStart="6.0dip">
Click to expand...
Click to collapse
Put yours PNG / Vector files to the right folder
Done & enjoy !!
3. Date & time background
Open your status_bar.xml OR msim_status_bar.xml
Add this line inside @id/fun_c
PHP:
android:background="@drawable/YOUR_PNG_FILE_NAME"
to be like this :​
PHP:
<LinearLayout android:gravity="center" android:id="@+id/fun_c" android:layout_centerInParent="true" android:layout_gravity="center" android:layout_height="fill_parent" android:layout_width="wrap_content" android:orientation="vertical" android:background="@drawable/YOUR_PNG_FILE_NAME" >
Click to expand...
Click to collapse
Put yours PNG / Vector files to the right folder
Done & enjoy !!
V.2
1. Divider
Put divider files from attachment into properly folder
Add this codes :
PHP:
android:background="@drawable/divider"
For full divider, add above codes into <RelativeLayout tag :
PHP:
<com.android.keyguard.AlphaOptimizedLinearLayout android:id="@id/notification_icon_area_inner" android:layout_width="fill_parent" android:layout_height="25.0dp" >
<RelativeLayout android:background="@drawable/divider" android:layout_width="fill_parent" android:layout_height="fill_parent">
Or if you want have divider like on screenshots (only in the visible layout), add above codes into your active id's. Example from the screenshot :
PHP:
<LinearLayout android:id="@+id/fun_c_top" android:background="@drawable/divider" android:layout_width="wrap_content" android:layout_height="fill_parent" android:orientation="horizontal" android:layout_centerInParent="true" >
<com.android.systemui.statusbar.policy.Clock android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:gravity="center" android:paddingEnd="8.0dp" android:paddingStart="8.0dp" android:singleLine="true" android:textAppearance="@style/TextAppearance.StatusBar.Clock" />
</LinearLayout>
Done
KITKAT
​1. Framework-res.apk === Look at Lollipop section (#1)
2. SystemUI.apk
1. status_bar.xml OR msim_status_bar.xml
Now, we'll just change the @id/status_bar_content contents only.
Look at my new base layout
PHP:
<LinearLayout android:id="@id/status_bar_contents" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="@drawable/statbar_bg" android:orientation="horizontal" >
<LinearLayout android:id="@+id/fun_l" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" android:orientation="vertical" android:paddingStart="6.0dip" >
<LinearLayout android:id="@+id/fun_ltop" android:layout_width="wrap_content" android:layout_height="@dimen/status_bar_split_height" android:orientation="horizontal">
## Everything that is in here, will be in the LEFT on your TOP line
</LinearLayout>
<LinearLayout android:id="@+id/fun_lbottom" android:layout_width="wrap_content" android:layout_height="@dimen/status_bar_split_height" android:orientation="horizontal">
## Everything that is in here, will be in the LEFT on your BOTTOM line
</LinearLayout>
</LinearLayout>
<LinearLayout android:id="@+id/fun_c" android:layout_width="wrap_content" android:layout_height="fill_parent" android:background="@drawable/statbar_cbg" android:gravity="center" android:orientation="vertical" >
## Everything that is in here, will be in the CENTER on your status bar
</LinearLayout>
<LinearLayout android:id="@id/signal_battery_cluster" android:layout_width="0.0dp" android:layout_height="fill_parent" android:layout_weight="1.0" android:gravity="end" android:orientation="vertical" android:paddingEnd="6.0dip" >
<LinearLayout android:id="@+id/fun_rtop" android:layout_width="wrap_content" android:layout_height="@dimen/status_bar_split_height" android:orientation="horizontal">
## Everything that is in here, will be in the RIGHT on your TOP line
</LinearLayout>
<LinearLayout android:id="@+id/fun_rbottom" android:layout_width="wrap_content" android:layout_height="@dimen/status_bar_split_height" android:orientation="horizontal">
## Everything that is in here, will be in the RIGHT on your BOTTOM line
</LinearLayout>
</LinearLayout>
</LinearLayout>
Click to expand...
Click to collapse
Next, re-arrangement id's
Put these id into LEFT TOP lines space (@+id/fun_ltop)
Code:
@id/moreIcon
Put these id's into LEFT BOTTOM lines space (@+id/fun_lbottom)
Code:
@id/notification_icon_area
@id/notificationIcons
Put these id's into CENTER lines space (@+id/fun_c)
Code:
@id/clock
Put these id's into RIGHT TOP lines space (@+id/fun_rtop)
Code:
@id/battery
Put these id's into RIGHT BOTTOM lines space (@+id/fun_rbottom)
Code:
@id/msim_signal_cluster
NOTE !!! Now, find @id/statusIcons in the @id/system_icon_area, and then move to RIGHT TOP lines space (@id/fun_rtop). JUST @id/statusIcons , WITHOUT @id/system_icon_area !!!
The result will look like this
PHP:
<LinearLayout android:id="@id/status_bar_contents" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="@drawable/statbar_bg" android:orientation="horizontal" >
<LinearLayout android:id="@+id/fun_l" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" android:orientation="vertical" android:paddingStart="6.0dip" >
<LinearLayout android:id="@+id/fun_ltop" android:layout_width="wrap_content" android:layout_height="@dimen/status_bar_split_height" android:orientation="horizontal">
<com.android.systemui.statusbar.StatusBarIconView android:id="@id/moreIcon" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/stat_notify_more" android:visibility="gone" />
</LinearLayout>
<LinearLayout android:id="@+id/fun_lbottom" android:layout_width="wrap_content" android:layout_height="@dimen/status_bar_split_height" android:orientation="horizontal">
<com.android.systemui.statusbar.phone.IconPartitioner android:id="@id/notification_icon_area" android:layout_width="wrap_content" android:layout_height="fill_parent" >
<com.android.systemui.statusbar.phone.IconMerger android:id="@id/notificationIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" android:gravity="center_vertical" android:orientation="horizontal" />
<LinearLayout android:id="@id/system_icon_area" android:layout_width="wrap_content" android:layout_height="fill_parent" android:orientation="horizontal" />
</com.android.systemui.statusbar.phone.IconPartitioner>
</LinearLayout>
</LinearLayout>
<LinearLayout android:id="@+id/fun_c" android:layout_width="wrap_content" android:layout_height="fill_parent" android:background="@drawable/statbar_cbg" android:gravity="center" android:orientation="vertical" >
<com.android.systemui.statusbar.policy.Clock android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textStyle="bold" />
</LinearLayout>
<LinearLayout android:id="@id/signal_battery_cluster" android:layout_width="0.0dp" android:layout_height="fill_parent" android:layout_weight="1.0" android:gravity="end" android:orientation="vertical" android:paddingEnd="6.0dip" >
<LinearLayout android:id="@+id/fun_rtop" android:layout_width="wrap_content" android:layout_height="@dimen/status_bar_split_height" android:orientation="horizontal">
<LinearLayout android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" android:gravity="center_vertical" android:orientation="horizontal" />
<LinearLayout android:id="@id/battery" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginStart="4.0dip">
<ImageView android:id="@id/status" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_vertical" />
<LinearLayout android:id="@id/battery_meter" android:layout_width="wrap_content" android:layout_height="fill_parent">
<ImageView android:id="@id/battery_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_vertical" />
<ImageView android:id="@id/stamina_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_vertical" android:src="@drawable/somc_sys_powersaver" />
</LinearLayout>
<FrameLayout android:id="@id/battery_percent" android:layout_width="wrap_content" android:layout_height="fill_parent">
<com.sonymobile.systemui.statusbar.BatteryImage android:id="@id/battery_percent_bg" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="start|center" />
</FrameLayout>
</LinearLayout>
</LinearLayout>
<LinearLayout android:id="@+id/fun_rbottom" android:layout_width="wrap_content" android:layout_height="@dimen/status_bar_split_height" android:orientation="horizontal">
<include android:id="@id/msim_signal_cluster" layout="@layout/msim_signal_cluster_view" android:layout_width="wrap_content" android:layout_height="fill_parent" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
Click to expand...
Click to collapse
2. signal_cluster_view.xml OR msim_signal_cluster_view.xml
Look at first tag, add/change this attribute :
PHP:
android:gravity="end|center_vertical"
Result :
PHP:
<com.android.systemui.statusbar.MSimSignalClusterView android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="end|center_vertical"
xmlns:android="http://schemas.android.com/apk/res/android">
3. dimens.xml
Add this :
PHP:
<dimen name="status_bar_split_height">25.0dip</dimen>
4. Done & Enjoy !!​================================================​
3. Extra Mod's (Optional)
1. Adding day & date
Open status_bar.xml OR msim_status_bar.xml
Find @id/clock
Add this above :
PHP:
<TextClock android:id="@+id/day_statbar" android:layout_width="wrap_content" android:layout_height="wrap_content" android:format12Hour="@string/status_bar_day_format" android:format24Hour="@string/status_bar_day_format" android:paddingBottom="1.0dip" android:singleLine="true" android:textAllCaps="true" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textSize="10.0dip" />
Add this below :
PHP:
<TextClock android:id="@+id/date_statbar" android:layout_width="wrap_content" android:layout_height="wrap_content" android:format12Hour="@string/status_bar_date_format" android:format24Hour="@string/status_bar_date_format" android:paddingTop="1.0dip" android:singleLine="true" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textSize="10.0dip" />
I cant used the same methods from Lollipop, because have a different DateView codes i think. So I tricked it using TextClock. Im sorry
Click to expand...
Click to collapse
So the layout should be like this :
PHP:
<LinearLayout android:id="@+id/fun_c" android:layout_width="wrap_content" android:layout_height="fill_parent" android:background="@drawable/statbar_cbg" android:gravity="center" android:orientation="vertical" >
<TextClock android:id="@+id/day_statbar" android:layout_width="wrap_content" android:layout_height="wrap_content" android:format12Hour="@string/status_bar_day_format" android:format24Hour="@string/status_bar_day_format" android:paddingBottom="1.0dip" android:singleLine="true" android:textAllCaps="true" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textSize="10.0dip" />
<com.android.systemui.statusbar.policy.Clock android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textStyle="bold" />
<TextClock android:id="@+id/date_statbar" android:layout_width="wrap_content" android:layout_height="wrap_content" android:format12Hour="@string/status_bar_date_format" android:format24Hour="@string/status_bar_date_format" android:paddingTop="1.0dip" android:singleLine="true" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textSize="10.0dip" />
</LinearLayout>
Click to expand...
Click to collapse
Open your strings.xml, and add this :
PHP:
<string name="status_bar_day_format">EEEE</string>
<string name="status_bar_date_format">d MMM yyyy</string>
Click to expand...
Click to collapse
Done
2. Statusbar background
Open your status_bar.xml OR msim_status_bar.xml
Find @id/status_bar_contents and add this :
PHP:
android:background="@drawable/YOUR_FILE_NAME"
to be like this :​
PHP:
<LinearLayout android:id="@id/status_bar_contents" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="@drawable/YOUR_FILE_NAME" android:orientation="horizontal" >
Click to expand...
Click to collapse
Put your files to the right folder
Done & enjoy !!
3. Date & time background
Open your status_bar.xml OR msim_status_bar.xml
Find @id/fun_c and add this :
PHP:
android:background="@drawable/YOUR_FILE_NAME"
to be like this :​
PHP:
<LinearLayout android:id="@+id/fun_c" android:layout_width="wrap_content" android:layout_height="fill_parent" android:background="@drawable/YOUR_FILE_NAME" android:gravity="center" android:orientation="vertical" >
Click to expand...
Click to collapse
Put your files to the right folder
Done & enjoy !!
4. Running Text
Find @id/fun_ltop and add this :
PHP:
<TextView android:id="@+id/profile_runtext" android:layout_width="wrap_content" android:layout_height="fill_parent" android:ellipsize="marquee" android:marqueeRepeatLimit="marquee_forever" android:focusable="true" android:focusableInTouchMode="true" android:singleLine="true" android:text="@string/profile_text" android:textAppearance="@style/TextAppearance.StatusBar.Clock" />
to be like this :​
PHP:
<LinearLayout android:id="@+id/fun_ltop" android:layout_width="wrap_content" android:layout_height="@dimen/status_bar_split_height" android:orientation="horizontal">
<com.android.systemui.statusbar.StatusBarIconView android:id="@id/moreIcon" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/stat_notify_more" android:visibility="gone" />
<TextView android:id="@+id/profile_runtext" android:layout_width="wrap_content" android:layout_height="fill_parent" android:ellipsize="marquee" android:marqueeRepeatLimit="marquee_forever" android:focusable="true" android:focusableInTouchMode="true" android:singleLine="true" android:text="@string/profile_text" android:textAppearance="@style/TextAppearance.StatusBar.Clock" />
</LinearLayout
Click to expand...
Click to collapse
Open strings.xml and add this :
PHP:
<string name="profile_text">Watch out!! I can running and scrolling on your status bar</string>
NOTE !!! Your string value must be longer than the layout_width !!!
Done
A very impressive mod and a good tutorial. Good work my friend! :highfive:
And that central clock-day-date is very nicely done - I love the background!
Seems i gat to try dis... Dis looks ****ing awesome!!!
Thanks for dis.. Dis tut makes me remember @Ticklefish
im using 32.0dip for my navigation_bar_height but in yur tut, it was 45.0dip.... is it possible for me to maintain 32.0dip for navigation_bar_height?
Pls mm
D6503 cihazımdan Tapatalk kullanılarak gönderildi
@FunSucker when i used dis codes, i got dis error while compiling....
Code:
<RelativeLayout android:id="@+id/fun_r" android:layout_width="fill_parent" android:layout_height="fill_parent">
<include layout="@layout/system_icons" />
<LinearLayout android:id="@+id/fun_c" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_centerInParent="true" android:layout_gravity="center" android:gravity="center" android:orientation="vertical" android:paddingStart="4.0dip" android:paddingEnd="4.0dip">
<com.android.systemui.statusbar.policy.DateView android:id="@+id/day_statbar" android:layout_width="wrap_content" android:layout_height="wrap_content" android:datePattern="@string/status_bar_day_format" android:textAllCaps="true" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textSize="10.0dip" />
[color=red]Line 24[/color]<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" android:id="@id/clock" android:layout_width="0.0dip" android:layout_height="0.0dip" android:singleLine="true" andoid:visibility="gone" />
<TextClock android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:format12Hour="@string/status_bar_clock_12hr_format" android:format24Hour="@string/status_bar_clock_24hr_format" android:gravity="center" android:singleLine="true" android:textAppearance="@style/TextAppearance.StatusBar.Clock" />
<com.android.systemui.statusbar.policy.DateView android:id="@+id/date_statbar" android:layout_width="wrap_content" android:layout_height="wrap_content" android:datePattern="@string/status_bar_date_format" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textSize="10.0dip" />
</LinearLayout>
</RelativeLayout>
Code:
C:\Users\LaLa-PC\Desktop\AdvancedApkTool\3-Out\SystemUI.apk\res\layout\status_bar.xml:24: error: Error parsing XML: unbound prefix
loving dis tut but tha dock icons shifted down much.... any fix for dat?
i reduced my nav bar size to 32 & it works.:highfive::good:
thanks
I want to 6.0 mm pls??
D6503 cihazımdan Tapatalk kullanılarak gönderildi
yakupTR said:
I want to 6.0 mm pls??
D6503 cihazımdan Tapatalk kullanılarak gönderildi
Click to expand...
Click to collapse
Unfortunately, my phone didn't get an official update to Android 6.0 You can try to compare the layout structure.. If you get stuck, I'll try my best to help.
whalesplaho said:
loving dis tut but tha dock icons shifted down much.... any fix for dat?
i reduced my nav bar size to 32 & it works.:highfive::good:
thanks
Click to expand...
Click to collapse
whalesplaho said:
@FunSucker when i used dis codes, i got dis error while compiling....
Code:
<RelativeLayout android:id="@+id/fun_r" android:layout_width="fill_parent" android:layout_height="fill_parent">
<include layout="@layout/system_icons" />
<LinearLayout android:id="@+id/fun_c" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_centerInParent="true" android:layout_gravity="center" android:gravity="center" android:orientation="vertical" android:paddingStart="4.0dip" android:paddingEnd="4.0dip">
<com.android.systemui.statusbar.policy.DateView android:id="@+id/day_statbar" android:layout_width="wrap_content" android:layout_height="wrap_content" android:datePattern="@string/status_bar_day_format" android:textAllCaps="true" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textSize="10.0dip" />
[color=red]Line 24[/color]<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" android:id="@id/clock" android:layout_width="0.0dip" android:layout_height="0.0dip" android:singleLine="true" andoid:visibility="gone" />
<TextClock android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:format12Hour="@string/status_bar_clock_12hr_format" android:format24Hour="@string/status_bar_clock_24hr_format" android:gravity="center" android:singleLine="true" android:textAppearance="@style/TextAppearance.StatusBar.Clock" />
<com.android.systemui.statusbar.policy.DateView android:id="@+id/date_statbar" android:layout_width="wrap_content" android:layout_height="wrap_content" android:datePattern="@string/status_bar_date_format" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textSize="10.0dip" />
</LinearLayout>
</RelativeLayout>
Code:
C:\Users\LaLa-PC\Desktop\AdvancedApkTool\3-Out\SystemUI.apk\res\layout\status_bar.xml:24: error: Error parsing XML: unbound prefix
Click to expand...
Click to collapse
whalesplaho said:
Seems i gat to try dis... Dis looks ****ing awesome!!!
Thanks for dis.. Dis tut makes me remember @Ticklefish
Click to expand...
Click to collapse
Thanks a lot , sir. and yes! Because I learned from him as well, and I used TMA by @Ticklefish too for decompiling my APKs/JARs haha
About your issue, has it been successfully fixed now? or still error? Did you check all over again?
if still error, can you share your xml ?
Ticklefish said:
A very impressive mod and a good tutorial. Good work my friend! :highfive:
And that central clock-day-date is very nicely done - I love the background!
Click to expand...
Click to collapse
Thanks a lot, sir. Finally, I can make "a something" :laugh: lol
Unfortunately, gradient colors not supported in vector drawables
@FunSucker thanks for yur response.... appreciate!
dis is my status_bar.xml code.. i havent been able to solve tha Clock issue and adjusting tha dock icons too.... please would appreciate yur help!
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.PhoneStatusBarView android:orientation="vertical" android:id="@id/status_bar" android:background="@drawable/system_bar_background" android:focusable="false" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<ImageView android:id="@id/notification_lights_out" android:paddingBottom="2.0dip" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_lights_out_dot_small" android:scaleType="center" android:paddingStart="6.0dip" />
<LinearLayout android:id="@id/status_bar_contents" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="horizontal" >
<TextView android:textSize="14.0dip" android:gravity="center_vertical" android:id="@id/network_label" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:maxLength="@integer/config_operatorNameMaxLength" />
<com.android.systemui.statusbar.AlphaOptimizedFrameLayout android:id="@id/notification_icon_area" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="horizontal">
<com.android.keyguard.AlphaOptimizedLinearLayout android:id="@id/notification_icon_area_inner" android:layout_width="wrap_content" android:layout_height="fill_parent" android:orientation="vertical" android:paddingStart="6.0dip">
<LinearLayout android:id="@+id/fun_ltop" android:layout_width="wrap_content" android:layout_height="25.0dip" android:orientation="horizontal">
<com.android.systemui.statusbar.phone.IconMerger android:id="@id/notificationIcons" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentStart="true" android:gravity="center_vertical" android:orientation="horizontal" />
</LinearLayout>
<LinearLayout android:id="@+id/fun_lbottom" android:layout_width="wrap_content" android:layout_height="25.0dip" android:orientation="horizontal">
<com.android.keyguard.CarrierText android:textAppearance="?android:textAppearanceSmall" android:textColor="#ffffffff" android:ellipsize="marquee" android:gravity="center_vertical" android:id="@id/status_carrier_text" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="@dimen/match_parent" android:singleLine="true" android:layout_marginStart="@dimen/keyguard_carrier_text_margin" />
<com.android.keyguard.CarrierText android:ellipsize="marquee" android:textColor="#ffffffff" android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/expanded_carrier_text" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
<com.android.systemui.statusbar.StatusBarIconView android:id="@id/moreIcon" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/stat_notify_more" />
</LinearLayout>
</com.android.keyguard.AlphaOptimizedLinearLayout>
<com.android.keyguard.AlphaOptimizedLinearLayout android:orientation="horizontal" android:id="@id/system_icon_area" android:layout_width="wrap_content" android:layout_height="fill_parent">
<RelativeLayout android:id="@+id/fun_r" android:layout_width="fill_parent" android:layout_height="fill_parent">
<include layout="@layout/system_icons" />
<LinearLayout android:id="@+id/fun_c" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_centerInParent="true" android:layout_gravity="center" android:gravity="center" android:orientation="vertical" android:paddingStart="4.0dip" android:paddingEnd="4.0dip">
<com.android.systemui.statusbar.policy.DateView android:id="@+id/day_statbar" android:layout_width="wrap_content" android:layout_height="wrap_content" android:datePattern="@string/status_bar_day_format" android:textAllCaps="true" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textSize="10.0dip" />
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" android:id="@id/clock" android:layout_width="0.0dip" android:layout_height="0.0dip" android:singleLine="true" andoid:visibility="gone" />
<TextClock android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:format12Hour="@string/status_bar_clock_12hr_format" android:format24Hour="@string/status_bar_clock_24hr_format" android:gravity="center" android:singleLine="true" android:textAppearance="@style/TextAppearance.StatusBar.Clock" />
<com.android.systemui.statusbar.policy.DateView android:id="@+id/date_statbar" android:layout_width="wrap_content" android:layout_height="wrap_content" android:datePattern="@string/status_bar_date_format" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textSize="10.0dip" />
</LinearLayout>
</RelativeLayout>
</com.android.keyguard.AlphaOptimizedLinearLayout>
</com.android.systemui.statusbar.AlphaOptimizedFrameLayout>
</LinearLayout>
</com.android.systemui.statusbar.phone.PhoneStatusBarView>
---------- Post added at 09:04 PM ---------- Previous post was at 08:10 PM ----------
[/COLOR @FunSucker, i replaced tha clock code with tha default one den i tried compiling but got dis error,
No resource identifier found for attribute 'datePattern' in package 'android'....
im so in love with dis code.... thanks so much @FunSucker!!
just trying codes around.... but still stuck with tha dock icons alignment & date!
after searching tiredless..... i get dis code from my status_bar_expanded_header.xml; since android:datepattern aint recognised
"systemui:datePattern".... so my code was like dis below but tha date format aint good. please sorry for bugging yhu and please help with a vector png for status_bar & data/time background!
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.PhoneStatusBarView android:orientation="vertical" android:id="@id/status_bar" android:background="@drawable/system_bar_background" android:focusable="false" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<ImageView android:id="@id/notification_lights_out" android:paddingBottom="2.0dip" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_lights_out_dot_small" android:scaleType="center" android:paddingStart="6.0dip" />
<LinearLayout android:id="@id/status_bar_contents" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="horizontal" >
<TextView android:textSize="14.0dip" android:gravity="center_vertical" android:id="@id/network_label" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:maxLength="@integer/config_operatorNameMaxLength" />
<com.android.systemui.statusbar.AlphaOptimizedFrameLayout android:id="@id/notification_icon_area" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="horizontal">
<com.android.keyguard.AlphaOptimizedLinearLayout android:id="@id/notification_icon_area_inner" android:layout_width="wrap_content" android:layout_height="fill_parent" android:orientation="vertical" android:paddingStart="6.0dip">
<LinearLayout android:id="@+id/fun_ltop" android:layout_width="wrap_content" android:layout_height="25.0dip" android:orientation="horizontal">
<com.android.systemui.statusbar.phone.IconMerger android:id="@id/notificationIcons" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentStart="true" android:gravity="center_vertical" android:orientation="horizontal" />
</LinearLayout>
<LinearLayout android:id="@+id/fun_lbottom" android:layout_width="wrap_content" android:layout_height="25.0dip" android:orientation="horizontal">
<com.android.keyguard.CarrierText android:textAppearance="?android:textAppearanceSmall" android:textColor="#ffffffff" android:ellipsize="marquee" android:gravity="center_vertical" android:id="@id/status_carrier_text" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="@dimen/match_parent" android:singleLine="true" android:layout_marginStart="@dimen/keyguard_carrier_text_margin" />
<com.android.keyguard.CarrierText android:ellipsize="marquee" android:textColor="#ffffffff" android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/expanded_carrier_text" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
<include layout="@layout/system_icons_network" />
<com.android.systemui.statusbar.StatusBarIconView android:id="@id/moreIcon" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/stat_notify_more" />
</LinearLayout>
</com.android.keyguard.AlphaOptimizedLinearLayout>
<com.android.keyguard.AlphaOptimizedLinearLayout android:orientation="horizontal" android:id="@id/system_icon_area" android:layout_width="wrap_content" android:layout_height="fill_parent">
<RelativeLayout android:id="@+id/fun_r" android:layout_width="fill_parent" android:layout_height="fill_parent">
<include layout="@layout/system_icons_battery" />
<LinearLayout android:id="@+id/fun_c" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_centerInParent="true" android:layout_gravity="center" android:gravity="center" android:orientation="vertical" android:paddingStart="4.0dip" android:paddingEnd="4.0dip">
<com.android.systemui.statusbar.policy.DateView android:id="@+id/day_statbar" android:layout_width="wrap_content" android:layout_height="wrap_content" systemui:datePattern="@string/status_bar_day_format" android:textAllCaps="true" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textSize="10.0dip" />
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="start|center" android:id="@id/clock" android:layout_width="0.0dip" android:layout_height="0.0dip" android:singleLine="true" android:visibility="gone" android:paddingStart="4.0dip" />
<TextClock android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:format12Hour="@string/status_bar_clock_12hr_format" android:format24Hour="@string/status_bar_clock_24hr_format" android:gravity="center" android:singleLine="true" android:textAppearance="@style/TextAppearance.StatusBar.Clock" />
<com.android.systemui.statusbar.policy.DateView android:id="@+id/date_statbar" android:layout_width="wrap_content" android:layout_height="wrap_content" systemui:datePattern="@string/status_bar_date_format" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textSize="10.0dip" />
</LinearLayout>
</RelativeLayout>
</com.android.keyguard.AlphaOptimizedLinearLayout>
</com.android.systemui.statusbar.AlphaOptimizedFrameLayout>
</LinearLayout>
</com.android.systemui.statusbar.phone.PhoneStatusBarView>
whalesplaho said:
@FunSucker thanks for yur response.... appreciate!
dis is my status_bar.xml code.. i havent been able to solve tha Clock issue and adjusting tha dock icons too.... please would appreciate yur help!
---------- Post added at 09:04 PM ---------- Previous post was at 08:10 PM ----------
[/COLOR @FunSucker, i replaced tha clock code with tha default one den i tried compiling but got dis error,
No resource identifier found for attribute 'datePattern' in package 'android'....
Click to expand...
Click to collapse
whalesplaho said:
im so in love with dis code.... thanks so much @FunSucker!!
just trying codes around.... but still stuck with tha dock icons alignment & date!
Click to expand...
Click to collapse
For "datePattern", you can re-check from EXTRA MODS section, look at point 1. Have you added new "datePattern" in strings.xml? Like my examples.
For the dock & navbar, where do you changing the size of navbar? framework-res.apk or overlay framework apk, sir?
FunSucker said:
For "datePattern", you can re-check from EXTRA MODS section, look at point 1. Have you added new "datePattern" in strings.xml? Like my examples.
For the dock & navbar, where do you changing the size of navbar? framework-res.apk or overlay framework apk, sir?
Click to expand...
Click to collapse
1. I did exactly just dat buh didnt work outta, i declared in strings.xml buh yhu know we didnt declared any variables for androidatePattern and tha error was no resource attributes found. So i used systematePattern and it works but tha date shown aint okay... Check tha screenshot and tha code i used in dis post; https://forum.xda-developers.com/showpost.php?p=70428869&postcount=14
2. I used an overlay... Been using dat before dis mod and it was okay!
---------- Post added at 08:41 AM ---------- Previous post was at 08:34 AM ----------
3. I still need a vector/png for status_bar and date/clock please...
4. Tha notification icons is showing under tha clock....
whalesplaho said:
1. I did exactly just dat buh didnt work outta, i declared in strings.xml buh yhu know we didnt declared any variables for androidatePattern and tha error was no resource attributes found. So i used systematePattern and it works but tha date shown aint okay... Check tha screenshot and tha code i used in dis post; https://forum.xda-developers.com/showpost.php?p=70428869&postcount=14
2. I used an overlay... Been using dat before dis mod and it was okay!
---------- Post added at 08:41 AM ---------- Previous post was at 08:34 AM ----------
3. I still need a vector/png for status_bar and date/clock please...
4. Tha notification icons is showing under tha clock....
Click to expand...
Click to collapse
hmm there are some differences. .
1. @id/network_label, don't put it there. Move it into @+id/fun_ltop OR @+id/fun_lbottom OR @+id/fun_rtop OR @+id/fun_rbottom.
Code:
<LinearLayout android:id="@id/status_bar_contents" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="horizontal" >
<TextView android:textSize="14.0dip" android:gravity="center_vertical" android:id="@id/network_label" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:maxLength="@integer/config_operatorNameMaxLength" />
<com.android.systemui.statusbar.AlphaOptimizedFrameLayout android:id="@id/notification_icon_area" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="horizontal">
2. Lines 24 error, miss spelling. Look at red text. You typed "andoid:...", not "android:...". And miss space, give a space between "gone" and "android:layout_width"
Code:
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" android:id="@id/clock" [COLOR="red"]andoid:visibility="gone"[/COLOR]android:layout_width="0.0dip" android:layout_height="0.0dip" android:singleLine="true" />
Try this code & let me know :
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.PhoneStatusBarView android:orientation="vertical" android:id="@id/status_bar" android:background="@drawable/system_bar_background" android:focusable="false" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<ImageView android:id="@id/notification_lights_out" android:paddingBottom="2.0dip" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_lights_out_dot_small" android:scaleType="center" android:paddingStart="6.0dip" />
<LinearLayout android:id="@id/status_bar_contents" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="horizontal" >
<com.android.systemui.statusbar.AlphaOptimizedFrameLayout android:id="@id/notification_icon_area" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="horizontal">
<com.android.keyguard.AlphaOptimizedLinearLayout android:id="@id/notification_icon_area_inner" android:layout_width="wrap_content" android:layout_height="fill_parent" android:orientation="vertical" android:paddingStart="6.0dip">
<LinearLayout android:id="@+id/fun_ltop" android:layout_width="wrap_content" android:layout_height="25.0dip" android:orientation="horizontal">
<com.android.systemui.statusbar.phone.IconMerger android:id="@id/notificationIcons" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentStart="true" android:gravity="center_vertical" android:orientation="horizontal" />
</LinearLayout>
<LinearLayout android:id="@+id/fun_lbottom" android:layout_width="wrap_content" android:layout_height="25.0dip" android:orientation="horizontal">
<com.android.keyguard.CarrierText android:textAppearance="?android:textAppearanceSmall" android:textColor="#ffffffff" android:ellipsize="marquee" android:gravity="center_vertical" android:id="@id/status_carrier_text" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="@dimen/match_parent" android:singleLine="true" android:layout_marginStart="@dimen/keyguard_carrier_text_margin" />
<com.android.keyguard.CarrierText android:ellipsize="marquee" android:textColor="#ffffffff" android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/expanded_carrier_text" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
<com.android.systemui.statusbar.StatusBarIconView android:id="@id/moreIcon" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/stat_notify_more" />
<TextView android:textSize="14.0dip" android:gravity="center_vertical" android:id="@id/network_label" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:maxLength="@integer/config_operatorNameMaxLength" />
</LinearLayout>
</com.android.keyguard.AlphaOptimizedLinearLayout>
<com.android.keyguard.AlphaOptimizedLinearLayout android:orientation="horizontal" android:id="@id/system_icon_area" android:layout_width="wrap_content" android:layout_height="fill_parent">
<RelativeLayout android:id="@+id/fun_r" android:layout_width="fill_parent" android:layout_height="fill_parent">
<include layout="@layout/system_icons" />
<LinearLayout android:id="@+id/fun_c" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_centerInParent="true" android:layout_gravity="center" android:gravity="center" android:orientation="vertical" android:paddingStart="4.0dip" android:paddingEnd="4.0dip" >
<com.android.systemui.statusbar.policy.DateView android:id="@+id/day_statbar" android:layout_width="wrap_content" android:layout_height="wrap_content" systemui:datePattern="@string/status_bar_day_format" android:textAllCaps="true" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textSize="10.0dip" />
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" android:id="@id/clock" android:visibility="gone" android:layout_width="0.0dip" android:layout_height="0.0dip" android:singleLine="true" />
<TextClock android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:format12Hour="@string/status_bar_clock_12hr_format" android:format24Hour="@string/status_bar_clock_24hr_format" android:gravity="center" android:singleLine="true" android:textAppearance="@style/TextAppearance.StatusBar.Clock" />
<com.android.systemui.statusbar.policy.DateView android:id="@+id/date_statbar" android:layout_width="wrap_content" android:layout_height="wrap_content" android:datePattern="@string/status_bar_date_format" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textSize="10.0dip" />
</LinearLayout>
</RelativeLayout>
</com.android.keyguard.AlphaOptimizedLinearLayout>
</com.android.systemui.statusbar.AlphaOptimizedFrameLayout>
</LinearLayout>
</com.android.systemui.statusbar.phone.PhoneStatusBarView>
for background PNG, i will upload it now to the OP (EXTRA MODS section attachments)
@FunSucker thanks for tha reply..... tha code yhu used was a bit old! dis was tha last code i used & tha screenshot.
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.PhoneStatusBarView android:orientation="vertical" android:id="@id/status_bar" android:background="@drawable/system_bar_background" android:focusable="false" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<ImageView android:id="@id/notification_lights_out" android:paddingBottom="2.0dip" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_lights_out_dot_small" android:scaleType="center" android:paddingStart="6.0dip" />
<LinearLayout android:id="@id/status_bar_contents" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="horizontal" >
<com.android.systemui.statusbar.AlphaOptimizedFrameLayout android:id="@id/notification_icon_area" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="horizontal">
<com.android.keyguard.AlphaOptimizedLinearLayout android:id="@id/notification_icon_area_inner" android:layout_width="wrap_content" android:layout_height="fill_parent" android:orientation="vertical" android:paddingStart="6.0dip">
<LinearLayout android:id="@+id/fun_ltop" android:layout_width="wrap_content" android:layout_height="25.0dip" android:orientation="horizontal">
<com.android.systemui.statusbar.phone.IconMerger android:id="@id/notificationIcons" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentStart="true" android:gravity="center_vertical" android:orientation="horizontal" />
</LinearLayout>
<LinearLayout android:id="@+id/fun_lbottom" android:layout_width="wrap_content" android:layout_height="25.0dip" android:orientation="horizontal">
<com.android.keyguard.CarrierText android:textAppearance="?android:textAppearanceSmall" android:textColor="#ffffffff" android:ellipsize="marquee" android:gravity="center_vertical" android:id="@id/status_carrier_text" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="@dimen/match_parent" android:singleLine="true" android:layout_marginStart="@dimen/keyguard_carrier_text_margin" />
<com.android.keyguard.CarrierText android:ellipsize="marquee" android:textColor="#ffffffff" android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/expanded_carrier_text" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
<include layout="@layout/system_icons_network" />
<com.android.systemui.statusbar.StatusBarIconView android:id="@id/moreIcon" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/stat_notify_more" />
<TextView android:textSize="14.0dip" android:gravity="center_vertical" android:id="@id/network_label" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:maxLength="@integer/config_operatorNameMaxLength" />
</LinearLayout>
</com.android.keyguard.AlphaOptimizedLinearLayout>
<com.android.keyguard.AlphaOptimizedLinearLayout android:orientation="horizontal" android:id="@id/system_icon_area" android:layout_width="wrap_content" android:layout_height="fill_parent">
<RelativeLayout android:id="@+id/fun_r" android:layout_width="fill_parent" android:layout_height="fill_parent">
<include layout="@layout/system_icons_battery" />
<LinearLayout android:id="@+id/fun_c" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_centerInParent="true" android:layout_gravity="center" android:gravity="center" android:orientation="vertical" android:paddingStart="4.0dip" android:paddingEnd="4.0dip">
<com.android.systemui.statusbar.policy.DateView android:id="@+id/day_statbar" android:layout_width="wrap_content" android:layout_height="wrap_content" systemui:datePattern="EEEE" android:textAllCaps="true" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textSize="10.0dip" />
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="start|center" android:id="@id/clock" android:layout_width="0.0dip" android:layout_height="0.0dip" android:singleLine="true" android:visibility="gone" android:paddingStart="4.0dip" />
<TextClock android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:format12Hour="@string/status_bar_clock_12hr_format" android:format24Hour="@string/status_bar_clock_24hr_format" android:gravity="center" android:singleLine="true" android:textAppearance="@style/TextAppearance.StatusBar.Clock" />
<com.android.systemui.statusbar.policy.DateView android:id="@+id/date_statbar" android:layout_width="wrap_content" android:layout_height="wrap_content" systemui:datePattern="eeeeMMMMd" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textSize="10.0dip" />
</LinearLayout>
</RelativeLayout>
</com.android.keyguard.AlphaOptimizedLinearLayout>
</com.android.systemui.statusbar.AlphaOptimizedFrameLayout>
</LinearLayout>
</com.android.systemui.statusbar.phone.PhoneStatusBarView>
whalesplaho said:
@FunSucker thanks for tha reply..... tha code yhu used was a bit old! dis was tha last code i used & tha screenshot.
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.PhoneStatusBarView android:orientation="vertical" android:id="@id/status_bar" android:background="@drawable/system_bar_background" android:focusable="false" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<ImageView android:id="@id/notification_lights_out" android:paddingBottom="2.0dip" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_lights_out_dot_small" android:scaleType="center" android:paddingStart="6.0dip" />
<LinearLayout android:id="@id/status_bar_contents" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="horizontal" >
<com.android.systemui.statusbar.AlphaOptimizedFrameLayout android:id="@id/notification_icon_area" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="horizontal">
<com.android.keyguard.AlphaOptimizedLinearLayout android:id="@id/notification_icon_area_inner" android:layout_width="wrap_content" android:layout_height="fill_parent" android:orientation="vertical" android:paddingStart="6.0dip">
<LinearLayout android:id="@+id/fun_ltop" android:layout_width="wrap_content" android:layout_height="25.0dip" android:orientation="horizontal">
<com.android.systemui.statusbar.phone.IconMerger android:id="@id/notificationIcons" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentStart="true" android:gravity="center_vertical" android:orientation="horizontal" />
</LinearLayout>
<LinearLayout android:id="@+id/fun_lbottom" android:layout_width="wrap_content" android:layout_height="25.0dip" android:orientation="horizontal">
<com.android.keyguard.CarrierText android:textAppearance="?android:textAppearanceSmall" android:textColor="#ffffffff" android:ellipsize="marquee" android:gravity="center_vertical" android:id="@id/status_carrier_text" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="@dimen/match_parent" android:singleLine="true" android:layout_marginStart="@dimen/keyguard_carrier_text_margin" />
<com.android.keyguard.CarrierText android:ellipsize="marquee" android:textColor="#ffffffff" android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/expanded_carrier_text" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
<include layout="@layout/system_icons_network" />
<com.android.systemui.statusbar.StatusBarIconView android:id="@id/moreIcon" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/stat_notify_more" />
<TextView android:textSize="14.0dip" android:gravity="center_vertical" android:id="@id/network_label" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:maxLength="@integer/config_operatorNameMaxLength" />
</LinearLayout>
</com.android.keyguard.AlphaOptimizedLinearLayout>
<com.android.keyguard.AlphaOptimizedLinearLayout android:orientation="horizontal" android:id="@id/system_icon_area" android:layout_width="wrap_content" android:layout_height="fill_parent">
<RelativeLayout android:id="@+id/fun_r" android:layout_width="fill_parent" android:layout_height="fill_parent">
<include layout="@layout/system_icons_battery" />
<LinearLayout android:id="@+id/fun_c" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_centerInParent="true" android:layout_gravity="center" android:gravity="center" android:orientation="vertical" android:paddingStart="4.0dip" android:paddingEnd="4.0dip">
<com.android.systemui.statusbar.policy.DateView android:id="@+id/day_statbar" android:layout_width="wrap_content" android:layout_height="wrap_content" systemui:datePattern="EEEE" android:textAllCaps="true" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textSize="10.0dip" />
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="start|center" android:id="@id/clock" android:layout_width="0.0dip" android:layout_height="0.0dip" android:singleLine="true" android:visibility="gone" android:paddingStart="4.0dip" />
<TextClock android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:format12Hour="@string/status_bar_clock_12hr_format" android:format24Hour="@string/status_bar_clock_24hr_format" android:gravity="center" android:singleLine="true" android:textAppearance="@style/TextAppearance.StatusBar.Clock" />
<com.android.systemui.statusbar.policy.DateView android:id="@+id/date_statbar" android:layout_width="wrap_content" android:layout_height="wrap_content" systemui:datePattern="eeeeMMMMd" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textSize="10.0dip" />
</LinearLayout>
</RelativeLayout>
</com.android.keyguard.AlphaOptimizedLinearLayout>
</com.android.systemui.statusbar.AlphaOptimizedFrameLayout>
</LinearLayout>
</com.android.systemui.statusbar.phone.PhoneStatusBarView>
Click to expand...
Click to collapse
can you shared your strings.xml, sir ?
FunSucker said:
can you shared your strings.xml, sir ?
Click to expand...
Click to collapse
Sure brov.... couldnt share all, too much!
Code:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="kg_somc_verizon_puk_enter_pin_hint">Please enter a new 4-8 digit SIM PIN.</string>
<string name="kg_somc_verizon_puk_enter_puk_hint">Please enter your 8-digit SIM PUK code</string>
<string name="kg_somc_verizon_sim_pin_instructions">Please enter your 4-8 digit SIM PIN</string>
<string name="lockscreen_microphone_image_hint">Microphone Image</string>
<string name="lockscreen_voice_unlock_error_hint">Did not recognize passphrase</string>
<string name="lockscreen_voice_unlock_or_short_unlock_hint">Say your passphrase or swipe to unlock</string>
<string name="lockscreen_accessibility_unlock_hint">Swipe up or down to unlock</string>
<string name="lockscreen_app_name">Lock screen</string>
<string name="lockscreen_short_unlock_hint">Swipe to unlock</string>
<string name="lockscreen_unlock_hint">Swipe up or down to unlock</string>
<string name="xperia_lockscreen_name">Xperia™</string>
<string name="widget_default_package_name">com.sonyericsson.advancedwidget.clock</string>
<string name="widget_default_class_name">com.sonymobile.lockscreenclock.ClockWidget</string>
<string name="status_bar_clock_12hr_format">h:mm:ss</string>
<string name="status_bar_clock_24hr_format">HH:mm:ss</string>
<string name="status_bar_day_format">EEEE</string>
<string name="status_bar_date_format">dMMMyyyy</string>
</resources>
i have anoda issue brov.... i tried adding date/clock background but shows no resource found error again. i moved tha png to drawable-xxhdpi folder den used dis code;
really sorry for troubling yhu buddy.....:crying::crying:
Code:
<LinearLayout android:id="@+id/fun_c" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_centerInParent="true" android:layout_gravity="center" android:gravity="center" android:orientation="vertical" android:background="@drawable/statbar_cbg.9" android:paddingStart="4.0dip" android:paddingEnd="4.0dip">

Categories

Resources