6 package com.google.appinventor.components.runtime.util.theme;
8 import android.graphics.Color;
9 import android.text.Html;
10 import android.view.Window;
11 import androidx.appcompat.app.ActionBar;
22 this.activity = activity;
27 activity.getWindow().requestFeature(Window.FEATURE_ACTION_BAR);
33 if (actionBar ==
null) {
34 if (activity instanceof
Form) {
54 if (actionBar !=
null) {
55 actionBar.setTitle(title);
62 if (actionBar !=
null) {
63 actionBar.setShowHideAnimationEnabled(enabled);
68 public void setTitle(String title,
boolean black) {
70 if (actionBar !=
null) {
72 actionBar.setTitle(Html.fromHtml(
"<font color=\"black\">" + title +
"</font>"));
75 actionBar.setTitle(title);