java - Change recent layout android -


i try change system recent app layout in custom rom. actually, in android stock, have simple vertical scrollable column recent apps.. change , make gridview lg --> http://www.androidcentral.com/sites/androidcentral.com/files/styles/large_wm_brw/public/article_images/2014/07/task-switchers.jpg?itok=dqwwampq it's not easy , need help.. have question;

1) change xml enought? 2) have change adapter in java or else in java code?

the xml one:

<?xml version="1.0" encoding="utf-8"?> <com.android.systemui.recent.recentspanelview      android:id="@id/recents_root"      android:layout_width="fill_parent"      android:layout_height="fill_parent"      android:foreground="@drawable/bg_protect"      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">      <framelayout android:id="@id/recents_bg_protect"          android:background="@drawable/status_bar_recents_background"          android:fitssystemwindows="true"          android:layout_width="fill_parent"          android:layout_height="fill_parent"          android:layout_alignparentbottom="true">          <com.android.systemui.recent.recentsverticalscrollview              android:layout_gravity="top|left|center"              android:id="@id/recents_container"              android:scrollbars="none"             android:fadingedge="vertical"              android:fadingedgelength="@dimen/status_bar_recents_scroll_fading_edge_length"              android:clipchildren="false"              android:cliptopadding="false"              android:layout_width="fill_parent"              android:layout_height="wrap_content"              android:stackfrombottom="true"              android:divider="@null"              android:layout_marginend="0.0dip">              <linearlayout                  android:id="@id/recents_linear_layout"                  android:fitssystemwindows="true"                  android:clipchildren="false"                  android:cliptopadding="false"                  android:layout_width="fill_parent"                  android:layout_height="wrap_content" />          </com.android.systemui.recent.recentsverticalscrollview>         <imageview              android:layout_gravity="bottom|left|center"              android:id="@id/recents_clear"              android:clickable="true"              android:layout_width="50.0dip"              android:layout_height="50.0dip"              android:src="@drawable/ic_notify_clear"              android:scaletype="center" />     </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> 

the class recentspanelview extends framelayout.. tried simple change , extends gridview without changes.. think easy change point.. however, xml can display in horizontal recent apps in 1 row.. idea? maybe adding gridview in layout?


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -