[MOD][CM10.1] Sense 4.0 style Task Manager [Dispositivi MDPI/LDPI] | Forum Android | AndroidWorld

ATTENZIONE:
L’Utente assume la totale responsabilità anche giuridica per ogni attività da lui svolta e per ogni contenuto pubblicato e/o scambiato. (leggi le condizioni d’uso).

Si invitano gli Utenti a non pubblicare o scambiare alcuna informazione che permetta di risalire, anche indirettamente, alla propria identità o all’identità di terzi (nome, cognome, residenza, email…) e divulgare alcun tipo di dato sensibile proprio o di terzi.

Gentile Utente,
desideriamo informarti che tutti i servizi sono erogati, agli stessi termini e condizioni, da Arnoldo Mondadori Editore S.p.A. quale società incorporante di Banzai Media S.r.l.

X
  1. #1
    L'avatar di mnemonyc Android Developer
    Registrato dal
    Aug 2012
    Residenza
    Bari
    Dispositivo
    Galaxy Mini, Galaxy S3
    Operatore
    Vodafone
    Messaggi
    1,050
    Grazie!
    39
    Ringraziato 296 volte in 196 post

    [MOD][CM10.1] Sense 4.0 style Task Manager [Dispositivi MDPI/LDPI]

    Buongiorno ragazzi, oggi vi presenterò una figata scovata su xda nata per i devices di fascia alta e CM10, e da me adattato per quelli medio/bassi con rom CM10.1

    Prima di tutto abbiamo bisogno di:
    - pazienza
    - conoscenze di decompilazione/recompilazione di Apk
    - notepad++
    - Tool per la decompilazione: apkmanager/apktool/Virtous/apkmultitools

    1.DECOMPILATE, framework-res.apk

    - /res/values/dimens.xml : cambiate il thumbnail size in...
    codice:
    <dimen name="thumbnail_height">240.0dip</dimen>
    <dimen name="thumbnail_width">151.0dip</dimen>
    Salvate e ricompilate.

    2.DECOMPILATE, SystemUI.apk

    - /res/values/bools.xml
    codice:
    <bool name="config_recents_thumbnail_image_fits_to_xy">true</bool>
    - /res/values/strings.xml
    aggiungete questa stringa alla fine
    codice:
    <string name="recent_apps_title">Recent apps</string>
    - /res/values-it/strings.xml
    aggiungete questa stringa alla fine
    codice:
    <string name="recent_apps_title">Applicazioni recenti</string>
    -/res/values/ids.xml
    aggiungete queste stringhe alla fine
    codice:
    <item type="id" name="recents_transition_background" />
    <item type="id" name="recents_transition_placeholder_icon" />
    - /res/layout/status_bar_no_recent_apps.xml
    codice:
    <TextView android:textSize="20.0dip" android:textColor="@*android:color/white" android:gravity="center_horizontal" android:layout_gravity="center" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/status_bar_no_recent_apps" />
    - /res/layout/status_bar_expanded_header.xml
    Prima:
    codice:
    <LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:background="@drawable/notification_header_bg" android:layout_width="fill_parent" android:layout_height="wrap_content" android:baselineAligned="false"
    dopo...
    codice:
    <LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="wrap_content" android:baselineAligned="false"
    - /res/layout/status_bar_recent_item.xml
    Cancellate tutte le stringhe e ripristinate con queste :
    codice:
    <?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="#00000000" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="15.0dip" android:layout_marginRight="15.0dip" android:foreground="#00000000" android:layout_centerInParent="true">
                <ImageView android:id="@id/app_thumbnail_image" android:layout_width="192.0dip" android:layout_height="305.0dip" android:layout_marginTop="15.0dip" android:layout_marginBottom="15.0dip" />
            </FrameLayout>
            <View android:id="@id/recents_callout_line" android:background="@drawable/recents_callout_line" android:layout_width="@dimen/status_bar_recents_app_label_width" android:layout_height="1.0dip" android:layout_marginLeft="@dimen/status_bar_recents_app_label_left_margin" android:layout_marginTop="3.0dip" android:layout_marginRight="3.0dip" android:layout_toLeftOf="@id/app_thumbnail" android:layout_below="@id/app_label" android:layout_alignParentLeft="true" />
            <ImageView android:gravity="center_horizontal" android:id="@id/app_icon" android:layout_width="192.0dip" android:layout_height="wrap_content" android:layout_marginTop="57.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_below="@id/app_thumbnail" />
            <TextView android:textSize="@dimen/status_bar_recents_app_label_text_size" android:textColor="@color/status_bar_recents_app_label_color" android:ellipsize="marquee" android:gravity="center_horizontal" android:id="@id/app_label" android:paddingTop="0.0dip" android:fadingEdge="none" android:fadingEdgeLength="0.0dip" android:layout_width="192.0dip" android:layout_height="fill_parent" android:layout_marginTop="7.0dip" android:scrollHorizontally="true" android:singleLine="true" android:layout_below="@id/app_icon" 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_text_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="40.0dip" android:scrollHorizontally="true" android:singleLine="true" android:layout_below="@id/app_label" android:layout_alignParentBottom="true" />
        </RelativeLayout>
    </FrameLayout>
    - /res/layout/status_bar_recent_panel.xml
    Cancellate tutte le stringhe e ripristinate con queste :
    codice:
    <?xml version="1.0" encoding="utf-8"?>
    <com.android.systemui.recent.RecentsPanelView android:id="@id/recents_root" android:background="@drawable/sense_port" android:layout_width="fill_parent" android:layout_height="fill_parent" systemui:recentItemLayout="@layout/status_bar_recent_item"
      xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
        <View android:id="@id/recents_transition_background" android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" />
        <FrameLayout android:id="@id/recents_bg_protect" android:background="#00000000" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_centerVertical="true">
            <ImageView android:id="@id/recents_transition_placeholder_icon" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="wrap_content" />
            <com.android.systemui.recent.RecentsHorizontalScrollView android:layout_gravity="bottom|left|center" android:id="@id/recents_container" android:scrollbars="none" android:fadingEdge="none" android:fadingEdgeLength="0.0dip" 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>
            <TextView android:textSize="20.0dip" android:textColor="@color/status_bar_recents_app_label_color" android:gravity="center_horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="43.0dip" android:text="@string/recent_apps_title" />
            <ImageView android:layout_gravity="top|right|center" android:id="@id/recents_clear" android:clickable="true" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/ic_notify_clear" />
        </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>
    - /res/layout-land/status_bar_recent_item.xml
    Cancellate tutte le stringhe e ripristinate con queste :
    codice:
    <?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="#00000000" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="15.0dip" android:layout_marginRight="15.0dip" android:foreground="#00000000" android:layout_centerInParent="true">
                <ImageView android:id="@id/app_thumbnail_image" android:layout_width="137.0dip" android:layout_height="217.0dip" android:layout_marginTop="10.0dip" android:layout_marginBottom="20.0dip" />
            </FrameLayout>
            <ImageView android:gravity="center_horizontal" android:id="@id/app_icon" android:layout_width="50.0dip" android:layout_height="wrap_content" android:layout_marginLeft="5.0dip" android:layout_marginTop="10.0dip" android:scaleType="centerInside" android:adjustViewBounds="true" android:maxWidth="35.0dip" android:maxHeight="35.0dip" android:layout_below="@id/app_thumbnail" />
            <TextView android:textSize="@dimen/status_bar_recents_app_label_text_size" android:textColor="@color/status_bar_recents_app_label_color" android:ellipsize="marquee" android:gravity="center" android:id="@id/app_label" android:paddingTop="0.0dip" android:fadingEdge="none" android:fadingEdgeLength="0.0dip" android:layout_width="70.0dip" android:layout_height="fill_parent" android:scrollHorizontally="true" android:singleLine="true" android:layout_toRightOf="@id/app_icon" android:layout_below="@id/app_thumbnail" />
            <TextView android:textSize="@dimen/status_bar_recents_app_description_text_size" android:ellipsize="marquee" android:id="@id/app_description" android:visibility="gone" android:fadingEdge="horizontal" android:fadingEdgeLength="@dimen/status_bar_recents_text_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="40.0dip" android:scrollHorizontally="true" android:singleLine="true" android:layout_below="@id/app_label" android:layout_alignParentBottom="true" />
        </RelativeLayout>
    </FrameLayout>
    - /res/layout-land/status_bar_recent_panel.xml
    Cancellate tutte le stringhe e ripristinate con queste :
    codice:
    <?xml version="1.0" encoding="utf-8"?>
    <com.android.systemui.recent.RecentsPanelView android:id="@id/recents_root" android:background="@drawable/sense_land" android:layout_width="fill_parent" android:layout_height="fill_parent" systemui:recentItemLayout="@layout/status_bar_recent_item"
      xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
        <View android:id="@id/recents_transition_background" android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" />
        <FrameLayout android:id="@id/recents_bg_protect" android:background="#00000000" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentBottom="true">
            <ImageView android:id="@id/recents_transition_placeholder_icon" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="wrap_content" />
            <com.android.systemui.recent.RecentsHorizontalScrollView android:layout_gravity="bottom|right|center" android:orientation="horizontal" android:id="@id/recents_container" android:scrollbars="none" android:fadingEdge="horizontal" android:fadingEdgeLength="@dimen/status_bar_recents_scroll_fading_edge_length" android:clipChildren="false" android:clipToPadding="false" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="@dimen/status_bar_recents_right_glow_margin" 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="wrap_content" android:layout_height="fill_parent" />
            </com.android.systemui.recent.RecentsHorizontalScrollView>
            <TextView android:textSize="20.0dip" android:textColor="@color/status_bar_recents_app_label_color" android:gravity="center_horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="5.0dip" android:text="@string/recent_apps_title" />
            <ImageView android:layout_gravity="top|right|center" android:id="@id/recents_clear" android:clickable="true" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/ic_notify_clear" />
        </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>
    Ultima modifica di mnemonyc; 16-03-2013 a 15: 09

  2. I seguenti 3 utenti hanno ringraziato mnemonyc per aver trovato utile questo post:

    ale29-09 (13-03-2013), saveAW (13-03-2013), sergentesentenza (13-03-2013)

  3. #2
    L'avatar di mnemonyc Android Developer
    Registrato dal
    Aug 2012
    Residenza
    Bari
    Dispositivo
    Galaxy Mini, Galaxy S3
    Operatore
    Vodafone
    Messaggi
    1,050
    Grazie!
    39
    Ringraziato 296 volte in 196 post
    Continua guida...

    - smali/com/android/systemui/recent/RecentsPanelView.smali
    CANCELLATE tutte le stringhe partendo da quì
    codice:
    .method private updateThumbnail(Lcom/android/systemui/recent/RecentsPanelView$ViewHolder;Landroid/graphics/Bitmap;ZZ)V
    - fino a...
    .end method
    Rimpiazzate con queste stringhe :
    codice:
    .method private updateThumbnail(Lcom/android/systemui/recent/RecentsPanelView$ViewHolder;Landroid/graphics/Bitmap;ZZ)V    .locals 30
        .parameter "h"
        .parameter "thumbnail"
        .parameter "show"
        .parameter "anim"
    
    
        .prologue
        .line 409
        if-eqz p2, :cond_4
    
    
        .line 413
        const/16 v26, 0x4
    
    
        .line 414
        .local v26, reflectionGap:I
        invoke-virtual/range {p2 .. p2}, Landroid/graphics/Bitmap;->getWidth()I
    
    
        move-result v6
    
    
        .line 415
        .local v6, width:I
        invoke-virtual/range {p2 .. p2}, Landroid/graphics/Bitmap;->getHeight()I
    
    
        move-result v24
    
    
        .line 417
        .local v24, height:I
        new-instance v8, Landroid/graphics/Matrix;
    
    
        invoke-direct {v8}, Landroid/graphics/Matrix;-><init>()V
    
    
        .line 418
        .local v8, matrix:Landroid/graphics/Matrix;
        const/high16 v3, 0x3f80
    
    
        const/high16 v4, -0x4080
    
    
        invoke-virtual {v8, v3, v4}, Landroid/graphics/Matrix;->preScale(FF)Z
    
    
        .line 420
        const/4 v4, 0x0
    
    
        mul-int/lit8 v3, v24, 0x2
    
    
        div-int/lit8 v5, v3, 0x3
    
    
        div-int/lit8 v7, v24, 0x3
    
    
        const/4 v9, 0x0
    
    
        move-object/from16 v3, p2
    
    
        invoke-static/range {v3 .. v9}, Landroid/graphics/Bitmap;->createBitmap(Landroid/graphics/Bitmap;IIIILandroid/graphics/Matrix;Z)Landroid/graphics/Bitmap;
    
    
        move-result-object v27
    
    
        .line 421
        .local v27, reflectionImage:Landroid/graphics/Bitmap;
        div-int/lit8 v3, v24, 0x3
    
    
        add-int v3, v3, v24
    
    
        sget-object v4, Landroid/graphics/Bitmap$Config;->ARGB_8888:Landroid/graphics/Bitmap$Config;
    
    
        invoke-static {v6, v3, v4}, Landroid/graphics/Bitmap;->createBitmap(IILandroid/graphics/Bitmap$Config;)Landroid/graphics/Bitmap;
    
    
        move-result-object v23
    
    
        .line 423
        .local v23, bitmapWithReflection:Landroid/graphics/Bitmap;
        new-instance v9, Landroid/graphics/Canvas;
    
    
        move-object/from16 v0, v23
    
    
        invoke-direct {v9, v0}, Landroid/graphics/Canvas;-><init>(Landroid/graphics/Bitmap;)V
    
    
        .line 424
        .local v9, canvas:Landroid/graphics/Canvas;
        const/4 v3, 0x0
    
    
        const/4 v4, 0x0
    
    
        const/4 v5, 0x0
    
    
        move-object/from16 v0, p2
    
    
        invoke-virtual {v9, v0, v3, v4, v5}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;FFLandroid/graphics/Paint;)V
    
    
        .line 425
        new-instance v14, Landroid/graphics/Paint;
    
    
        invoke-direct {v14}, Landroid/graphics/Paint;-><init>()V
    
    
        .line 426
        .local v14, defaultPaint:Landroid/graphics/Paint;
        const/4 v10, 0x0
    
    
        move/from16 v0, v24
    
    
        int-to-float v11, v0
    
    
        int-to-float v12, v6
    
    
        add-int/lit8 v3, v24, 0x4
    
    
        int-to-float v13, v3
    
    
        invoke-virtual/range {v9 .. v14}, Landroid/graphics/Canvas;->drawRect(FFFFLandroid/graphics/Paint;)V
    
    
        .line 427
        const/4 v3, 0x0
    
    
        add-int/lit8 v4, v24, 0x4
    
    
        int-to-float v4, v4
    
    
        const/4 v5, 0x0
    
    
        move-object/from16 v0, v27
    
    
        invoke-virtual {v9, v0, v3, v4, v5}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;FFLandroid/graphics/Paint;)V
    
    
        .line 429
        new-instance v25, Landroid/graphics/Paint;
    
    
        invoke-direct/range {v25 .. v25}, Landroid/graphics/Paint;-><init>()V
    
    
        .line 430
        .local v25, paint:Landroid/graphics/Paint;
        new-instance v15, Landroid/graphics/LinearGradient;
    
    
        const/16 v16, 0x0
    
    
        invoke-virtual/range {p2 .. p2}, Landroid/graphics/Bitmap;->getHeight()I
    
    
        move-result v3
    
    
        int-to-float v0, v3
    
    
        move/from16 v17, v0
    
    
        const/16 v18, 0x0
    
    
        invoke-virtual/range {v23 .. v23}, Landroid/graphics/Bitmap;->getHeight()I
    
    
        move-result v3
    
    
        add-int/lit8 v3, v3, 0x4
    
    
        int-to-float v0, v3
    
    
        move/from16 v19, v0
    
    
        const v20, 0x70ffffff
    
    
        const v21, 0xffffff
    
    
        sget-object v22, Landroid/graphics/Shader$TileMode;->CLAMP:Landroid/graphics/Shader$TileMode;
    
    
        invoke-direct/range {v15 .. v22}, Landroid/graphics/LinearGradient;-><init>(FFFFIILandroid/graphics/Shader$TileMode;)V
    
    
        .line 433
        .local v15, shader:Landroid/graphics/LinearGradient;
        move-object/from16 v0, v25
    
    
        invoke-virtual {v0, v15}, Landroid/graphics/Paint;->setShader(Landroid/graphics/Shader;)Landroid/graphics/Shader;
    
    
        .line 434
        new-instance v3, Landroid/graphics/PorterDuffXfermode;
    
    
        sget-object v4, Landroid/graphics/PorterDuff$Mode;->DST_IN:Landroid/graphics/PorterDuff$Mode;
    
    
        invoke-direct {v3, v4}, Landroid/graphics/PorterDuffXfermode;-><init>(Landroid/graphics/PorterDuff$Mode;)V
    
    
        move-object/from16 v0, v25
    
    
        invoke-virtual {v0, v3}, Landroid/graphics/Paint;->setXfermode(Landroid/graphics/Xfermode;)Landroid/graphics/Xfermode;
    
    
        .line 435
        const/16 v17, 0x0
    
    
        move/from16 v0, v24
    
    
        int-to-float v0, v0
    
    
        move/from16 v18, v0
    
    
        int-to-float v0, v6
    
    
        move/from16 v19, v0
    
    
        invoke-virtual/range {v23 .. v23}, Landroid/graphics/Bitmap;->getHeight()I
    
    
        move-result v3
    
    
        add-int/lit8 v3, v3, 0x4
    
    
        int-to-float v0, v3
    
    
        move/from16 v20, v0
    
    
        move-object/from16 v16, v9
    
    
        move-object/from16 v21, v25
    
    
        invoke-virtual/range {v16 .. v21}, Landroid/graphics/Canvas;->drawRect(FFFFLandroid/graphics/Paint;)V
    
    
        .line 438
        move-object/from16 v0, p1
    
    
        iget-object v3, v0, Lcom/android/systemui/recent/RecentsPanelView$ViewHolder;->thumbnailViewImage:Landroid/widget/ImageView;
    
    
        move-object/from16 v0, v23
    
    
        invoke-virtual {v3, v0}, Landroid/widget/ImageView;->setImageBitmap(Landroid/graphics/Bitmap;)V
    
    
        .line 442
        move-object/from16 v0, p1
    
    
        iget-object v3, v0, Lcom/android/systemui/recent/RecentsPanelView$ViewHolder;->thumbnailViewImageBitmap:Landroid/graphics/Bitmap;
    
    
        if-eqz v3, :cond_0
    
    
        move-object/from16 v0, p1
    
    
        iget-object v3, v0, Lcom/android/systemui/recent/RecentsPanelView$ViewHolder;->thumbnailViewImageBitmap:Landroid/graphics/Bitmap;
    
    
        invoke-virtual {v3}, Landroid/graphics/Bitmap;->getWidth()I
    
    
        move-result v3
    
    
        invoke-virtual/range {p2 .. p2}, Landroid/graphics/Bitmap;->getWidth()I
    
    
        move-result v4
    
    
        if-ne v3, v4, :cond_0
    
    
        move-object/from16 v0, p1
    
    
        iget-object v3, v0, Lcom/android/systemui/recent/RecentsPanelView$ViewHolder;->thumbnailViewImageBitmap:Landroid/graphics/Bitmap;
    
    
        invoke-virtual {v3}, Landroid/graphics/Bitmap;->getHeight()I
    
    
        move-result v3
    
    
        invoke-virtual/range {p2 .. p2}, Landroid/graphics/Bitmap;->getHeight()I
    
    
        move-result v4
    
    
        if-eq v3, v4, :cond_1
    
    
        .line 445
        :cond_0
        move-object/from16 v0, p0
    
    
        iget-boolean v3, v0, Lcom/android/systemui/recent/RecentsPanelView;->mFitThumbnailToXY:Z
    
    
        if-eqz v3, :cond_5
    
    
        .line 446
        move-object/from16 v0, p1
    
    
        iget-object v3, v0, Lcom/android/systemui/recent/RecentsPanelView$ViewHolder;->thumbnailViewImage:Landroid/widget/ImageView;
    
    
        const/high16 v4, 0x41c8
    
    
        invoke-virtual {v3, v4}, Landroid/widget/ImageView;->setRotationY(F)V
    
    
        .line 455
        :cond_1
        :goto_0
        if-eqz p3, :cond_3
    
    
        move-object/from16 v0, p1
    
    
        iget-object v3, v0, Lcom/android/systemui/recent/RecentsPanelView$ViewHolder;->thumbnailView:Landroid/view/View;
    
    
        invoke-virtual {v3}, Landroid/view/View;->getVisibility()I
    
    
        move-result v3
    
    
        if-eqz v3, :cond_3
    
    
        .line 456
        if-eqz p4, :cond_2
    
    
        .line 457
        move-object/from16 v0, p1
    
    
        iget-object v3, v0, Lcom/android/systemui/recent/RecentsPanelView$ViewHolder;->thumbnailView:Landroid/view/View;
    
    
        move-object/from16 v0, p0
    
    
        iget-object v4, v0, Lcom/android/systemui/recent/RecentsPanelView;->mContext:Landroid/content/Context;
    
    
        const v5, 0x7f04000f
    
    
        invoke-static {v4, v5}, Landroid/view/animation/AnimationUtils;->loadAnimation(Landroid/content/Context;I)Landroid/view/animation/Animation;
    
    
        move-result-object v4
    
    
        invoke-virtual {v3, v4}, Landroid/view/View;->setAnimation(Landroid/view/animation/Animation;)V
    
    
        .line 460
        :cond_2
        move-object/from16 v0, p1
    
    
        iget-object v3, v0, Lcom/android/systemui/recent/RecentsPanelView$ViewHolder;->thumbnailView:Landroid/view/View;
    
    
        const/4 v4, 0x0
    
    
        invoke-virtual {v3, v4}, Landroid/view/View;->setVisibility(I)V
    
    
        .line 462
        :cond_3
        move-object/from16 v0, p2
    
    
        move-object/from16 v1, p1
    
    
        iput-object v0, v1, Lcom/android/systemui/recent/RecentsPanelView$ViewHolder;->thumbnailViewImageBitmap:Landroid/graphics/Bitmap;
    
    
        .line 464
        .end local v6           #width:I
        .end local v8           #matrix:Landroid/graphics/Matrix;
        .end local v9           #canvas:Landroid/graphics/Canvas;
        .end local v14           #defaultPaint:Landroid/graphics/Paint;
        .end local v15           #shader:Landroid/graphics/LinearGradient;
        .end local v23           #bitmapWithReflection:Landroid/graphics/Bitmap;
        .end local v24           #height:I
        .end local v25           #paint:Landroid/graphics/Paint;
        .end local v26           #reflectionGap:I
        .end local v27           #reflectionImage:Landroid/graphics/Bitmap;
        :cond_4
        return-void
    
    
        .line 448
        .restart local v6       #width:I
        .restart local v8       #matrix:Landroid/graphics/Matrix;
        .restart local v9       #canvas:Landroid/graphics/Canvas;
        .restart local v14       #defaultPaint:Landroid/graphics/Paint;
        .restart local v15       #shader:Landroid/graphics/LinearGradient;
        .restart local v23       #bitmapWithReflection:Landroid/graphics/Bitmap;
        .restart local v24       #height:I
        .restart local v25       #paint:Landroid/graphics/Paint;
        .restart local v26       #reflectionGap:I
        .restart local v27       #reflectionImage:Landroid/graphics/Bitmap;
        :cond_5
        new-instance v29, Landroid/graphics/Matrix;
    
    
        invoke-direct/range {v29 .. v29}, Landroid/graphics/Matrix;-><init>()V
    
    
        .line 449
        .local v29, scaleMatrix:Landroid/graphics/Matrix;
        move-object/from16 v0, p0
    
    
        iget v3, v0, Lcom/android/systemui/recent/RecentsPanelView;->mThumbnailWidth:I
    
    
        int-to-float v3, v3
    
    
        invoke-virtual/range {p2 .. p2}, Landroid/graphics/Bitmap;->getWidth()I
    
    
        move-result v4
    
    
        int-to-float v4, v4
    
    
        div-float v28, v3, v4
    
    
        .line 450
        .local v28, scale:F
        move-object/from16 v0, v29
    
    
        move/from16 v1, v28
    
    
        move/from16 v2, v28
    
    
        invoke-virtual {v0, v1, v2}, Landroid/graphics/Matrix;->setScale(FF)V
    
    
        .line 451
        move-object/from16 v0, p1
    
    
        iget-object v3, v0, Lcom/android/systemui/recent/RecentsPanelView$ViewHolder;->thumbnailViewImage:Landroid/widget/ImageView;
    
    
        sget-object v4, Landroid/widget/ImageView$ScaleType;->MATRIX:Landroid/widget/ImageView$ScaleType;
    
    
        invoke-virtual {v3, v4}, Landroid/widget/ImageView;->setScaleType(Landroid/widget/ImageView$ScaleType;)V
    
    
        .line 452
        move-object/from16 v0, p1
    
    
        iget-object v3, v0, Lcom/android/systemui/recent/RecentsPanelView$ViewHolder;->thumbnailViewImage:Landroid/widget/ImageView;
    
    
        move-object/from16 v0, v29
    
    
        invoke-virtual {v3, v0}, Landroid/widget/ImageView;->setImageMatrix(Landroid/graphics/Matrix;)V
    
    
        goto :goto_0
    .end method
    - Infine scaricate questo : https://www.dropbox.com/s/ebk8u7traq...able-nodpi.zip
    estraete il contenuto in /res/drawable-nodpi/

    Ricordate di aggiungere le stringhe e le risorse, in res/value/public.xml
    -Ricompilate il systemui.apk

    CREDIT & RINGRAZIAMENTI A :

    - CyanogenMod
    - XDA
    - AndroidWorld.it
    - mnemonyc (io)


    SCREENSHOT




    Send from AWMP D.C.
    Ultima modifica di mnemonyc; 18-03-2013 a 15: 26
    COORDINATORE

  4. I seguenti 3 utenti hanno ringraziato mnemonyc per aver trovato utile questo post:

    della96 (29-03-2013), sergentesentenza (22-03-2013), vlad_bragoi (29-03-2013)

  5. #3
    L'avatar di mnemonyc Android Developer
    Registrato dal
    Aug 2012
    Residenza
    Bari
    Dispositivo
    Galaxy Mini, Galaxy S3
    Operatore
    Vodafone
    Messaggi
    1,050
    Grazie!
    39
    Ringraziato 296 volte in 196 post
    @ale29-09
    Scusami se ho fatto eliminare il tuo post ma avevo bisogno di spazio...
    Se vuoi riscrivilo!

    Send from AWMP D.C.
    COORDINATORE

  6. #4
    L'avatar di ale29-09 Android Guru
    Registrato dal
    Apr 2011
    Residenza
    Roma
    Dispositivo
    iPhone 7 128GB, Google Nexus 4
    Operatore
    Wind
    Messaggi
    7,112
    Grazie!
    243
    Ringraziato 927 volte in 800 post
    Dunque se non sbaglio avevo scritto...
    "Pollice in su per mnemonyc!"

    Il resto me lo risparmio, era una cosa tra me e un altro utente

    Comunque, va nella Balt ROM questa mod?

    ale29-09 on Google Nexus 7 and Tapatalk 2
    Attualmente in possesso

    iPhone 7 128 GB (Principale), LG Nexus 4 (Mako), Motorola Moto E 2015 (Surnia), HTC One S (Ville), HTC Desire HD (Ace), Samsung Galaxy S3 Mini (I8190), Huawei Ascend G510, LG Optimus One (P500)

    Posseduti in precedenza

    Huawei Nexus 6P,
    Sony Xperia Z4, Motorola Moto X 2014 (Victara),
    Nexus 7 2012 WiFi (Grouper), LG Nexus 4 (Mako), LG G4 (H815), LG G3 (D855), LG G2 (D802), Samsung Galaxy SII (I9100)

    Facebook:
    http://goo.gl/P0zAh4
    Google+:http://goo.gl/4uTFlj

  7. #5
    L'avatar di mnemonyc Android Developer
    Registrato dal
    Aug 2012
    Residenza
    Bari
    Dispositivo
    Galaxy Mini, Galaxy S3
    Operatore
    Vodafone
    Messaggi
    1,050
    Grazie!
    39
    Ringraziato 296 volte in 196 post
    Quote Originariamente inviato da ale29-09 Visualizza il messaggio
    Dunque se non sbaglio avevo scritto...
    "Pollice in su per mnemonyc!"

    Il resto me lo risparmio, era una cosa tra me e un altro utente

    Comunque, va nella Balt ROM questa mod?

    ale29-09 on Google Nexus 7 and Tapatalk 2
    Si si...nn hai visto gli screenshot? Sono del mio telefono cn la Balt.

    Send from AWMP D.C.
    COORDINATORE

  8. #6
    L'avatar di ale29-09 Android Guru
    Registrato dal
    Apr 2011
    Residenza
    Roma
    Dispositivo
    iPhone 7 128GB, Google Nexus 4
    Operatore
    Wind
    Messaggi
    7,112
    Grazie!
    243
    Ringraziato 927 volte in 800 post
    Visti visti...intendo lo hai già implementato nell'ultima release scaricabile o lo implementerai nella prossima?

    ale29-09 on HTC One S and Tapatalk 2
    Attualmente in possesso

    iPhone 7 128 GB (Principale), LG Nexus 4 (Mako), Motorola Moto E 2015 (Surnia), HTC One S (Ville), HTC Desire HD (Ace), Samsung Galaxy S3 Mini (I8190), Huawei Ascend G510, LG Optimus One (P500)

    Posseduti in precedenza

    Huawei Nexus 6P,
    Sony Xperia Z4, Motorola Moto X 2014 (Victara),
    Nexus 7 2012 WiFi (Grouper), LG Nexus 4 (Mako), LG G4 (H815), LG G3 (D855), LG G2 (D802), Samsung Galaxy SII (I9100)

    Facebook:
    http://goo.gl/P0zAh4
    Google+:http://goo.gl/4uTFlj

  9. #7
    L'avatar di mnemonyc Android Developer
    Registrato dal
    Aug 2012
    Residenza
    Bari
    Dispositivo
    Galaxy Mini, Galaxy S3
    Operatore
    Vodafone
    Messaggi
    1,050
    Grazie!
    39
    Ringraziato 296 volte in 196 post
    Quote Originariamente inviato da ale29-09 Visualizza il messaggio
    Visti visti...intendo lo hai già implementato nell'ultima release scaricabile o lo implementerai nella prossima?

    ale29-09 on HTC One S and Tapatalk 2
    Se next galaxy sarà d'accordo, sarà nella prox release.

    Send from AWMP D.C.
    COORDINATORE

  10. #8
    L'avatar di next galaxy Android Pro
    Registrato dal
    Apr 2012
    Residenza
    Modena
    Dispositivo
    Samsung Galaxy S2, Samsung Galaxy Next
    Operatore
    Vodafone
    Messaggi
    995
    Grazie!
    125
    Ringraziato 204 volte in 123 post
    Quote Originariamente inviato da ale29-09 Visualizza il messaggio
    Visti visti...intendo lo hai già implementato nell'ultima release scaricabile o lo implementerai nella prossima?

    ale29-09 on HTC One S and Tapatalk 2
    Si nella prossima

    inviato da next galaxy™®©




    Galaxy S2:
    Versione android: 4.4.2
    Versione CyanogenMod: CM11 Linaro-Sabermod

  11. I seguenti utenti hanno ringraziato next galaxy per aver trovato utile questo post:

    mnemonyc (13-03-2013)

  12. #9
    L'avatar di della96 Android Senior
    Registrato dal
    Dec 2012
    Residenza
    Sondrio
    Dispositivo
    Lg Me, Lg Hub, Nexus 7 (2012), Xiaomi HongMi 1s, LG L90
    Operatore
    Vodafone
    Messaggi
    314
    Grazie!
    4
    Ringraziato 38 volte in 34 post
    Non ho capito l'ultimo passaggio, cosa dovrei aggiungere al public.xml in values??
    Grazie in anticipo

    Inviato tramite AndroidWorld App.
    Se ti sono stato di aiuto premi il bottone Grazie qui sotto!

  13. #10
    L'avatar di mnemonyc Android Developer
    Registrato dal
    Aug 2012
    Residenza
    Bari
    Dispositivo
    Galaxy Mini, Galaxy S3
    Operatore
    Vodafone
    Messaggi
    1,050
    Grazie!
    39
    Ringraziato 296 volte in 196 post
    Quote Originariamente inviato da della96 Visualizza il messaggio
    Non ho capito l'ultimo passaggio, cosa dovrei aggiungere al public.xml in values??
    Grazie in anticipo

    Inviato tramite AndroidWorld App.
    Devi aggiungere le stringhe relative agli oggetti inseriti (i due png) e agli elementi inseriti negli altri xml (in strings.xml e in ids.xml). Ovviamente bisogna inserirli nei giusti punti e dargli i corretti codici esadecimali.

    Send from AWMP D.C.
    COORDINATORE

Discussioni simili

  1. [Launcher]TouchwizUX MDPI porting per CM10! [18.10.2012]
    Da GalaxyAce_ITA nel forum Firmware e Modding (Samsung Galaxy Ace)
    01-05-2013
    10Risposte
  2. domanda su Rom] [WIP] [JB 4.2.2] [Tutti MDPI] Unofficial CM10.1 Costruire 20130218
    Da android93 nel forum Sony Ericsson Xperia Mini Pro
    06-04-2013
    1Risposte
  3. [GUIDA] Applicare temi HDPI su dispositivi MDPI
    Da Paoliz nel forum Modding e Firmware (LG Optimus One)
    16-12-2012
    40Risposte
  4. [CM9]Applicare temi HDPI su dispositivi MDPI
    Da kaarburo nel forum Multimedia e Personalizzazione
    04-12-2012
    2Risposte
  5. Task Tray, task manager stile iPhone 4.0
    Da ciso nel forum Applicazioni
    15-05-2010
    1Risposte

Segnalibri

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  

Search Engine Friendly URLs by vBSEO 3.6.1