[G3 Developer Discussion [Developers Only]] Kickoff:
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 @@

<?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