Back to project page RoboBinding-gallery.
The source code is released under:
Apache License
If you think the Android project RoboBinding-gallery listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package org.robobinding.gallery.activity; /* w w w .ja va 2s . co m*/ import java.util.Map; import org.robobinding.gallery.R; import org.robobinding.gallery.presentationmodel.GalleryPresentationModel; import android.app.Activity; import android.os.Bundle; import com.google.common.collect.Maps; /** * * @since 1.0 * @version $Revision: 1.0 $ * @author Cheng Wei */ public class GalleryActivity extends AbstractActivity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Map<String, Class<? extends Activity>> demoActivityMappings = Maps.newLinkedHashMap(); demoActivityMappings.put("View", ViewActivity.class); demoActivityMappings.put("EditText", EditTextActivity.class); demoActivityMappings.put("AdapterView", AdapterViewActivity.class); demoActivityMappings.put("ListView", ListViewActivity.class); demoActivityMappings.put("Custom Component", CustomComponentActivity.class); demoActivityMappings.put("TypedCursor", TypedCursorActivity.class); demoActivityMappings.put("Dynamic Binding", DynamicBindingActivity.class); demoActivityMappings.put("Fragment & ViewPager", ListFragmentDemoActivity.class); demoActivityMappings.put("Options Menu", OptionsMenuActivity.class); demoActivityMappings.put("Context Menu", ContextMenuDemoActivity.class); demoActivityMappings.put("Contextual Action Mode", ContextualActionModeActivity.class); GalleryPresentationModel presentationModel = new GalleryPresentationModel(this, demoActivityMappings); initializeContentView(R.layout.activity_gallery, presentationModel); } }