Back to project page ponyville-live-android.
The source code is released under:
Apache License
If you think the Android project ponyville-live-android 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 com.ponyvillelive.app.ui; // w ww. j av a 2s . c om import android.app.Activity; import android.view.ViewGroup; import com.ponyvillelive.app.PvlApp; /** * An indirection which allows controlling the root container used for each activity. * */ public interface AppContainer { /** * The root {@link android.view.ViewGroup} into which the activity should place its contents. * */ ViewGroup get(Activity activity, PvlApp app); /** * An {@link AppContainer} which returns the normal activity content view. * */ AppContainer DEFAULT = new AppContainer() { @Override public ViewGroup get(Activity activity, PvlApp app) { return (ViewGroup) activity.findViewById(android.R.id.content); } }; }