[HTC Droid DNA] xvicedice:
Hello all,

Just thought i would drop you all a quick guide i will add to this as much as i can.. Drop me a message if you need anything else.

For Transparent NavBar - Decompile Prism.apk

Once decompiled navigate to \Prism\res\drawable-xxhdpi look for home_nav_bg

Just modify the above image to your liking color, transparency etc

For modified app drawer - 4 x 5 etc - Decompile Prism.apk

Once decompiled navigate to \Prism\res\integers - the below are the modifications you need to make

<integer name="config_allAppsTabbedCellCountX">4</integer>

<integer name="config_allAppsTabbedCellCountY">5</integer>

<integer name="config_allAppsTabbedCellCountXAlt">5</integer>

<integer name="config_allAppsTabbedCellCountYAlt">6</integer>

Once made you need to head over to the arrays XML and change - The below to match the above

<string-array name="apps_grid_option">

<item>4 × 5</item>

<item>5 × 6</item>

</string-array>

Please note modding the app drawer may require you to mod the dimensions in values to have it all fit nicely.

Ill check shortly but i am pretty sure its the below you need to modify for a better fit.

<dimen name="page_view_icon_cell_width">90.0dip</dimen>

<dimen name="page_view_icon_cell_height">97.0dip</dimen>

<dimen name="page_view_icon_cell_width_alt">75.0dip</dimen>

<dimen name="page_view_icon_cell_height_alt">90.0dip</dimen>

Statusbar Mods [Colors/Transparency etc] - Decompile SystemUI.apk

Navigate to \SystemUI\res\layout - Open Status_Bar.xml

Look at Line 2 where it says - android:background="@drawable/status_bar_background"

The Red is what we are going to modify

1. You will find in the drawables folder and image labeled status_bar_background open this and mod this to whatever you wish

2. Alternatively you can also mod this by changing the green text to "#FF000000" This is a Hex color - FF is level of Transparency and 000000 is the Color White

App Drawer / Blink Feed Clock Backgrond - Decompile Prism.apk

Navigate to \Prism\res\drawable-xxhdpi

Change automotive_common_app_bkg_top.png to whatever you wish

Recent Apps Pull Down Background - Decompile SystemUI.apk

To Change the Statusbar Pull-down Shade Background Color/Transparency

•	First Decompile SystemUI.apk and navigate to the "res/layouts" and find "status_bar_expanded.xml"

•	Next, find where it says android:background="@*android:color/black" and change it to android:background="@color/transparent_black" and save it.

•	Now go to "res/values" and open "colors.xml"

•	We are going to add a new color to this by adding this <color name="@color/transparent_black">#A5000000</color>

•	Save that and recompile and now your pull-down shade is semi-transparent​

#00000000 is 100% Transparent.

#40000000 is 75% Transparent.

#80000000 is 50% Transparent.

#B0000000 is 25% Transparent.

#FF000000 is 0% Transparent.

XML QUICK COLOR GUIDE

•	When you see a Hex color in xml it will probably look like #FF1A2B3C (I will be explaining this from LEFT to RIGHT following the # sign)

•	The First two digits represents the level of Transparency 00 is Transparent and FF is Opaque

•	The Second two digits represents the level of RED where 00 is No Red (0) and FF is Full Red (255)

•	The Third two digits represents the level of GREEN where 00 is No Green (0) and FF is Full Green (255)

•	The Fourth two digits represents the level of BLUE where 00 is No Blue (0) and FF is Full Blue (255)​

App Drawer Transparency - Decompile Prism.apk

Next navigate to \Prism\smali\com\htc\launcher

Go to Launcher . Smali and CTRL + F and search for .method public updateWallpaperVisibility(Z)V

Highlight this line and highlight everything below until you see end method. just to clarify we are deleting From .method to .end method

.method public updateWallpaperVisibility(Z)V

.end method

after this CTRL + F and search for updateWallpaperVisibility - remove any line that has this

