[UPDATED][APP-MOD][+HOWTO] LG Optimus UI3 with 5x4 homescreen

Search This thread

Gyebro

Senior Member
May 6, 2012
124
471
Hello XDA!

New: JB compatible version here: [App][4.2+][JB] LG ui 3 [hdpi,xhdpi]

Here is a modified version of the LG UI 3 by Impact7
For those, who needs more space than 4x4 : )

*** LG Optimus UI3 with 5x4 homescreen ***
Updated, increased cell height, widgets should now have more space.
Removed Yahoo logo from weather widget


Features
5x4 homescreen grid (instead of the original 4x4)
Slightly modified weather widget
Google search bar and "add to homescreen" button removed from the top
Fixed unread messages count, now works with samsung messaging
And of course all the features that the launcher offers originally (amazing screen scroll effects, fast and smooth, LG themes - see original thread, today display on calendar icon, and much more...)

Screenshots
Screenshot_2012-09-24-23-14-51.png

As you can see, no less than 20 cells are available to you now : )

Installation
Copy the apks to system/app/
Set permissions to rw-r--r--
Reboot

Download
LGHome3.apk (v1.1)
Weatherwidget.apk (No yahoo logo)

Old version download links
Screenshot_2012-09-23-22-15-00.png

LGHome3.apk
Weatherwidget.apk
Get themes from the original thread posted by Impact7

*****


*** HOWTO: Change home screen grid ***

LG was a bit tricky, so after decompiling the LGHome3.apk you won't find the cell count variables in integers.xml (or somewhere in an xml, you'd expect)
Instead, in the LauncherModel.smali, find the updateWorkspaceLayoutCells function and change from:

Code:
.method static updateWorkspaceLayoutCells(II)V
    .locals 0
    sput p0, Lcom/lge/launcher2/LauncherModel;->mCellCountX:I
    sput p1, Lcom/lge/launcher2/LauncherModel;->mCellCountY:I
    return-void
.end method

to
Code:
.method static updateWorkspaceLayoutCells(II)V
    .locals 0
    sput p0, Lcom/lge/launcher2/LauncherModel;->mCellCountX:I
    const/4 p1, 0x5
    sput p1, Lcom/lge/launcher2/LauncherModel;->mCellCountY:I
    return-void
.end method

As you can see, you only need to assign a new value to p1 (3rd line, in this case I set it to 5).

After this step, go to res/values-hdpi or values-xhdpi, and edit cell size in homescreen and in edit mode, and icon text size:
Code:
    <dimen name="workspace_cell_width">80.0dip</dimen>
    <dimen name="workspace_cell_height">80.0dip</dimen>
    <dimen name="app_icon_padding_top">4.0dip</dimen>
    <dimen name="app_icon_textsize">11.0dip</dimen>
    <dimen name="lg_editmode_CellWidth">76.0dip</dimen>
    <dimen name="lg_editmode_CellHeight">76.0dip</dimen>

And in the values/styles.xml edit the workspace icon styles (edit bottom paddings to have enough space for the text label)
Code:
    <style name="WorkspaceIcon.Portrait" parent="@style/WorkspaceIcon">
        <item name="android:paddingLeft">4.0dip</item>
        <item name="android:paddingTop">@dimen/app_icon_padding_top</item>
        <item name="android:paddingRight">4.0dip</item>
        <item name="android:paddingBottom">0.0dip</item>
        <item name="android:drawablePadding">1.0dip</item>
    </style>

After fine tuning the values in xmls, recompile and sign the apk, and you are done!

*****
 
Last edited:

reedemerr

Member
Jan 2, 2012
17
4
What other notifications work on this launcher besides the unread sms one ? Overal nice work mate.
 

Gyebro

Senior Member
May 6, 2012
124
471
There is 3 built in counter: missed calls, unread messages and unread e-mails. However the email count was not tested yet.

Sent from my GT-I9100 using xda app-developers app
 

nmeuret

Senior Member
Aug 10, 2010
1,701
1,116
Montpellier
Just installed on Wanam 12.5 (LPX), launcher works fine but unfortunatly the weather widget layout is buggy :



Maybe in french the text is longer !?
 

reedemerr

Member
Jan 2, 2012
17
4
I've noticed if you add a weather widget such as Beautiful widgets 4x1 weather. The icons and the overal layout becomes small.
 

Gyebro

Senior Member
May 6, 2012
124
471
Just installed on Wanam 12.5 (LPX), launcher works fine but unfortunatly the weather widget layout is buggy :

Maybe in french the text is longer !?

Oh I see, I've removed the Yahoo logo, and now the "weather condition" string does not interfere with the clock digits. Updated downloads and screenshot in first post.

I've noticed if you add a weather widget such as Beautiful widgets 4x1 weather. The icons and the overal layout becomes small.

I've noticed this too, and increased the cell size in the launcher -> Now it should be better! See first post.
 

reedemerr

Member
Jan 2, 2012
17
4
Sadly the same problem persists with beautiful widgets. I think it doesnt like the custom widgets cuz stock google search bar is being displayed normaly. I'm using clock widget ics from market, it also becomes small when you add it to homescreen but that's not a problem, because it can be resized. Can't do the same thing with beautiful widgets :/
 

sab3r

Senior Member
Mar 10, 2011
216
39
damn it fc on thunderbolt rom :/ no idea why I pushed it to system/app with root explorer made permission rw-r--r-- and restarted phone...
 

cosvel

Senior Member
Jul 7, 2011
142
15
Madrid
Great job.. but Google search bar and "add to homescreen" button in the top still there..

screenshot2012112718335.png


Regards
 

androidrockz

Senior Member
Mar 12, 2011
577
143
Philadelphia
I installed the launcher and I downloaded the clock widget. It wouldn't install and whenever I try to place a widget, it'd force close. I regret purchasing Adw now that I found this. Sorry for noob questions.

Sent from my HTC One V using xda app-developers app
 

clenceo

Member
Jan 1, 2011
27
6
thanks! love the launcher.
but how do you remove the "google search and add widget bar" located at the top?
 

Gyebro

Senior Member
May 6, 2012
124
471
thanks! love the launcher.
but how do you remove the "google search and add widget bar" located at the top?

After decompiling the apk with APKtool or APKMultiTool, go to res/values-orient-dpi/ and open dimens.xml, then set the qsb (quick search bar) height to zero:
Code:
<dimen name="qsb_bar_height_inset">0.0dip</dimen>
<dimen name="qsb_bar_height">0.0dip</dimen>
<dimen name="search_bar_height">0.0dip</dimen>
Be sure to edit the dimens.xml used by your device in the desired orientation (In my case dimens.xml in values-hdpi folder was edited)

Good luck
 

Top Liked Posts

  • There are no posts matching your filters.
  • 21
    Hello XDA!

    New: JB compatible version here: [App][4.2+][JB] LG ui 3 [hdpi,xhdpi]

    Here is a modified version of the LG UI 3 by Impact7
    For those, who needs more space than 4x4 : )

    *** LG Optimus UI3 with 5x4 homescreen ***
    Updated, increased cell height, widgets should now have more space.
    Removed Yahoo logo from weather widget


    Features
    5x4 homescreen grid (instead of the original 4x4)
    Slightly modified weather widget
    Google search bar and "add to homescreen" button removed from the top
    Fixed unread messages count, now works with samsung messaging
    And of course all the features that the launcher offers originally (amazing screen scroll effects, fast and smooth, LG themes - see original thread, today display on calendar icon, and much more...)

    Screenshots
    Screenshot_2012-09-24-23-14-51.png

    As you can see, no less than 20 cells are available to you now : )

    Installation
    Copy the apks to system/app/
    Set permissions to rw-r--r--
    Reboot

    Download
    LGHome3.apk (v1.1)
    Weatherwidget.apk (No yahoo logo)

    Old version download links
    Screenshot_2012-09-23-22-15-00.png

    LGHome3.apk
    Weatherwidget.apk
    Get themes from the original thread posted by Impact7

    *****


    *** HOWTO: Change home screen grid ***

    LG was a bit tricky, so after decompiling the LGHome3.apk you won't find the cell count variables in integers.xml (or somewhere in an xml, you'd expect)
    Instead, in the LauncherModel.smali, find the updateWorkspaceLayoutCells function and change from:

    Code:
    .method static updateWorkspaceLayoutCells(II)V
        .locals 0
        sput p0, Lcom/lge/launcher2/LauncherModel;->mCellCountX:I
        sput p1, Lcom/lge/launcher2/LauncherModel;->mCellCountY:I
        return-void
    .end method

    to
    Code:
    .method static updateWorkspaceLayoutCells(II)V
        .locals 0
        sput p0, Lcom/lge/launcher2/LauncherModel;->mCellCountX:I
        const/4 p1, 0x5
        sput p1, Lcom/lge/launcher2/LauncherModel;->mCellCountY:I
        return-void
    .end method

    As you can see, you only need to assign a new value to p1 (3rd line, in this case I set it to 5).

    After this step, go to res/values-hdpi or values-xhdpi, and edit cell size in homescreen and in edit mode, and icon text size:
    Code:
        <dimen name="workspace_cell_width">80.0dip</dimen>
        <dimen name="workspace_cell_height">80.0dip</dimen>
        <dimen name="app_icon_padding_top">4.0dip</dimen>
        <dimen name="app_icon_textsize">11.0dip</dimen>
        <dimen name="lg_editmode_CellWidth">76.0dip</dimen>
        <dimen name="lg_editmode_CellHeight">76.0dip</dimen>

    And in the values/styles.xml edit the workspace icon styles (edit bottom paddings to have enough space for the text label)
    Code:
        <style name="WorkspaceIcon.Portrait" parent="@style/WorkspaceIcon">
            <item name="android:paddingLeft">4.0dip</item>
            <item name="android:paddingTop">@dimen/app_icon_padding_top</item>
            <item name="android:paddingRight">4.0dip</item>
            <item name="android:paddingBottom">0.0dip</item>
            <item name="android:drawablePadding">1.0dip</item>
        </style>

    After fine tuning the values in xmls, recompile and sign the apk, and you are done!

    *****
    1
    Can you make a JB version?