From 21c75c5b0719a9d9dfa299e643081be63cdad8fb Mon Sep 17 00:00:00 2001
From: wuhen0929 <532797233@qq.com>
Date: Sat, 29 Nov 2014 14:45:42 +0800
Subject: [PATCH] refine LandingFragment
---
.../demoofui/src/main/AndroidManifest.xml | 684 +++++++--
.../common/demoofui/LandingFragment.java | 1365 ++---------------
2 files changed, 737 insertions(+), 1312 deletions(-)
diff --git a/UltimateAndroidGradle/demoofui/src/main/AndroidManifest.xml b/UltimateAndroidGradle/demoofui/src/main/AndroidManifest.xml
index 8729c45d..390f85b8 100644
--- a/UltimateAndroidGradle/demoofui/src/main/AndroidManifest.xml
+++ b/UltimateAndroidGradle/demoofui/src/main/AndroidManifest.xml
@@ -18,40 +18,128 @@
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ android:theme="@style/Widget.AppCompat.Light.ActionBar.Solid">
+
+
+
+
@@ -63,63 +151,203 @@
-
+
+
+
+
+
-
+
+
+
+
+
-
-
+
+
+
+
+
+
+
+
+
+
-
-
+
+
+
+
+
+
+
+
+
+
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+ android:theme="@style/Theme.MaterialTheme">
+
+
+
+
-
+ android:theme="@style/MaterialMenuTheme">
+
+
+
+
+
+
+
+
+
-
-
+
+
+
+
+
+
+
+
+
+
+ android:theme="@style/Theme.MaterialTheme">
+
+
+
+
+ android:windowSoftInputMode="stateHidden">
+
+
+
+
-
+
+
+
+
+
+ android:theme="@style/AppTheme.Transparent">
+
+
+
+
@@ -159,36 +399,100 @@
android:name=".activityanimation.DoorActivity"
android:theme="@style/AppTheme.Transparent">
-
+
+
+
+
+
-
-
+
+
+
+
+
+
+
+
+
+
-
-
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
-
+
+
+
+
+
-
+
+
+
+
+
@@ -200,24 +504,64 @@
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
@@ -225,16 +569,28 @@
-
+
+
+
+
+
-
+
+
+
+
+
-
+
+
+
+
+
@@ -244,63 +600,163 @@
-
+
+
+
+
+
-
+
+
+
+
+
-
+
+
+
+
+
-
+
+
+
+
+
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
+
+
+
+
+
+
+
+
-
+ android:theme="@style/android:Theme.Holo.Light.DarkActionBar">
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
-
-
+ android:theme="@style/android:Theme.Holo.Light.DarkActionBar">
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+ android:theme="@style/PagerSlidingTabStrip">
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
-
+
+
+
+
+
+ android:theme="@style/Theme.AppCompat.Light.DarkActionBar">
+
+
+
+
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/UltimateAndroidGradle/demoofui/src/main/java/com/marshalchen/common/demoofui/LandingFragment.java b/UltimateAndroidGradle/demoofui/src/main/java/com/marshalchen/common/demoofui/LandingFragment.java
index e70fc29d..55e84a63 100644
--- a/UltimateAndroidGradle/demoofui/src/main/java/com/marshalchen/common/demoofui/LandingFragment.java
+++ b/UltimateAndroidGradle/demoofui/src/main/java/com/marshalchen/common/demoofui/LandingFragment.java
@@ -1,7 +1,8 @@
package com.marshalchen.common.demoofui;
-
import android.content.Intent;
+import android.content.pm.PackageManager;
+import android.content.pm.ResolveInfo;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
@@ -12,89 +13,33 @@
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
-import android.widget.*;
-
-import com.marshalchen.common.demoofui.BlurNavigationDrawer.BlurNavigationDrawerActivity;
-import com.marshalchen.common.demoofui.androidanimationsdemo.AndroidAnimationsDemoActivity;
+import android.widget.AdapterView;
+import android.widget.BaseAdapter;
+import android.widget.ImageView;
+import android.widget.TextView;
-import butterknife.ButterKnife;
-import butterknife.InjectView;
-
-import com.marshalchen.common.commonUtils.basicUtils.BasicUtils;
-import com.marshalchen.common.demoofui.ResideMenuDemo.ResideMenuActivity;
-import com.marshalchen.common.demoofui.artbook.FreeFlowArtbookActivity;
-import com.marshalchen.common.demoofui.blurdialogfragment.BlurDialogActivity;
-import com.marshalchen.common.demoofui.circularProgressButton.CircularProgressButtonActivity;
-import com.marshalchen.common.demoofui.circularfloatingactionmenu.CircularFloatingActivity;
-import com.marshalchen.common.demoofui.dragSortListview.MultipleChoiceListView;
-import com.marshalchen.common.demoofui.dragSortListview.SingleChoiceListView;
-import com.marshalchen.common.demoofui.easingDemo.EasingActivity;
-import com.marshalchen.common.demoofui.easyandroidanimations.EasyAnimationListActivity;
-import com.marshalchen.common.demoofui.edgeeffectoverride.EdgeEffectActivity;
-import com.marshalchen.common.demoofui.fadingactionbar.HomeActivity;
-import com.marshalchen.common.demoofui.fancyCoverFlow.FancyCoverFlowActivity;
-import com.marshalchen.common.demoofui.imageprocessingexample.ImageProcessingActivity;
-import com.marshalchen.common.demoofui.imageprocessingexample.ImageProcessingVideotoImageActivity;
-import com.marshalchen.common.demoofui.materialdesigndemo.MaterialDesignActivity;
-import com.marshalchen.common.demoofui.materialmenu.MaterialMenuAppcompatActivity;
-import com.marshalchen.common.demoofui.materialmenu.MaterialMenuToolbarActivity;
-import com.marshalchen.common.demoofui.materialripple.MaterialRippleActivity;
-import com.marshalchen.common.demoofui.pagerSlidingTabStrip.PagerSlidingTabStripActivity;
-import com.marshalchen.common.demoofui.pulltozoomview.PullToZoomActivity;
-import com.marshalchen.common.demoofui.recyclerplayground.RecyclerViewPlayGroundActivity;
-import com.marshalchen.common.demoofui.recyclerviewitemanimator.RecyclerViewItemAnimatorActivity;
-import com.marshalchen.common.demoofui.recyclerviewstickyheaders.RecyclerViewStickyHeadersActivity;
-import com.marshalchen.common.demoofui.rippleDrawable.RippleDrawableActivity;
-import com.marshalchen.common.demoofui.roundedimageview.RoundedImageViewActivity;
-import com.marshalchen.common.demoofui.sampleModules.GoogleProgressBarActivity;
-import com.marshalchen.common.demoofui.quickreturnlistview.QuickReturnListViewActivity;
-import com.marshalchen.common.demoofui.shapeimageview.ShapeImageViewActivity;
-import com.marshalchen.common.demoofui.slider.SliderActivity;
-import com.marshalchen.common.demoofui.smoothswitch.SwitchAnimationActivity;
-import com.marshalchen.common.demoofui.staggeredgridview.StaggeredGridViewActivity;
-import com.marshalchen.common.demoofui.standUpTimer.ConfigureStandupTimer;
-import com.marshalchen.common.demoofui.superlistview.SuperListViewActivity;
-import com.marshalchen.common.demoofui.swipelayoutdemo.SwipeLayoutActivity;
-import com.marshalchen.common.demoofui.switchbuttondemo.SwitchButtonActivity;
-import com.marshalchen.common.demoofui.twowayview.TwoWayViewActivity;
import com.marshalchen.common.ui.Typefaces;
-import com.marshalchen.common.uimodule.arcmenu.ArcMenu;
import com.marshalchen.common.uimodule.enhanceListView.EnhancedListView;
-import com.marshalchen.common.uimodule.passcodelock.PasscodePreferencesActivity;
import com.marshalchen.common.uimodule.titanic.Titanic;
import com.marshalchen.common.uimodule.titanic.TitanicTextView;
import com.marshalchen.common.uimodule.viewpagerindicator.CirclePageIndicator;
-import com.marshalchen.common.demoofui.activityanimation.ActivityAnimationsActivity;
-import com.marshalchen.common.demoofui.activitytransition.ActivityTransitionActivity;
-import com.marshalchen.common.demoofui.cooldraganddrop.CoolDragAndDropActivity;
-import com.marshalchen.common.demoofui.discrollview.DiscrollActivity;
-import com.marshalchen.common.demoofui.dynamicgrid.example.DynamicGridActivity;
-import com.marshalchen.common.demoofui.foldableLayout.activities.FoldableListActivity;
-import com.marshalchen.common.demoofui.foldableLayout.activities.UnfoldableDetailsActivity;
-import com.marshalchen.common.demoofui.foldingDrawer.FoldingActivitys;
-import com.marshalchen.common.demoofui.listbuddies.ListBuddiesActivity;
-import com.marshalchen.common.demoofui.listviewanimations.ListAnimationActivity;
-import com.marshalchen.common.demoofui.listviewfilter.ui.ListViewFilterActivity;
-import com.marshalchen.common.demoofui.parallaxscrollexample.ParallaxScrollActivity;
-import com.marshalchen.common.demoofui.pullscrollview.PullScrollViewActivity;
-import com.marshalchen.common.demoofui.rebound.ReboundActivity;
-import com.marshalchen.common.demoofui.rebound.ReboundActivitySimple;
-import com.marshalchen.common.demoofui.sampleModules.*;
-import com.marshalchen.common.demoofui.showcaseview.ShowCaseSampleActivity;
-import com.marshalchen.common.demoofui.stickygridheadersexample.StickGridItemListActivity;
-import com.marshalchen.common.demoofui.jsoup.UtilsDemoActivity;
-import com.marshalchen.common.demoofui.viewpagerSlidingTab.ViewpagerSlidingTabsActivity;
+import java.text.Collator;
import java.util.ArrayList;
+import java.util.Collections;
+import java.util.Comparator;
import java.util.HashMap;
import java.util.List;
+import java.util.Map;
+import butterknife.ButterKnife;
+import butterknife.InjectView;
public class LandingFragment extends Fragment {
View mainView;
@InjectView(R.id.landingEnhanceListView)
EnhancedListView landingEnhanceListView;
- List> enhanceList = new ArrayList<>();
+ List