Skip to content
qiibeta edited this page Apr 20, 2020 · 5 revisions

Theme

XML android:theme

deprecated, you should not use this method to modify your Scene style.

Scene.setTheme

Every Scene can have its different theme resource

@NonNull
@Override
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
     setTheme(this.mThemeId);
     return inflater.inflate(R.layout.scene_layout, container, false);
}

Need attention

After setTheme, Scene created View's Context is a ContextWrapper, not Activity.