Search in sources :

Example 1 with RippleEffectActivity

use of com.marshalchen.common.demoofui.sampleModules.RippleEffectActivity in project UltimateAndroid by cymcsg.

the class LandingFragment method getData.

protected List<Map<String, ?>> getData(String prefix) {
    List<Map<String, ?>> myData = new ArrayList<Map<String, ?>>();
    Intent intent = new Intent("com.marshalchen.common.demoofui", null);
    PackageManager pm = getActivity().getPackageManager();
    List<ResolveInfo> list = pm.queryIntentActivities(intent, 0);
    if (null == list)
        return myData;
    int len = list.size();
    for (int i = 0; i < len; i++) {
        ResolveInfo info = list.get(i);
        String activityName = info.activityInfo.name;
        String[] labelPath = activityName.split("\\.");
        String nextLabel = labelPath[labelPath.length - 1];
        addItem(myData, nextLabel, activityIntent(info.activityInfo.applicationInfo.packageName, info.activityInfo.name));
    }
    Collections.sort(myData, sDisplayNameComparator);
    addItemToTop(myData, "SignaturePadActivity", new Intent(getActivity(), SignaturePadActivity.class));
    addItemToTop(myData, "SmoothProgressBarActivity", new Intent(getActivity(), SmoothProgressBarActivity.class));
    addItemToTop(myData, "RippleEffectActivity", new Intent(getActivity(), RippleEffectActivity.class));
    addItemToTop(myData, "NumberProgressBarActivity", new Intent(getActivity(), NumberProgressBarActivity.class));
    addItemToTop(myData, "MotionSampleActivity", new Intent(getActivity(), MotionSampleActivity.class));
    addItemToTop(myData, "MaterialMenuToolbarActivity", new Intent(getActivity(), MaterialMenuToolbarActivity.class));
    //        addItemToTop(myData,
    //                "MaterialListViewActivity",
    //                new Intent(getActivity(), MaterialListViewActivity.class));
    addItemToTop(myData, "KenBurnsViewActivity", new Intent(getActivity(), KenBurnsViewActivity.class));
    addItemToTop(myData, "GestureTouchActivity", new Intent(getActivity(), GestureTouchActivity.class));
    addItemToTop(myData, "FloatingActionButtonDemo", new Intent(getActivity(), FloatingActionButtonDemo.class));
    addItemToTop(myData, "CoolDragAndDropActivity", new Intent(getActivity(), CoolDragAndDropActivity.class));
    addItemToTop(myData, "MaterialDesignActivity", new Intent(getActivity(), MaterialDesignActivity.class));
    addItemToTop(myData, "MaterialAnimationActivity", new Intent(getActivity(), MaterialAnimationActivity.class));
    addItemToTop(myData, "SearchDrawableActivity", new Intent(getActivity(), SearchDrawableActivity.class));
    addItemToTop(myData, "UltimateRecyclerViewActivity", new Intent(getActivity(), UltimateRecyclerViewActivity.class));
    return myData;
}
Also used : MaterialMenuToolbarActivity(com.marshalchen.common.demoofui.materialmenu.MaterialMenuToolbarActivity) SearchDrawableActivity(com.marshalchen.common.demoofui.sampleModules.SearchDrawableActivity) GestureTouchActivity(com.marshalchen.common.demoofui.sampleModules.GestureTouchActivity) CoolDragAndDropActivity(com.marshalchen.common.demoofui.cooldraganddrop.CoolDragAndDropActivity) ArrayList(java.util.ArrayList) Intent(android.content.Intent) MaterialAnimationActivity(com.marshalchen.common.demoofui.materialAnimations.MaterialAnimationActivity) KenBurnsViewActivity(com.marshalchen.common.demoofui.sampleModules.KenBurnsViewActivity) FloatingActionButtonDemo(com.marshalchen.common.demoofui.sampleModules.FloatingActionButtonDemo) UltimateRecyclerViewActivity(com.marshalchen.common.demoofui.ultimaterecyclerview.UltimateRecyclerViewActivity) ResolveInfo(android.content.pm.ResolveInfo) MaterialDesignActivity(com.marshalchen.common.demoofui.materialdesigndemo.MaterialDesignActivity) NumberProgressBarActivity(com.marshalchen.common.demoofui.sampleModules.NumberProgressBarActivity) MotionSampleActivity(com.marshalchen.common.demoofui.sampleModules.MotionSampleActivity) PackageManager(android.content.pm.PackageManager) RippleEffectActivity(com.marshalchen.common.demoofui.sampleModules.RippleEffectActivity) HashMap(java.util.HashMap) Map(java.util.Map) SignaturePadActivity(com.marshalchen.common.demoofui.sampleModules.SignaturePadActivity)

Aggregations

Intent (android.content.Intent)1 PackageManager (android.content.pm.PackageManager)1 ResolveInfo (android.content.pm.ResolveInfo)1 CoolDragAndDropActivity (com.marshalchen.common.demoofui.cooldraganddrop.CoolDragAndDropActivity)1 MaterialAnimationActivity (com.marshalchen.common.demoofui.materialAnimations.MaterialAnimationActivity)1 MaterialDesignActivity (com.marshalchen.common.demoofui.materialdesigndemo.MaterialDesignActivity)1 MaterialMenuToolbarActivity (com.marshalchen.common.demoofui.materialmenu.MaterialMenuToolbarActivity)1 FloatingActionButtonDemo (com.marshalchen.common.demoofui.sampleModules.FloatingActionButtonDemo)1 GestureTouchActivity (com.marshalchen.common.demoofui.sampleModules.GestureTouchActivity)1 KenBurnsViewActivity (com.marshalchen.common.demoofui.sampleModules.KenBurnsViewActivity)1 MotionSampleActivity (com.marshalchen.common.demoofui.sampleModules.MotionSampleActivity)1 NumberProgressBarActivity (com.marshalchen.common.demoofui.sampleModules.NumberProgressBarActivity)1 RippleEffectActivity (com.marshalchen.common.demoofui.sampleModules.RippleEffectActivity)1 SearchDrawableActivity (com.marshalchen.common.demoofui.sampleModules.SearchDrawableActivity)1 SignaturePadActivity (com.marshalchen.common.demoofui.sampleModules.SignaturePadActivity)1 UltimateRecyclerViewActivity (com.marshalchen.common.demoofui.ultimaterecyclerview.UltimateRecyclerViewActivity)1 ArrayList (java.util.ArrayList)1 HashMap (java.util.HashMap)1 Map (java.util.Map)1