summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorJason Monk <jmonk@google.com>2016-08-18 10:41:17 -0400
committerJason Monk <jmonk@google.com>2016-09-20 16:24:00 -0400
commitbeda2ddbec2f32adeba20d562a53bb3dd83b902d (patch)
treecb272e0e07de69decc934cbb75c8ec65b1e78872 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parentf97de8b1c5f21fa98cd145c35091e69eb15c28e0 (diff)
Add PluginInflateContainer
PluginInflateContainer extends AutoReinflateContainer, except that it also uses the plugin interface to allow the view to be swapped out with something else. Define an interface or abstract class as follows that includes the version and action. public interface MyInterface { public static final String ACTION = "com.android.systemui.action.PLUGIN_MYINTERFACE"; public static final int VERSION = 1; void myImportantInterface(); } Then put in a PluginInflateContainer to use and specify the interface or class that will be implemented as viewType. The layout specified will be used by default and whenever a plugin is not present. <com.android.systemui.PluginInflateContainer android:id="@+id/some_id" android:layout_width="match_parent" android:layout_height="match_parent" android:layout="@layout/my_default_component" systemui:viewType="com.android.systemui.plugins.MyInterface" /> Test: Manual Change-Id: I2ef3fa8dbe344c4635df20056182c1c0b3846fdf
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions