Jump to content

  1. 0
  2. 0
  3. 0/5

Rate this Topic

* * * * *
5 votes

[MOD][MULTITASKING][AOKP]WebAOKP - WebOS-like horizontal app switcher [01/14/12][BUILD 17 UPDATE]

  • Please log in to reply

OP brucekey

brucekey

boot loop engineer

  • 96 posts

Posted 03 January 2012 - 05:32 PM #1

AOKP build 17 only. Download and Kang info below.

Here is a fun mod. Horizontal app switching with extra-large thumbnails for that WebOS-like feel. Currently for AOKP only, but should be an easy port.


Posted Image

I take no responsibility for your broken a$s phone. Enjoy :)

Download (AOKP Build 17 Only)

Kang Info for Developers and Modders:

status_bar_recent_item
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout android:paddingLeft="@dimen/status_bar_recents_item_padding" android:paddingRight="@dimen/status_bar_recents_item_padding" android:layout_width="wrap_content" android:layout_height="fill_parent"
  xmlns:android="http://schemas.android.com/apk/res/android">
	<RelativeLayout android:layout_gravity="center_vertical" android:id="@id/recent_item" android:paddingTop="@android:dimen/status_bar_height" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true">
		<FrameLayout android:id="@id/app_thumbnail" android:background="@drawable/recents_thumbnail_bg" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="5.0dip" android:foreground="@drawable/recents_thumbnail_fg" android:layout_centerInParent="true">
			<ImageView android:id="@id/app_thumbnail_image" android:layout_width="170.0dip" android:layout_height="210.0dip" />
			<ImageView android:id="@id/app_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/status_bar_recents_app_icon_left_margin" android:layout_marginTop="0.0dip" android:scaleType="centerInside" android:adjustViewBounds="true" android:maxWidth="@dimen/status_bar_recents_app_icon_max_width" android:maxHeight="@dimen/status_bar_recents_app_icon_max_height" android:layout_alignParentLeft="true" android:layout_alignParentTop="true" />
		</FrameLayout>
		<TextView android:textSize="@dimen/status_bar_recents_app_label_text_size" android:textColor="@color/status_bar_recents_app_label_color" android:ellipsize="marquee" android:id="@id/app_label" android:paddingTop="0.0dip" android:fadingEdge="horizontal" android:fadingEdgeLength="@dimen/status_bar_recents_fading_edge_length" android:layout_width="@dimen/status_bar_recents_app_label_width" android:layout_height="fill_parent" android:layout_marginLeft="@dimen/status_bar_recents_app_label_left_margin" android:layout_marginTop="160.0dip" android:scrollHorizontally="true" android:singleLine="true" android:layout_below="@id/app_thumbnail" android:layout_alignLeft="@id/app_thumbnail" android:layout_alignParentBottom="true" />
		<TextView android:textSize="@dimen/status_bar_recents_app_description_text_size" android:ellipsize="marquee" android:id="@id/app_description" android:fadingEdge="horizontal" android:fadingEdgeLength="@dimen/status_bar_recents_fading_edge_length" android:layout_width="@dimen/status_bar_recents_app_label_width" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/status_bar_recents_app_label_left_margin" android:layout_marginTop="60.0dip" android:scrollHorizontally="true" android:singleLine="true" android:layout_below="@id/app_label" android:layout_alignLeft="@id/app_thumbnail" android:layout_alignParentBottom="true" />
	</RelativeLayout>
</FrameLayout>

status_bar_recent_panel
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.recent.RecentsPanelView android:id="@id/recents_root" android:layout_width="fill_parent" android:layout_height="fill_parent"
  xmlns:android="http://schemas.android.com/apk/res/android">
	<FrameLayout android:id="@id/recents_bg_protect" android:background="@drawable/status_bar_recents_background" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_centerVertical="true">
		<com.android.systemui.recent.RecentsHorizontalScrollView android:layout_gravity="bottom|left|center" android:id="@id/recents_container" android:scrollbars="none" android:fadingEdge="vertical" android:fadingEdgeLength="@android:dimen/status_bar_height" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginRight="0.0dip" android:stackFromBottom="true" android:divider="@null">
			<LinearLayout android:orientation="horizontal" android:id="@id/recents_linear_layout" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="wrap_content" />
		</com.android.systemui.recent.RecentsHorizontalScrollView>
	</FrameLayout>
	<include android:id="@id/recents_no_apps" android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" layout="@layout/status_bar_no_recent_apps" />
</com.android.systemui.recent.RecentsPanelView>

bools
<bool name="config_recents_thumbnail_image_fits_to_xy">true</bool>

dimens
<dimen name="status_bar_recents_thumbnail_width">170.0dip</dimen>
<dimen name="status_bar_recents_thumbnail_height">210.0dip</dimen>

Edited by brucekey, 14 January 2012 - 03:34 AM.

  • 13 Likes

mypantsaretorn

mypantsaretorn

Android Apprentice

  • 48 posts

Posted 03 January 2012 - 05:33 PM #2

nice! looks like im going to be trying out aokp tonight!
  • 0 Likes

hajabooja

hajabooja

Android Beginner

  • 110 posts

Posted 03 January 2012 - 05:37 PM #3

Nice job, brucekey. Looks great!

Sent from my Galaxy Nexus using Tapatalk
  • 0 Likes

sefirosu

sefirosu

Supporting Member

Posted 03 January 2012 - 05:59 PM #4

Love this. Flashed it a few minutes ago. Amazing!
  • 0 Likes

jbdan

jbdan

Android Master

  • 522 posts

Posted 03 January 2012 - 06:04 PM #5

Sweet been wanting this ever since seeing the ss in aokp thread. Thanks OP :)
  • 0 Likes

BartJJ

BartJJ

Android Apprentice

  • 71 posts

Posted 03 January 2012 - 06:10 PM #6

Only thing we could ask for to add to this would be higher res and larger images ;) I'm sure that'll be pretty complicated though. Good luck and nice work man!
  • 0 Likes

TheRoosevelt

TheRoosevelt

Android Lover

Posted 03 January 2012 - 06:18 PM #7

Thanks so much for this! I love it.

I've only encountered one bug, which is when you press the multitasking button while there are no recent apps open, the screen fails to darken and it just overlaps the "no recent apps" text over your current screen, which looks slightly ugly.
  • 0 Likes
The Roosevelt's Gnex Bootanimations

LightFlowHD | Android ExplosionHD

kbomb

kbomb

Member

  • 25 posts

Posted 03 January 2012 - 06:21 PM #8

thnks bruh
  • 0 Likes

Str8ridr

Str8ridr

Android Apprentice

  • 114 posts

Posted 03 January 2012 - 06:59 PM #9

Awesome. My phone couldn't be better.

Sent from my Galaxy Nexus using Tapatalk
  • 1 Likes
LTE Galaxy Nexus

Medix

Medix

Member

  • 22 posts

Posted 03 January 2012 - 07:05 PM #10

Great work can't wait for an axiom compatible version.

Sent from my Galaxy Nexus using Tapatalk
  • 0 Likes