multitasking - HTC Pico (Explorer)
can someone port this mod to cm9
mod link-----http://forum.xda-developers.com/show...php?p=24622899
guide is in the first post of mod just patch diff and compile (i dont know about compiling patching please someone port it)
diff v2.0 link is here-------http://www.mediafire.com/?gg77md6709xfj0m
source code of compiling whatever----
Code:
diff -rupN ./a/core/res/res/values/dimens.xml ./b/core/res/res/values/dimens.xml
--- ./a/core/res/res/values/dimens.xml 2012-04-25 11:31:16.000000000 +0900
+++ ./b/core/res/res/values/dimens.xml 2012-04-27 00:22:57.951903000 +0900
@@ -19,9 +19,9 @@
-->
<resources>
<!-- The width that is used when creating thumbnails of applications. -->
- <dimen name="thumbnail_width">120dp</dimen>
+ <dimen name="thumbnail_width">168dp</dimen>
<!-- The height that is used when creating thumbnails of applications. -->
- <dimen name="thumbnail_height">120dp</dimen>
+ <dimen name="thumbnail_height">267dp</dimen>
<!-- The standard size (both width and height) of an application icon that
will be displayed in the app launcher and elsewhere. -->
<dimen name="app_icon_size">48dip</dimen>
diff -rupN ./a/packages/SystemUI/res/drawable/status_bar_recents_background.xml ./b/packages/SystemUI/res/drawable/status_bar_recents_background.xml
--- ./a/packages/SystemUI/res/drawable/status_bar_recents_background.xml 2012-04-25 11:31:16.000000000 +0900
+++ ./b/packages/SystemUI/res/drawable/status_bar_recents_background.xml 2012-04-26 19:18:32.766622000 +0900
@@ -16,10 +16,11 @@
* limitations under the License.
*/
-->
-<shape xmlns:android="http://schemas.android.com/apk/res/android">
+<shape android:shape="rectangle" xmlns:android="http://schemas.android.com/apk/res/android">
<gradient name="status_bar_recents_background"
- android:startColor="#e6000000"
- android:endColor="#c0000000"
- android:angle="@integer/status_bar_recents_bg_gradient_degrees"
+ android:type="radial"
+ android:startColor="#ff4a4a4a"
+ android:endColor="#ff080808"
+ android:gradientRadius="400"
/>
</shape>
diff -rupN ./a/packages/SystemUI/res/layout/status_bar_no_recent_apps.xml ./b/packages/SystemUI/res/layout/status_bar_no_recent_apps.xml
--- ./a/packages/SystemUI/res/layout/status_bar_no_recent_apps.xml 2012-04-25 11:31:16.000000000 +0900
+++ ./b/packages/SystemUI/res/layout/status_bar_no_recent_apps.xml 2012-04-26 19:54:23.777459000 +0900
@@ -32,5 +32,6 @@
android:text="@string/status_bar_no_recent_apps"
android:gravity="center_horizontal"
android:layout_gravity="center"
+ android:visibility="gone"
/>
</FrameLayout>
diff -rupN ./a/packages/SystemUI/res/layout-land/status_bar_recent_item.xml ./b/packages/SystemUI/res/layout-land/status_bar_recent_item.xml
--- ./a/packages/SystemUI/res/layout-land/status_bar_recent_item.xml 2012-04-25 11:31:16.000000000 +0900
+++ ./b/packages/SystemUI/res/layout-land/status_bar_recent_item.xml 2012-05-07 04:53:08.705255000 +0900
@@ -22,55 +22,53 @@
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="match_parent"
android:layout_width="wrap_content"
- android:paddingLeft="@dimen/status_bar_recents_item_padding"
- android:paddingRight="@dimen/status_bar_recents_item_padding">
+ android:paddingRight="@dimen/status_bar_recents_item_padding"
+ android:paddingLeft="@dimen/status_bar_recents_item_padding">
<RelativeLayout android:id="@+id/recent_item"
android:layout_gravity="center_vertical"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
- android:paddingTop="@*android:dimen/status_bar_height">
+ android:paddingTop="@*android:dimen/status_bar_height"
+ android:layout_centerInParent="true">
<FrameLayout android:id="@+id/app_thumbnail"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_alignParentLeft="true"
- android:layout_alignParentTop="true"
- android:layout_marginTop="@dimen/status_bar_recents_thumbnail_top_margin"
- android:layout_marginLeft="@dimen/status_bar_recents_thumbnail_left_margin"
- android:background="@drawable/recents_thumbnail_bg"
- android:foreground="@drawable/recents_thumbnail_fg"
+ android:layout_centerInParent="true"
+ android:background="#00000000"
+ android:foreground="#00000000"
android:visibility="invisible">
<ImageView android:id="@+id/app_thumbnail_image"
- android:layout_width="@dimen/status_bar_recents_thumbnail_width"
- android:layout_height="@dimen/status_bar_recents_thumbnail_height"
+ android:layout_width="120.0dip"
+ android:layout_height="320.0dip"
+ android:scaleType="centerInside"
/>
</FrameLayout>
<ImageView android:id="@+id/app_icon"
- android:layout_width="wrap_content"
+ android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_marginTop="@dimen/status_bar_recents_app_icon_top_margin"
- android:layout_marginLeft="@dimen/status_bar_recents_app_icon_left_margin"
- android:layout_alignParentLeft="true"
- android:layout_alignParentTop="true"
- android:maxWidth="@dimen/status_bar_recents_app_icon_max_width"
- android:maxHeight="@dimen/status_bar_recents_app_icon_max_height"
+ android:gravity="center_horizontal"
+ android:layout_marginTop="232.0dip"
+ android:maxWidth="35dp"
+ android:maxHeight="35dp"
android:scaleType="centerInside"
android:adjustViewBounds="true"
/>
<TextView android:id="@+id/app_label"
- android:layout_width="@dimen/status_bar_recents_app_label_width"
+ android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:textSize="@dimen/status_bar_recents_app_label_text_size"
- android:fadingEdge="horizontal"
- android:fadingEdgeLength="@dimen/status_bar_recents_fading_edge_length"
+ android:gravity="center_horizontal"
+ android:textSize="12dip"
+ android:fadingEdge="none"
+ android:fadingEdgeLength="0.0dip"
android:scrollHorizontally="true"
- android:layout_alignLeft="@id/app_thumbnail"
- android:layout_below="@id/app_thumbnail"
- android:layout_marginTop="@dimen/status_bar_recents_text_description_padding"
- android:layout_marginLeft="@dimen/status_bar_recents_app_label_left_margin"
+ android:layout_below="@id/app_icon"
+ android:layout_alignParentBottom="true"
+ android:paddingTop="0.0dip"
+ android:layout_marginTop="0.0dip"
android:singleLine="true"
android:ellipsize="marquee"
android:textColor="@color/status_bar_recents_app_label_color"
@@ -80,12 +78,13 @@
android:layout_width="@dimen/status_bar_recents_app_label_width"
android:layout_height="wrap_content"
android:textSize="@dimen/status_bar_recents_app_description_text_size"
- android:fadingEdge="horizontal"
- android:fadingEdgeLength="@dimen/status_bar_recents_fading_edge_length"
+ android:fadingEdge="none"
+ android:fadingEdgeLength="0dip"
android:scrollHorizontally="true"
- android:layout_alignLeft="@id/app_thumbnail"
+ android:layout_alignParentBottom="true"
+ android:layout_marginLeft="@dimen/status_bar_recents_app_label_left_margin"
android:layout_below="@id/app_label"
- android:layout_marginTop="@dimen/status_bar_recents_text_description_padding"
+ android:layout_marginTop="3.0dip"
android:singleLine="true"
android:ellipsize="marquee"
/>
diff -rupN ./a/packages/SystemUI/res/layout-land/status_bar_recent_panel.xml ./b/packages/SystemUI/res/layout-land/status_bar_recent_panel.xml
--- ./a/packages/SystemUI/res/layout-land/status_bar_recent_panel.xml 2012-04-25 11:31:16.000000000 +0900
+++ ./b/packages/SystemUI/res/layout-land/status_bar_recent_panel.xml 2012-04-27 14:05:59.391168000 +0900
@@ -29,27 +29,33 @@
android:background="@drawable/status_bar_recents_background"
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:layout_alignParentBottom="true"
- android:clipToPadding="false"
- android:clipChildren="false">
-
- <com.android.systemui.recent.RecentsHorizontalScrollView android:id="@+id/recents_container"
- android:layout_width="wrap_content"
- android:layout_height="match_parent"
- android:layout_marginRight="@dimen/status_bar_recents_right_glow_margin"
- android:divider="@null"
- android:stackFromBottom="true"
- android:fadingEdge="horizontal"
- android:scrollbars="none"
- android:fadingEdgeLength="@dimen/status_bar_recents_fading_edge_length"
- android:layout_gravity="bottom|left"
- android:orientation="horizontal"
- android:clipToPadding="false"
- android:clipChildren="false">
+ android:layout_centerVertical="true">
+
+ <ImageView
+ android:gravity="center"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:layout_marginTop="0.0dip"
+ android:src="@drawable/status_bar_recents_background"
+ />
+
+ <com.android.systemui.recent.RecentsHorizontalScrollView
+ android:id="@+id/recents_container"
+ android:layout_gravity="bottom|left|center"
+ android:scrollbars="none"
+ android:fadingEdge="none"
+ android:fadingEdgeLength="0.0dip"
+ android:clipChildren="false"
+ android:clipToPadding="false"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginRight="0.0dip"
+ android:stackFromBottom="true"
+ android:divider="@null">
<LinearLayout android:id="@+id/recents_linear_layout"
- android:layout_width="wrap_content"
- android:layout_height="match_parent"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
android:orientation="horizontal"
android:clipToPadding="false"
android:clipChildren="false">
@@ -57,6 +63,16 @@
</com.android.systemui.recent.RecentsHorizontalScrollView>
+ <TextView
+ android:textSize="18.0dip"
+ android:textColor="#ffe5e5e5"
+ android:gravity="center_horizontal"
+ android:layout_marginTop="10.0dip"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="@string/recent_apps_title"
+ />
+
</FrameLayout>
<include layout="@layout/status_bar_no_recent_apps"
diff -rupN ./a/packages/SystemUI/res/layout-port/status_bar_recent_item.xml ./b/packages/SystemUI/res/layout-port/status_bar_recent_item.xml
--- ./a/packages/SystemUI/res/layout-port/status_bar_recent_item.xml 2012-04-25 11:31:16.000000000 +0900
+++ ./b/packages/SystemUI/res/layout-port/status_bar_recent_item.xml 2012-05-07 04:31:12.435246000 +0900
@@ -20,69 +20,62 @@
<FrameLayout
xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_height="wrap_content"
- android:layout_width="match_parent"
- android:paddingTop="@dimen/status_bar_recents_item_padding"
- android:paddingBottom="@dimen/status_bar_recents_item_padding">
+ android:layout_height="match_parent"
+ android:layout_width="wrap_content"
+ android:paddingRight="@dimen/status_bar_recents_item_padding"
+ android:paddingLeft="@dimen/status_bar_recents_item_padding">
<RelativeLayout android:id="@+id/recent_item"
- android:layout_gravity="center_horizontal"
+ android:layout_gravity="center_vertical"
android:layout_height="wrap_content"
- android:layout_width="wrap_content">
+ android:layout_width="wrap_content"
+ android:paddingTop="@*android:dimen/status_bar_height"
+ android:layout_centerInParent="true">
- <TextView android:id="@+id/app_label"
- android:layout_width="@dimen/status_bar_recents_app_label_width"
- android:layout_height="wrap_content"
- android:textSize="@dimen/status_bar_recents_app_label_text_size"
- android:fadingEdge="horizontal"
- android:fadingEdgeLength="@dimen/status_bar_recents_fading_edge_length"
- android:scrollHorizontally="true"
- android:layout_alignParentLeft="true"
- android:layout_alignTop="@id/app_icon"
- android:paddingTop="2dp"
- android:layout_marginLeft="@dimen/status_bar_recents_app_label_left_margin"
- android:singleLine="true"
- android:ellipsize="marquee"
- android:textColor="@color/status_bar_recents_app_label_color"
- />
<FrameLayout android:id="@+id/app_thumbnail"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_alignParentTop="true"
- android:layout_toRightOf="@id/app_label"
- android:layout_marginLeft="@dimen/status_bar_recents_thumbnail_left_margin"
- android:background="@drawable/recents_thumbnail_bg"
- android:foreground="@drawable/recents_thumbnail_fg"
+ android:layout_centerInParent="true"
+ android:background="#00000000"
+ android:foreground="#00000000"
android:visibility="invisible">
<ImageView android:id="@+id/app_thumbnail_image"
- android:layout_width="@dimen/status_bar_recents_thumbnail_width"
- android:layout_height="@dimen/status_bar_recents_thumbnail_height"
+ android:paddingTop="60dip"
+ android:layout_marginTop="30.0dip"
+ android:layout_width="212.0dip"
+ android:layout_height="455.0dip"
+ android:scaleType="centerInside"
/>
</FrameLayout>
- <View android:id="@+id/recents_callout_line"
- android:layout_width="@dimen/status_bar_recents_app_label_width"
- android:layout_height="1dip"
- android:layout_alignParentLeft="true"
- android:layout_marginLeft="@dimen/status_bar_recents_app_label_left_margin"
- android:layout_toLeftOf="@id/app_thumbnail"
- android:layout_below="@id/app_label"
- android:layout_marginRight="3dip"
- android:layout_marginTop="3dip"
- android:background="@drawable/recents_callout_line"
- />
<ImageView android:id="@+id/app_icon"
- android:layout_width="wrap_content"
+ android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_toRightOf="@id/app_label"
- android:layout_marginLeft="@dimen/status_bar_recents_app_icon_left_margin"
- android:layout_marginTop="@dimen/status_bar_recents_app_icon_top_margin"
+ android:gravity="center_horizontal"
+ android:layout_marginTop="405.0dip"
android:maxWidth="@dimen/status_bar_recents_app_icon_max_width"
android:maxHeight="@dimen/status_bar_recents_app_icon_max_height"
android:scaleType="centerInside"
android:adjustViewBounds="true"
/>
+ <TextView android:id="@+id/app_label"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:gravity="center_horizontal"
+ android:textSize="@dimen/status_bar_recents_app_label_text_size"
+ android:fadingEdge="none"
+ android:fadingEdgeLength="0.0dip"
+ android:scrollHorizontally="true"
+ android:layout_below="@id/app_icon"
+ android:layout_alignParentBottom="true"
+ android:paddingTop="0.0dip"
+ android:layout_marginTop="3.0dip"
+ android:singleLine="true"
+ android:ellipsize="marquee"
+ android:textColor="@color/status_bar_recents_app_label_color"
+ />
+
<TextView android:id="@+id/app_description"
android:layout_width="@dimen/status_bar_recents_app_label_width"
android:layout_height="wrap_content"
@@ -90,10 +83,10 @@
android:fadingEdge="horizontal"
android:fadingEdgeLength="@dimen/status_bar_recents_fading_edge_length"
android:scrollHorizontally="true"
- android:layout_alignParentLeft="true"
+ android:layout_alignParentBottom="true"
android:layout_marginLeft="@dimen/status_bar_recents_app_label_left_margin"
- android:layout_below="@id/recents_callout_line"
- android:layout_marginTop="3dip"
+ android:layout_below="@id/app_label"
+ android:layout_marginTop="40.0dip"
android:singleLine="true"
android:ellipsize="marquee"
/>
diff -rupN ./a/packages/SystemUI/res/layout-port/status_bar_recent_panel.xml ./b/packages/SystemUI/res/layout-port/status_bar_recent_panel.xml
--- ./a/packages/SystemUI/res/layout-port/status_bar_recent_panel.xml 2012-04-25 11:31:16.000000000 +0900
+++ ./b/packages/SystemUI/res/layout-port/status_bar_recent_panel.xml 2012-04-27 14:11:39.881175000 +0900
@@ -29,31 +29,49 @@
android:background="@drawable/status_bar_recents_background"
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:layout_alignParentBottom="true">
+ android:layout_centerVertical="true">
- <com.android.systemui.recent.RecentsVerticalScrollView
- android:id="@+id/recents_container"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginRight="0dp"
- android:divider="@null"
- android:stackFromBottom="true"
- android:fadingEdge="vertical"
- android:scrollbars="none"
- android:fadingEdgeLength="@*android:dimen/status_bar_height"
- android:layout_gravity="bottom|left"
- android:clipToPadding="false"
- android:clipChildren="false">
+ <ImageView
+ android:gravity="center"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:layout_marginTop="0.0dip"
+ android:src="@drawable/status_bar_recents_background"
+ />
+
+ <com.android.systemui.recent.RecentsHorizontalScrollView
+ android:id="@+id/recents_container"
+ android:layout_gravity="bottom|left|center"
+ android:scrollbars="none"
+ android:fadingEdge="none"
+ android:fadingEdgeLength="0.0dip"
+ android:clipChildren="false"
+ android:clipToPadding="false"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginRight="0.0dip"
+ android:stackFromBottom="true"
+ android:divider="@null">
<LinearLayout android:id="@+id/recents_linear_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:orientation="vertical"
+ android:orientation="horizontal"
android:clipToPadding="false"
android:clipChildren="false">
</LinearLayout>
- </com.android.systemui.recent.RecentsVerticalScrollView>
+ </com.android.systemui.recent.RecentsHorizontalScrollView>
+
+ <TextView
+ android:textSize="20.0dip"
+ android:textColor="#ffe5e5e5"
+ android:gravity="center_horizontal"
+ android:layout_marginTop="45.0dip"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="@string/recent_apps_title"
+ />
</FrameLayout>
diff -rupN ./a/packages/SystemUI/res/values/colors.xml ./b/packages/SystemUI/res/values/colors.xml
--- ./a/packages/SystemUI/res/values/colors.xml 2012-04-25 11:31:16.000000000 +0900
+++ ./b/packages/SystemUI/res/values/colors.xml 2012-04-26 19:46:08.367467000 +0900
@@ -22,8 +22,8 @@
<drawable name="notification_item_background_color_pressed">#ff257390</drawable>
<drawable name="ticker_background_color">#ff1d1d1d</drawable>
<drawable name="status_bar_background">#ff000000</drawable>
- <drawable name="status_bar_recents_background_solid">#b3000000</drawable>
- <drawable name="status_bar_recents_app_thumbnail_background">#88000000</drawable>
+ <drawable name="status_bar_recents_background_solid">#00000000</drawable>
+ <drawable name="status_bar_recents_app_thumbnail_background">#00000000</drawable>
<color name="status_bar_recents_app_label_color">#ffffffff</color>
<drawable name="status_bar_notification_row_background_color">#ff090909</drawable>
<drawable name="notification_header_bg">#FF000000</drawable>
diff -rupN ./a/packages/SystemUI/res/values/config.xml ./b/packages/SystemUI/res/values/config.xml
--- ./a/packages/SystemUI/res/values/config.xml 2012-04-25 11:31:16.000000000 +0900
+++ ./b/packages/SystemUI/res/values/config.xml 2012-04-26 20:20:19.237457000 +0900
@@ -27,7 +27,7 @@
<!-- Whether recents thumbnails should stretch in both x and y to fill their
ImageView -->
- <bool name="config_recents_thumbnail_image_fits_to_xy">false</bool>
+ <bool name="config_recents_thumbnail_image_fits_to_xy">true</bool>
<!-- Control whether status bar should distinguish HSPA data icon form UMTS
data icon on devices -->
diff -rupN ./a/packages/SystemUI/res/values/dimens.xml ./b/packages/SystemUI/res/values/dimens.xml
--- ./a/packages/SystemUI/res/values/dimens.xml 2012-04-25 11:31:16.000000000 +0900
+++ ./b/packages/SystemUI/res/values/dimens.xml 2012-04-26 20:31:54.317462000 +0900
@@ -21,9 +21,9 @@
<!-- Recent Applications parameters -->
<!-- Upper width limit for application icon -->
- <dimen name="status_bar_recents_app_icon_max_width">48dp</dimen>
+ <dimen name="status_bar_recents_app_icon_max_width">42dp</dimen>
<!-- Upper height limit for application icon -->
- <dimen name="status_bar_recents_app_icon_max_height">48dp</dimen>
+ <dimen name="status_bar_recents_app_icon_max_height">42dp</dimen>
<!-- Size of application thumbnail -->
<dimen name="status_bar_recents_thumbnail_width">164dp</dimen>
diff -rupN ./a/packages/SystemUI/res/values/strings.xml ./b/packages/SystemUI/res/values/strings.xml
--- ./a/packages/SystemUI/res/values/strings.xml 2012-04-25 11:31:16.000000000 +0900
+++ ./b/packages/SystemUI/res/values/strings.xml 2012-04-30 10:53:24.049658000 +0900
@@ -377,4 +377,8 @@
<!-- Content description of the clear button in the notification panel for accessibility (not shown on the screen). [CHAR LIMIT=NONE] -->
<string name="accessibility_clear_all">Clear all notifications.</string>
+
+ <!-- for Sense 4.0 style multitasking mod -->
+ <string name="recent_apps_title">Recent apps</string>
+
</resources>
diff -rupN ./a/packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java ./b/packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java
--- ./a/packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java 2012-04-25 11:31:16.000000000 +0900
+++ ./b/packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java 2012-05-07 04:30:21.215261000 +0900
@@ -24,9 +24,17 @@ import android.content.Intent;
import android.content.res.Configuration;
import android.content.res.Resources;
import android.graphics.Bitmap;
+import android.graphics.drawable.BitmapDrawable;
import android.graphics.Matrix;
import android.graphics.Shader.TileMode;
-import android.graphics.drawable.BitmapDrawable;
+import android.graphics.Color;
+import android.graphics.Canvas;
+import android.graphics.LinearGradient;
+import android.graphics.Paint;
+import android.graphics.PorterDuffXfermode;
+import android.graphics.Bitmap.Config;
+import android.graphics.PorterDuff.Mode;
+import android.graphics.Shader.TileMode;
import android.net.Uri;
import android.provider.Settings;
import android.util.AttributeSet;
@@ -402,7 +410,32 @@ public class RecentsPanelView extends Re
// Should remove the default image in the frame
// that this now covers, to improve scrolling speed.
// That can't be done until the anim is complete though.
- h.thumbnailViewImage.setImageBitmap(thumbnail);
+ final int reflectionGap = 4;
+ int width = thumbnail.getWidth();
+ int height = thumbnail.getHeight();
+
+ Matrix matrix = new Matrix();
+ matrix.preScale(1, -1);
+
+ Bitmap reflectionImage = Bitmap.createBitmap(thumbnail, 0, height * 2 / 3, width, height/3, matrix, false);
+ Bitmap bitmapWithReflection = Bitmap.createBitmap(width, (height + height/3), Config.ARGB_8888);
+
+ Canvas canvas = new Canvas(bitmapWithReflection);
+ canvas.drawBitmap(thumbnail, 0, 0, null);
+ Paint defaultPaint = new Paint();
+ canvas.drawRect(0, height, width, height + reflectionGap, defaultPaint);
+ canvas.drawBitmap(reflectionImage, 0, height + reflectionGap, null);
+
+ Paint paint = new Paint();
+ LinearGradient shader = new LinearGradient(0, thumbnail.getHeight(), 0,
+ bitmapWithReflection.getHeight() + reflectionGap, 0x70ffffff, 0x00ffffff,
+ TileMode.CLAMP);
+ paint.setShader(shader);
+ paint.setXfermode(new PorterDuffXfermode(Mode.DST_IN));
+ canvas.drawRect(0, height, width,
+ bitmapWithReflection.getHeight() + reflectionGap, paint);
+
+ h.thumbnailViewImage.setImageBitmap(bitmapWithReflection);
// scale the image to fill the full width of the ImageView. do this only if
// we haven't set a bitmap before, or if the bitmap size has changed
@@ -410,7 +443,7 @@ public class RecentsPanelView extends Re
h.thumbnailViewImageBitmap.getWidth() != thumbnail.getWidth() ||
h.thumbnailViewImageBitmap.getHeight() != thumbnail.getHeight()) {
if (mFitThumbnailToXY) {
- h.thumbnailViewImage.setScaleType(ScaleType.FIT_XY);
+ h.thumbnailViewImage.setRotationY(25.0f);
} else {
Matrix scaleMatrix = new Matrix();
float scale = mThumbnailWidth / (float) thumbnail.getWidth();
Related
Removal of Carrier from Notification Bar
So far all my searches on how to remove the carrier from the drop down notification bar focus on changing the string value to something else or blanking it out. I would like to remove that whole section. I am on Rogers and my carrier is not listed in eri.xml, so that is not an option anyway. I found some interesting info on this site: http://www.absolutelyandroid.com/ui-tweaks-on-cm6-a-tutorial/ which explained some bits inside status_bar_expanded.xml from the framework-res.apk. I am not that familiar with the code (yet) but wondered what would happen if I removed the chunk that refers to "plmnLabel" and "spnLabel"? Could I safely remove that wasted space that tells me what I already know (that I'm on Rogers network). Code: <?xml version="1.0" encoding="UTF-8"?> <com.android.server.status.ExpandedView android:orientation="vertical" android:background="@drawable/status_bar_background" android:focusable="true" android:descendantFocusability="afterDescendants" android:directionality="leftToRight" xmlns:android="http://schemas.android.com/apk/res/android"> <LinearLayout android:orientation="horizontal" android:background="@drawable/status_bar_header_background" android:paddingTop="3.0dip" android:paddingRight="3.0dip" android:paddingBottom="5.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content"> [COLOR="Red"]<LinearLayout android:layout_gravity="center_vertical" android:orientation="vertical" android:paddingBottom="1.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_marginLeft="5.0dip" android:layout_marginTop="1.0dip" android:layout_weight="1.0"> <TextView android:textAppearance="?textAppearanceLarge" android:textColor="#ffffffff" android:layout_gravity="center_vertical" android:id="@id/plmnLabel" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" /> <TextView android:textAppearance="?textAppearanceLarge" android:textColor="#ffffffff" android:layout_gravity="center_vertical" android:id="@id/spnLabel" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" /> </LinearLayout>[/COLOR] <TextView android:textSize="14.0sp" android:textColor="#ff000000" android:layout_gravity="center_vertical" android:id="@id/clear_all_button" android:background="@drawable/btn_default_small" android:paddingLeft="15.0dip" android:paddingRight="15.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="4.0dip" android:layout_marginBottom="1.0dip" android:text="@string/status_bar_clear_all_button" style="\?android:attr/buttonStyle" /> </LinearLayout> <FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content"> <ScrollView android:id="@id/scroll" android:fadingEdge="none" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0"> <com.android.server.status.NotificationLinearLayout android:orientation="vertical" android:id="@id/notificationLinearLayout" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0"> <TextView android:textAppearance="@style/TextAppearance.StatusBarTitle" android:id="@id/noNotificationsTitle" android:background="@drawable/title_bar_portrait" android:paddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/status_bar_no_notifications_title" /> <TextView android:textAppearance="@style/TextAppearance.StatusBarTitle" android:id="@id/ongoingTitle" android:background="@drawable/title_bar_portrait" android:paddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/status_bar_ongoing_events_title" /> <LinearLayout android:orientation="vertical" android:id="@id/ongoingItems" android:layout_width="fill_parent" android:layout_height="wrap_content" /> <TextView android:textAppearance="@style/TextAppearance.StatusBarTitle" android:id="@id/latestTitle" android:background="@drawable/title_bar_portrait" android:paddingLeft="5.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/status_bar_latest_events_title" /> <LinearLayout android:orientation="vertical" android:id="@id/latestItems" android:layout_width="fill_parent" android:layout_height="wrap_content" /> </com.android.server.status.NotificationLinearLayout> </ScrollView> <ImageView android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/title_bar_shadow" android:scaleType="fitXY" /> </FrameLayout> </com.android.server.status.ExpandedView> The only reason I don't intend to remove the next level of nested FrameLayout tags is because the Clear button appears in it. I'm not sure what to do about that. Eventually, I would like to figure out how to add power control toggles to this are (much like some other themes/roms have done). Any thoughts?
I found a little more info (not directly helpful to what I want to do) that will help blank the carrier if that is all you want to do. My carrier is not listed in my eri.xml Code: <?xml version="1.0" encoding="UTF-8"?> <EriFile VersionNumber="1357" NumberOfEriEntries="12" EriFileType="1"> <CallPromptId Id="0" CallPromptText="CallPromptId0" /> <CallPromptId Id="1" CallPromptText="CallPromptId1" /> <CallPromptId Id="2" CallPromptText="CallPromptId2" /> <EriInfo RoamingIndicator="64" IconIndex="1" IconMode="0" EriText="T-CDMA 64" CallPromptId="0" AlertId="0" /> <EriInfo RoamingIndicator="65" IconIndex="65" IconMode="0" EriText="T-CDMA 65" CallPromptId="0" AlertId="0" /> <EriInfo RoamingIndicator="66" IconIndex="1" IconMode="0" EriText="T-CDMA Ext 66" CallPromptId="0" AlertId="0" /> <EriInfo RoamingIndicator="67" IconIndex="67" IconMode="0" EriText="T-CDMA Ext 67" CallPromptId="0" AlertId="0" /> <EriInfo RoamingIndicator="68" IconIndex="68" IconMode="0" EriText="T-CDMA Roam 68" CallPromptId="0" AlertId="0" /> <EriInfo RoamingIndicator="69" IconIndex="69" IconMode="1" EriText="T-CDMA Ext 69" CallPromptId="0" AlertId="0" /> <EriInfo RoamingIndicator="70" IconIndex="70" IconMode="1" EriText="T-CDMA Roam 70" CallPromptId="0" AlertId="0" /> <EriInfo RoamingIndicator="71" IconIndex="1" IconMode="0" EriText="T-CDMA Ext 71" CallPromptId="0" AlertId="0" /> <EriInfo RoamingIndicator="72" IconIndex="72" IconMode="0" EriText="T-CDMA Ext 72" CallPromptId="0" AlertId="0" /> <EriInfo RoamingIndicator="73" IconIndex="73" IconMode="0" EriText="T-CDMA Roam 73" CallPromptId="0" AlertId="0" /> <EriInfo RoamingIndicator="74" IconIndex="74" IconMode="1" EriText="T-CDMA Ext 74" CallPromptId="0" AlertId="0" /> <EriInfo RoamingIndicator="75" IconIndex="75" IconMode="1" EriText="T-CDMA Roam 75" CallPromptId="0" AlertId="0" /> </EriFile> But I did find a file located on my phone that lists many providers with their details (from all continents): /etc/customization/content/com/sonyericsson/r2r/client/preloaded_config.xml Gonna take a browse through that and look for "Rogers".
[Q] Help need with modifying the SystemUI
hello i need your help with modifying the systemui.apk from touchwiz. to start off i have decomplied the systemui.apk and framework-res.apk in my android dev linux vmware machine, i did load in the framworks + the twframework. what i am trying to do is remove the brigness slider and the quick setting toggles from the notifaction bar and i did so by removing these lines from layout/tw_status_bar_expaneded.xml and i edited it on eclipse <com.wanamlite.systemui.quickpanel.PowerWidget android:id="@id/exp_power_stat" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="@dimen/notification_panel_header_height" /> <HorizontalScrollView android:id="@id/quicksetting_scroller" android:scrollbars="none" android:layout_width="wrap_content" android:layout_height="@dimen/quick_setting_button_height" android:layout_marginTop="@dimen/tw_notification_panel_header_height"> <com.android.systemui.statusbar.policy.quicksetting.QuickSettingPanel androidrientation="horizontal" android:id="@id/quicksetting_container" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:divider="@drawable/tw_black_bg" android:showDividers="middle" /> </HorizontalScrollView> and <LinearLayout androidrientation="vertical" android:id="@id/brightness_controller" android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="56.0dip"> <LinearLayout androidrientation="horizontal" android:layout_width="fill_parent" android:layout_height="55.0dip"> <ImageView android:id="@id/brightness_icon" android:clickable="true" android:layout_width="25.0dip" android:layout_height="fill_parent" android:layout_marginLeft="13.0dip" android:src="@drawable/ic_sysbar_brightness" android:contentDescription="@string/accessibility_brightness_icon" /> <FrameLayout android:id="@id/brightness_group" android:layout_width="fill_parent" android:layout_height="fill_parent"> <com.android.systemui.statusbar.policy.ToggleSlider android:id="@id/brightness" android:layout_width="fill_parent" android:layout_height="fill_parent" systemui:text="@string/status_bar_settings_auto_brightness_label" /> <com.android.systemui.statusbar.policy.ToggleSlider android:id="@id/auto_brightness" android:layout_width="fill_parent" android:layout_height="fill_parent" systemui:text="@string/status_bar_settings_auto_brightness_label" /> </FrameLayout> </LinearLayout> <View android:background="#ff091a24" android:layout_width="fill_parent" android:layout_height="1.0dip" /> </LinearLayout> after i did that i recomiled it with apktool and it had no problems, i copyed the orignal androidmanifest and meta-inf into the modified apk, zipaligned and made a flashable zip when i booted the phone i had no status bar and the systemui was crashing so i restored it and i got it back but now i have no mtp connection to the computer nor do i have adb
Guide How To Natively Change Lock Screen Carrier Label Text Verizon S5
Guide How To Natively Change Lock Screen Carrier Label Text Verizon S5 First thing you need to do is decompile Keyguard.apk located in system/privapp Find keyguard_emergency_carrier_area.xml in res/layout-sw360dp. Look for line: "should be line 8" <com.android.keyguard.CarrierText android:textAppearance="?android:textAppearanceMedium" android:textSize="@dimen/kg_status_line_font_size" android:textColor="#ffffffff" android:ellipsize="marquee" android:id="@id/carrier_text" androidaddingBottom="5.0dip" android:focusable="true" android:focusableInTouchMode="true" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="4.0dip" android:singleLine="true" android:shadowColor="#7f000000" android:shadowDy="2.0" android:shadowRadius="2.0" android:textAllCaps="@bool/kg_use_all_caps" android:fontFamily="roboto-regular" style="@style/keyguard_text_shadow" /> Change to and save file <TextView android:textSize="@dimen/kg_status_line_font_size" android:textColor="#ffffffff" android:ellipsize="marquee" androidaddingBottom="5.0dip" android:focusable="true" android:focusableInTouchMode="true" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="4.0dip" android:text="@string/mytext" android:singleLine="true" android:shadowColor="#7f000000" android:shadowDy="2.0" android:shadowRadius="2.0" android:textAllCaps="@bool/kg_use_all_caps" android:fontFamily="roboto-regular" style="@style/keyguard_text_shadow" /> Then open res/values/strings.xml Look for line 304. Add a line right below line 304 as follows: <string name="tts_temperature">Degree</string> 303 <string name="keyguard_guest_mode_help_text">"Swipe to switch to %s's home screen"</string> 304 <string name="keyguard_clock_with_battery">%s battery power</string> 305 <string name="mytext">PUT YOUR TEXT HERE</string> 306 </resources> Where it says "PUT YOUR TEXT HERE" is where you enter whatever you want it to say on your lock screen. Save file and compile Keyguard.apk Push to System/privapp and Enjoy!!!
[HOWTO] Make a better S5 Power Menu (V1.3 PROPER)
Dear friends, Just a little HowTo thread to show how to make a cool S5 themed Power Menu. The idea was to make the sound toggle like the S5 : Old: New: The Idea : - Remove the old sound icons, - Replace and move old toogles. Changing framework-res.apk: - Decompile framework-res.apk, - Copy the provided source files (drawable\tw_silent_mode_indicator, drawable-xxhdpi\PNgs), - Change layout\global_actions_silent_mode.xml : Old: Code: <?xml version="1.0" encoding="utf-8"?> <LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content" android:minHeight="?listPreferredItemHeight" xmlns:android="http://schemas.android.com/apk/res/android"> <View android:visibility="invisible" android:layout_width="4.0dip" android:layout_height="fill_parent" /> [COLOR="Red"]<LinearLayout android:orientation="vertical" android:id="@id/option1" android:background="?actionBarItemBackground" android:focusable="true" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0" android:contentDescription="@string/globalactions_silent_mode_mute"> <ImageView android:layout_gravity="center" android:layout_width="34.0dip" android:layout_height="34.0dip" android:layout_marginTop="5.0dip" android:src="@drawable/tw_device_options_mute" android:scaleType="center" /> <TextView android:textSize="15.0dip" android:textColor="#fff5f5f5" android:gravity="center" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/global_action_sound_mode_mute" /> <ImageView android:layout_gravity="center" android:background="@drawable/tw_silent_mode_indicator" android:duplicateParentState="true" android:layout_width="fill_parent" android:layout_height="5.0dip" android:layout_marginTop="1.0dip" android:layout_marginBottom="5.0dip" android:scaleType="center" /> </LinearLayout>[/COLOR] <LinearLayout android:orientation="horizontal" android:layout_width="1.0dip" android:layout_height="fill_parent" android:layout_marginLeft="4.0dip" android:layout_marginTop="5.0dip" android:layout_marginRight="4.0dip" android:layout_marginBottom="5.0dip"> <ImageView android:layout_gravity="center" android:layout_width="1.0dip" android:layout_height="fill_parent" android:src="@drawable/tw_device_options_divider" /> </LinearLayout> <LinearLayout android:orientation="vertical" android:id="@id/option2" android:background="?actionBarItemBackground" android:focusable="true" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0" android:contentDescription="@string/globalactions_silent_mode_vibrate"> <ImageView android:layout_gravity="center" android:layout_width="34.0dip" android:layout_height="34.0dip" android:layout_marginTop="5.0dip" android:src="@drawable/tw_device_options_vibrate" android:scaleType="center" /> <TextView android:textSize="15.0dip" android:textColor="#fff5f5f5" android:gravity="center" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/global_action_sound_mode_vibrate" /> <ImageView android:layout_gravity="center" android:background="@drawable/tw_silent_mode_indicator" android:duplicateParentState="true" android:layout_width="fill_parent" android:layout_height="5.0dip" android:layout_marginTop="1.0dip" android:layout_marginBottom="5.0dip" android:scaleType="center" /> </LinearLayout> <LinearLayout android:orientation="horizontal" android:id="@id/dynamic_spacer" android:layout_width="1.0dip" android:layout_height="fill_parent" android:layout_marginLeft="4.0dip" android:layout_marginTop="5.0dip" android:layout_marginRight="4.0dip" android:layout_marginBottom="5.0dip"> <ImageView android:layout_gravity="center" android:layout_width="1.0dip" android:layout_height="fill_parent" android:src="@drawable/tw_device_options_divider" /> </LinearLayout> <LinearLayout android:orientation="vertical" android:id="@id/option3" android:background="?actionBarItemBackground" android:focusable="true" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0" android:contentDescription="@string/globalactions_silent_mode_sound"> <ImageView android:layout_gravity="center" android:layout_width="34.0dip" android:layout_height="34.0dip" android:layout_marginTop="5.0dip" android:src="@drawable/tw_device_options_sound" android:scaleType="center" /> <TextView android:textSize="15.0dip" android:textColor="#fff5f5f5" android:gravity="center" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/global_action_sound_mode_sound" /> <ImageView android:layout_gravity="center" android:background="@drawable/tw_silent_mode_indicator" android:duplicateParentState="true" android:layout_width="fill_parent" android:layout_height="5.0dip" android:layout_marginTop="1.0dip" android:layout_marginBottom="5.0dip" android:scaleType="center" /> </LinearLayout> <View android:visibility="invisible" android:layout_width="4.0dip" android:layout_height="fill_parent" /> </LinearLayout> New : Code: <?xml version="1.0" encoding="utf-8"?> <LinearLayout android:orientation="horizontal" android:background="#ff005060" android:layout_width="fill_parent" android:layout_height="wrap_content" android:minHeight="?listPreferredItemHeight" xmlns:android="http://schemas.android.com/apk/res/android"> <View android:visibility="invisible" android:layout_width="4.0dip" android:layout_height="fill_parent" /> [COLOR="Red"] <LinearLayout android:orientation="vertical" android:id="@id/option1" android:background="#ff005060" android:focusable="true" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0" android:contentDescription="@string/globalactions_silent_mode_mute"> <ImageView android:layout_gravity="center" android:background="@drawable/tw_silent_mode_indicator" android:duplicateParentState="true" android:layout_width="45.0dip" android:layout_height="45.0dip" android:layout_marginTop="3.0dip" android:layout_marginBottom="1.0dip" android:scaleType="center" /> <TextView android:textSize="15.0dip" android:textColor="#fff5f5f5" android:gravity="center" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/global_action_sound_mode_mute" /> </LinearLayout>[/COLOR] <LinearLayout android:orientation="vertical" android:id="@id/option2" android:background="#ff005060" android:focusable="true" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0" android:contentDescription="@string/globalactions_silent_mode_vibrate"> <ImageView android:layout_gravity="center" android:background="@drawable/tw_silent_mode_indicator2" android:duplicateParentState="true" android:layout_width="45.0dip" android:layout_height="45.0dip" android:layout_marginTop="3.0dip" android:layout_marginBottom="1.0dip" android:scaleType="center" /> <TextView android:textSize="15.0dip" android:textColor="#fff5f5f5" android:gravity="center" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/global_action_sound_mode_vibrate" /> </LinearLayout> <LinearLayout android:orientation="vertical" android:id="@id/option3" android:background="#ff005060" android:focusable="true" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0" android:contentDescription="@string/globalactions_silent_mode_sound"> <ImageView android:layout_gravity="center" android:background="@drawable/tw_silent_mode_indicator3" android:duplicateParentState="true" android:layout_width="45.0dip" android:layout_height="45.0dip" android:layout_marginTop="3.0dip" android:layout_marginBottom="1.0dip" android:scaleType="center" /> <TextView android:textSize="15.0dip" android:textColor="#fff5f5f5" android:gravity="center" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/global_action_sound_mode_sound" /> </LinearLayout> <View android:visibility="invisible" android:layout_width="4.0dip" android:layout_height="fill_parent" /> </LinearLayout> - Add new resources in the public.xml file (PNG, tw_silent_mode_indicator2.xml & tw_silent_mode_indicator3.xml) : Code: [COLOR="Red"] <public type="drawable" name="tw_silent_mode_indicator2" id="0x01080fcf" /> <public type="drawable" name="tw_silent_mode_indicator3" id="0x01080fd0" /> <public type="drawable" name="tw_device_options_mute_off" id="0x01080fd1" /> <public type="drawable" name="tw_device_options_mute_on" id="0x01080fd2" /> <public type="drawable" name="tw_device_options_sound_off" id="0x01080fd3" /> <public type="drawable" name="tw_device_options_sound_on" id="0x01080fd4" /> <public type="drawable" name="tw_device_options_vibrate_off" id="0x01080fd5" /> <public type="drawable" name="tw_device_options_vibrate_on" id="0x01080fd6" /> [/COLOR] - Recompile the framework-res apk and put it on you phone. Now you should have something like this : UPDATE: Sound icons ipdated in V1.2, Should be OK now (proper tansparent colors & shapes). For those who use Imperium V10, here is the compiled framework file (+ System UI to have the complete System Mod): http://www.mediafire.com/download/r7ot40836ilrev7/S5SysTheme.zip
Perfect dude, Can you make it for Ozcanrom v4.2?
hosseinito said: Perfect dude, Can you make it for Ozcanrom v4.2? Click to expand... Click to collapse If you provide me the framework-res.apk file ...
nmeuret said: If you provide me the framework-res.apk file ... Click to expand... Click to collapse d-h.st/ulm Here you go. Extract the zip...
hi i reworked the images igot a problem when i recompile because of multiply image ids how can i change the ids Code: C:\AdvancedApkTool\3-Out\framework-res.apk\res\values\public.xml:10903: error: Multiple entry names declared for public entry identifier 0xfd0 in type drawable (tw_silent_mode_indicator2 vs tw_toolbox_edit_area_bg). C:\AdvancedApkTool\3-Out\framework-res.apk\res\values\public.xml:8718: Originally defined here. C:\AdvancedApkTool\3-Out\framework-res.apk\res\values\public.xml:10903: error: Public symbol drawable/tw_toolbox_edit_area_bg declared here is not defined. C:\AdvancedApkTool\3-Out\framework-res.apk\res\values\public.xml:10904: error: Multiple entry names declared for public entry identifier 0xfd1 in type drawable (tw_silent_mode_indicator3 vs tw_toolbox_edit_btn). C:\AdvancedApkTool\3-Out\framework-res.apk\res\values\public.xml:8719: Originally defined here. C:\AdvancedApkTool\3-Out\framework-res.apk\res\values\public.xml:10904: error: Public symbol drawable/tw_toolbox_edit_btn declared here is not defined. C:\AdvancedApkTool\3-Out\framework-res.apk\res\values\public.xml:10905: error: Multiple entry names declared for public entry identifier 0xfd2 in type drawable (tw_device_options_mute_off vs tw_toolbox_edit_btn_focus). C:\AdvancedApkTool\3-Out\framework-res.apk\res\values\public.xml:8720: Originally defined here. C:\AdvancedApkTool\3-Out\framework-res.apk\res\values\public.xml:10905: error: Public symbol drawable/tw_toolbox_edit_btn_focus declared here is not defined. C:\AdvancedApkTool\3-Out\framework-res.apk\res\values\public.xml:10906: error: Multiple entry names declared for public entry identifier 0xfd3 in type drawable (tw_device_options_mute_on vs tw_toolbox_floating_background). C:\AdvancedApkTool\3-Out\framework-res.apk\res\values\public.xml:8721: Originally defined here. C:\AdvancedApkTool\3-Out\framework-res.apk\res\values\public.xml:10906: error: Public symbol drawable/tw_toolbox_floating_background declared here is not defined. C:\AdvancedApkTool\3-Out\framework-res.apk\res\values\public.xml:10907: error: Multiple entry names declared for public entry identifier 0xfd4 in type drawable (tw_device_options_sound_off vs tw_toolbox_floating_btn_earphones). C:\AdvancedApkTool\3-Out\framework-res.apk\res\values\public.xml:8722: Originally defined here. C:\AdvancedApkTool\3-Out\framework-res.apk\res\values\public.xml:10907: error: Public symbol drawable/tw_toolbox_floating_btn_earphones declared here is not defined. C:\AdvancedApkTool\3-Out\framework-res.apk\res\values\public.xml:10908: error: Multiple entry names declared for public entry identifier 0xfd5 in type drawable (tw_device_options_sound_on vs tw_toolbox_floating_btn_earphones_open). C:\AdvancedApkTool\3-Out\framework-res.apk\res\values\public.xml:8723: Originally defined here. C:\AdvancedApkTool\3-Out\framework-res.apk\res\values\public.xml:10908: error: Public symbol drawable/tw_toolbox_floating_btn_earphones_open declared here is not defined. C:\AdvancedApkTool\3-Out\framework-res.apk\res\values\public.xml:10909: error: Multiple entry names declared for public entry identifier 0xfd6 in type drawable (tw_device_options_vibrate_off vs tw_toolbox_remove_area_bg). C:\AdvancedApkTool\3-Out\framework-res.apk\res\values\public.xml:8724: Originally defined here. C:\AdvancedApkTool\3-Out\framework-res.apk\res\values\public.xml:10909: error: Public symbol drawable/tw_toolbox_remove_area_bg declared here is not defined. C:\AdvancedApkTool\3-Out\framework-res.apk\res\values\public.xml:10910: error: Multiple entry names declared for public entry identifier 0xfd7 in type drawable (tw_device_options_vibrate_on vs tw_toolbox_remove_btn). C:\AdvancedApkTool\3-Out\framework-res.apk\res\values\public.xml:8725: Originally defined here. C:\AdvancedApkTool\3-Out\framework-res.apk\res\values\public.xml:10910: error: Public symbol drawable/tw_toolbox_remove_btn declared here is not defined.
dack23 said: hi i reworked the images igot a problem when i recompile because of multiply image ids how can i change the ids [/CODE] Click to expand... Click to collapse Thanks. Concerning the IDS, you have to find the last available ID and increment it for each new entry. That's not very easy, take few minutes each time (don't know if there is a fast way ?).
nmeuret said: Thanks. Concerning the IDS, you have to find the last available ID and increment it for each new entry. That's not very easy, take few minutes each time (don't know if there is a fast way ?). Click to expand... Click to collapse maybe u can look at this it would be great thanks http://www37.zippyshare.com/v/41008646/file.html
dack23 said: maybe u can look at this it would be great Click to expand... Click to collapse Ok so in your public.xml you see that the last item of type="Drawable" is : <public type="drawable" name="tw_ic_lock_screenshot" id="0x01081029" /> The first thing to check if ID 0x01081029 + 1 = 0x0108102a is available ... and it is. The the next IDS should be 0x0108102a, 0x0108102b, 0x0108102c, etc ...
Hi @mmeuret, Can you please make it for GF 1.2? https://www.dropbox.com/s/jeyevc6fx67k3iy/framework-res.apk?dl=0 Thank you ?
nmeuret said: Ok so in your public.xml you see that the last item of type="Drawable" is : <public type="drawable" name="tw_ic_lock_screenshot" id="0x01081029" /> The first thing to check if ID 0x01081029 + 1 = 0x0108102a is available ... and it is. The the next IDS should be 0x0108102a, 0x0108102b, 0x0108102c, etc ... Click to expand... Click to collapse ok first id ok but last 2 dont work <public type="drawable" name="tw_silent_mode_indicator2" id="0x0108102a" /> <public type="drawable" name="tw_silent_mode_indicator3" id="0x0108102b" /> <public type="drawable" name="tw_device_options_mute_off" id="0x0108102c" /> <public type="drawable" name="tw_device_options_mute_on" id="0x0108102d" /> <public type="drawable" name="tw_device_options_sound_off" id="0x0108102e" /> <public type="drawable" name="tw_device_options_sound_on" id="0x0108102f" /> dont work <public type="drawable" name="tw_device_options_vibrate_off" id="0x0108110a" /> <public type="drawable" name="tw_device_options_vibrate_on" id="0x0108110b" /> <public type="drawable" name="tw_device_options_vibrate_off" id="0x0108102g" /> <public type="drawable" name="tw_device_options_vibrate_on" id="0x0108102h" /> need ur help
i followed this guide but i get error while i was compiling..this is the log..what can i do? W: Could not find sources C:\AndroidMultitool\Decompiled_apk\framework-res\res\values\public.xml:10895: error: Multiple entry names declared for public entry identifier 0xfd0 in type drawable (tw_silent_mode_indicator2 vs tw_toolbox_edit_area_bg). C:\AndroidMultitool\Decompiled_apk\framework-res\res\values\public.xml:11941: Originally defined here. C:\AndroidMultitool\Decompiled_apk\framework-res\res\values\public.xml:10895: error: Public symbol drawable/tw_toolbox_edit_area_bg declared here is not defined. C:\AndroidMultitool\Decompiled_apk\framework-res\res\values\public.xml:10896: error: Multiple entry names declared for public entry identifier 0xfd1 in type drawable (tw_silent_mode_indicator3 vs tw_toolbox_edit_btn). C:\AndroidMultitool\Decompiled_apk\framework-res\res\values\public.xml:11942: Originally defined here. C:\AndroidMultitool\Decompiled_apk\framework-res\res\values\public.xml:10896: error: Public symbol drawable/tw_toolbox_edit_btn declared here is not defined. C:\AndroidMultitool\Decompiled_apk\framework-res\res\values\public.xml:10897: error: Multiple entry names declared for public entry identifier 0xfd2 in type drawable (tw_device_options_mute_off vs tw_toolbox_edit_btn_focus). C:\AndroidMultitool\Decompiled_apk\framework-res\res\values\public.xml:11943: Originally defined here. C:\AndroidMultitool\Decompiled_apk\framework-res\res\values\public.xml:10897: error: Public symbol drawable/tw_toolbox_edit_btn_focus declared here is not defined. C:\AndroidMultitool\Decompiled_apk\framework-res\res\values\public.xml:10898: error: Multiple entry names declared for public entry identifier 0xfd3 in type drawable (tw_device_options_mute_on vs tw_toolbox_floating_background). C:\AndroidMultitool\Decompiled_apk\framework-res\res\values\public.xml:11944: Originally defined here. C:\AndroidMultitool\Decompiled_apk\framework-res\res\values\public.xml:10898: error: Public symbol drawable/tw_toolbox_floating_background declared here is not defined. C:\AndroidMultitool\Decompiled_apk\framework-res\res\values\public.xml:10899: error: Multiple entry names declared for public entry identifier 0xfd4 in type drawable (tw_device_options_sound_off vs tw_toolbox_floating_btn_earphones). C:\AndroidMultitool\Decompiled_apk\framework-res\res\values\public.xml:11945: Originally defined here. C:\AndroidMultitool\Decompiled_apk\framework-res\res\values\public.xml:10899: error: Public symbol drawable/tw_toolbox_floating_btn_earphones declared here is not defined. C:\AndroidMultitool\Decompiled_apk\framework-res\res\values\public.xml:10900: error: Multiple entry names declared for public entry identifier 0xfd5 in type drawable (tw_device_options_sound_on vs tw_toolbox_floating_btn_earphones_open). C:\AndroidMultitool\Decompiled_apk\framework-res\res\values\public.xml:11946: Originally defined here. C:\AndroidMultitool\Decompiled_apk\framework-res\res\values\public.xml:10900: error: Public symbol drawable/tw_toolbox_floating_btn_earphones_open declared here is not defined. C:\AndroidMultitool\Decompiled_apk\framework-res\res\values\public.xml:10901: error: Multiple entry names declared for public entry identifier 0xfd6 in type drawable (tw_device_options_vibrate_off vs tw_toolbox_remove_area_bg). C:\AndroidMultitool\Decompiled_apk\framework-res\res\values\public.xml:11947: Originally defined here. C:\AndroidMultitool\Decompiled_apk\framework-res\res\values\public.xml:10901: error: Public symbol drawable/tw_toolbox_remove_area_bg declared here is not defined. C:\AndroidMultitool\Decompiled_apk\framework-res\res\values\public.xml:10902: error: Multiple entry names declared for public entry identifier 0xfd7 in type drawable (tw_device_options_vibrate_on vs tw_toolbox_remove_btn). C:\AndroidMultitool\Decompiled_apk\framework-res\res\values\public.xml:11948: Originally defined here. C:\AndroidMultitool\Decompiled_apk\framework-res\res\values\public.xml:10902: error: Public symbol drawable/tw_toolbox_remove_btn declared here is not defined. Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [C:\Users\Andrea\AppData\Local\Temp\brut_util_Jar_6156724742753412531.tmp, p, --forced-package-id, 1, --min-sdk-version, 19, --target-sdk-version, 19, --version-code, 19, --version-name, 4.4.2-I9505XXUGNF1, -F, C:\Users\Andrea\AppData\Local\Temp\APKTOOL9066347275687172668.tmp, -x, -S, C:\AndroidMultitool\Decompiled_apk\framework-res\res, -M, C:\AndroidMultitool\Decompiled_apk\framework-res\AndroidManifest.xml] at brut.androlib.Androlib.buildResourcesFull(Androlib.java:435) at brut.androlib.Androlib.buildResources(Androlib.java:363) at brut.androlib.Androlib.build(Androlib.java:286) at brut.androlib.Androlib.build(Androlib.java:258) at brut.apktool.Main.cmdBuild(Main.java:236) at brut.apktool.Main.main(Main.java:88) Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [C:\Users\Andrea\AppData\Local\Temp\brut_util_Jar_6156724742753412531.tmp, p, --forced-package-id, 1, --min-sdk-version, 19, --target-sdk-version, 19, --version-code, 19, --version-name, 4.4.2-I9505XXUGNF1, -F, C:\Users\Andrea\AppData\Local\Temp\APKTOOL9066347275687172668.tmp, -x, -S, C:\AndroidMultitool\Decompiled_apk\framework-res\res, -M, C:\AndroidMultitool\Decompiled_apk\framework-res\AndroidManifest.xml] at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:470) at brut.androlib.Androlib.buildResourcesFull(Androlib.java:416) ... 5 more Caused by: brut.common.BrutException: could not exec command: [C:\Users\Andrea\AppData\Local\Temp\brut_util_Jar_6156724742753412531.tmp, p, --forced-package-id, 1, --min-sdk-version, 19, --target-sdk-version, 19, --version-code, 19, --version-name, 4.4.2-I9505XXUGNF1, -F, C:\Users\Andrea\AppData\Local\Temp\APKTOOL9066347275687172668.tmp, -x, -S, C:\AndroidMultitool\Decompiled_apk\framework-res\res, -M, C:\AndroidMultitool\Decompiled_apk\framework-res\AndroidManifest.xml] at brut.util.OS.exec(OS.java:89) at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:464) ... 6 more Impossibile trovare il file specificato. Impossibile trovare il file specificato. EDIT: i saw now that is the same error of @dack23 .. Is there a solution? Thanks in advance
nmeuret said: Ok so in your public.xml you see that the last item of type="Drawable" is : <public type="drawable" name="tw_ic_lock_screenshot" id="0x01081029" /> The first thing to check if ID 0x01081029 + 1 = 0x0108102a is available ... and it is. The the next IDS should be 0x0108102a, 0x0108102b, 0x0108102c, etc ... Click to expand... Click to collapse thanks i got it u r awesome:good:
Thanks, great.
here is my Resault
dack23 said: here is my Resault Click to expand... Click to collapse How have you solved the problem? I want this too.. Thanks
Can u make it as flashabel zip please Sent from my SM-G900F using Tapatalk
dack23 said: here is my Resault Click to expand... Click to collapse Good !
thereassaad said: Can u make it as flashabel zip please Click to expand... Click to collapse The problem is that the Mod depends on Rom framework and cannot be universal. I provided the Imperium version, if someone makes other versions I can put them in OP.
[ROM][I9505][XXUGNG8][4.4.2] *11.08.2014* Project X Rom LMS [Galaxy S5 Style] DOWNLOAD Project X Rom LMS v.35 http://www.android-hilfe.de/samsung...8-2014-project-x-rom-lms-galaxy-s5-style.html Including all working S5 Apps And here The patch With The Better S5 Powermenu DOWNLOAD LMS PATCHv.35.2 http://www46.zippyshare.com/v/50511746/file.html
Anyone knows why i have this square around the circle?
[Q]remove SIM Switcher from notification panel ?
Someone can point me to the XML file to MOD LGSystemUI and remove SIM switcher from notification panel ? LG G2 mini D618 Stock 5.0.2
compared between the two status_bar_expanded the msim_status_bar_expanded => when there is two sim card the status_bar_expanded => when there is one sim card 2nd sim slot is empty found two difference - the first one in status_bar_expanded those two lines : Code: <LinearLayout android:layout_gravity="top" android:id="@id/mascot_view" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="@dimen/mascot_display_height" /> <include android:layout_gravity="bottom" android:layout_width="fill_parent" android:layout_height="@dimen/carrier_label_height" android:layout_marginBottom="@dimen/close_handle_height" layout="@layout/carrier_label" /> are replaced in msim_status_bar_expanded with those 3 lines : Code: <include android:layout_gravity="bottom" android:layout_width="fill_parent" android:layout_height="@dimen/carrier_label_height" android:layout_marginBottom="@dimen/close_handle_height" layout="@layout/msim_carrier_label" /> <include android:layout_gravity="bottom" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="@dimen/carrier_label_height" layout="@layout/subs_label" /> <include android:layout_gravity="bottom" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="@dimen/carrier_label_height" android:layout_marginBottom="@dimen/close_handle_height" layout="@layout/carrier_label" /> - 2nd one : in status_bar_expanded this line Code: 1<include android:visibility="invisible" layout="@layout/keyguard_status_bar" /> is replaced with this line in msim_status_bar_expanded Code: 1<include android:visibility="invisible" layout="@layout/msim_keyguard_status_bar" /> any one knows with XML ?? tried replace contante of msim_status_bar_expanded with the one of the status_bar_expanded and i got FC