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;
}
Aggregations