Add the capability to set a pinned header to a ListFragment

- add public void setPinnedHeaderView(View pinnedHeader) and
clearPinnedHeaderView() APIs for adding and clearing the pinned header

Change-Id: I1096b418351c0f02a13fd49d4a19e52970125106
This commit is contained in:
Fabrice Di Meglio
2014-07-21 17:14:31 -07:00
parent 86159283c9
commit e72bb08679
2 changed files with 49 additions and 1 deletions

View File

@@ -53,6 +53,7 @@ import android.widget.RelativeLayout;
import android.widget.SectionIndexer;
import android.widget.TextView;
import com.android.settings.PinnedHeaderListFragment;
import com.android.settings.R;
import java.text.Collator;
@@ -62,7 +63,7 @@ import java.util.Comparator;
import java.util.List;
/** Just a sectioned list of installed applications, nothing else to index **/
public class AppNotificationSettings extends ListFragment {
public class AppNotificationSettings extends PinnedHeaderListFragment {
private static final String TAG = "AppNotificationSettings";
private static final boolean DEBUG = true;