[We now have to clean the code navigate to the 3 files below - for each CTRL + F and search for updateWallpaperVisibility and remove all lines which include this

Launcher$21.Smali

Launcher$22.Smali

Launcher$25.Smali

Workspace.smali

Now navigate to DragLayer.Smali

CTRL + F and search for const/high16 v2, -0x100, change this line to const/high16 v2, 0x0

Navigate to Prism/smali/com/htc/launcher/pageview

Open AllAppsPagedViewHost.smali - CTRL + F and search for const/high16 v2, -0x100, change this line to const/high16 v2, 0x0

When complete it looks like a small glitch but its a duplication transition animation to make this less glitchy navigate to Values/ Dimens and Modify the below till you achieve your desired results

<integer name="config_appsCustomizeZoomInTime">150</integer>

<integer name="config_appsCustomizeZoomOutTime">100</integer>

<integer name="config_appsCustomizeZoomInScaleFactor">200</integer>

<integer name="config_appsCustomizeZoomOutScaleFactor">133</integer>

<integer name="config_appsCustomizeFadeInTime">100</integer>

<integer name="config_appsCustomizeFadeOutTime">150</integer>

App Drawer / Blink Feed Background - Decompile Prism.apk

First of all to add backgrounds to either of these we need to achieve transparency (see guide below) App Drawer Transparency

Add the below to achieve a background for whatever you wish

res/layouts/feed_view.xml - Blinkfeed

<com.htc.launcher.feeds.view.FeedScrollView - At this line add android:background="@drawable/12345"

res/layout/all_apps_pagedview.xml - App Drawer

<com.htc.launcher.pageview.AllAppsPagedView - At this line add android:background="@drawable/12345"

\Prism\res\values\colors.xml - BlinkFeed Tiles - Change the red color below to your desired Color / Transparency

<color name="feedview_background">#ff33b5e5</color>

12345 - This refers to the name of your Background image - Once the tags have been added add the images to drawable-xxhdpi

#ff33b5e5 - 33b5e refers to the color and the FF refers to transparency, FF = non transparent / 00 = Fully Transparent / 68 = 50% i believe)

Remove App Drawer / Blinkfeed Clock - Decompile Prism.apk

!!!Please note this is a work in Progress!!!

SO FAR:

Navigate to Prism\smali\com\htc\launcher\masthead

Open Masthead.Smali

Remove this whole method - .method private attachToContainer(Landroid/view/ViewGroup;)V

We need to then navigate to Values Dimens and modify the following for the correct fitting

Remove Carrier Label - Decompile SystemUI.apk

Navigate to \SystemUI\res\layout - Open Status_Bar_Expanded.xml

At line <com.android.systemui.statusbar.phone.CarrierLabel where is says android:visibility="invisible change to "android:visibility="gone"

Center Clock - Decompile SystemUI.apk

Navigate to SystemUI\res\layout - Status_Bar.xml

Step 1. First of all locate and delete this line

<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/system_icon_area" android:layout_width="wrap_content" android:layout_height="fill_parent">

Step 2. Next locate the following line - Change this to replicate the line below

Original - <LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
New	-	<LinearLayout android:gravity="right|center" android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" >

Step 3. Copy the following above your modified line in Step 2

<LinearLayout android:gravity="center" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="fill_parent">
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textColor="@*android:color/white" android:gravity="center" android:id="@id/clock" android:paddingTop="3.0px" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_weight="1.0" />
</LinearLayout>

Step 4. Check it resembles the below

<LinearLayout android:gravity="center" android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="fill_parent">
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textColor="@*android:color/white" android:gravity="center" android:id="@id/clock" android:paddingTop="3.0px" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_weight="1.0" />
</LinearLayout>
<LinearLayout android:gravity="right|center" android:orientation="horizontal" android:id="@id/statusIcons" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" >
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/signal_battery_cluster" android:paddingLeft="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent">
<ViewStub android:id="@id/signal_cluster" android:inflatedId="@id/signal_cluster_tree" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textColor="@*android:color/white" android:gravity="center_vertical" android:id="@id/battery_text" android:paddingLeft="1.0dip" android:paddingRight="1.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" />
<ImageView android:id="@id/battery" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
</LinearLayout>

Remove Status Bar Icons - Thanks to .torrented

To make statusbar icons disappear you must decompile SystemUI.apk navigate to the "res" folder and then into the "drawable - xxhdpi" folder and there you will see a bunch of png's.

From there locate which statusbar image you wish to make disappear and copy its exact name, change the tranparant png's name to whatever the original name was and replace it with the newly transparent version.

Just replicate this for any statusbar image you wish (delete the old ones are you are done with them)

Recompile SystemUI.apk and replace the one on the device, your statusbar images will now be GONE!

Settings Background - Decompile framework-res.apk

Coming Soon