133 lines
3.0 KiB
Java
133 lines
3.0 KiB
Java
package androidx.appcompat.widget;
|
|
|
|
import android.content.Context;
|
|
import android.graphics.drawable.Drawable;
|
|
import android.os.Parcelable;
|
|
import android.util.SparseArray;
|
|
import android.view.Menu;
|
|
import android.view.View;
|
|
import android.view.ViewGroup;
|
|
import android.view.Window;
|
|
import android.widget.AdapterView;
|
|
import android.widget.SpinnerAdapter;
|
|
import androidx.annotation.RestrictTo;
|
|
import androidx.appcompat.view.menu.MenuBuilder;
|
|
import androidx.appcompat.view.menu.MenuPresenter;
|
|
import androidx.core.view.ViewPropertyAnimatorCompat;
|
|
@RestrictTo({RestrictTo.Scope.LIBRARY_GROUP_PREFIX})
|
|
public interface DecorToolbar {
|
|
void animateToVisibility(int i);
|
|
|
|
boolean canShowOverflowMenu();
|
|
|
|
void collapseActionView();
|
|
|
|
void dismissPopupMenus();
|
|
|
|
Context getContext();
|
|
|
|
View getCustomView();
|
|
|
|
int getDisplayOptions();
|
|
|
|
int getDropdownItemCount();
|
|
|
|
int getDropdownSelectedPosition();
|
|
|
|
int getHeight();
|
|
|
|
Menu getMenu();
|
|
|
|
int getNavigationMode();
|
|
|
|
CharSequence getSubtitle();
|
|
|
|
CharSequence getTitle();
|
|
|
|
ViewGroup getViewGroup();
|
|
|
|
int getVisibility();
|
|
|
|
boolean hasEmbeddedTabs();
|
|
|
|
boolean hasExpandedActionView();
|
|
|
|
boolean hasIcon();
|
|
|
|
boolean hasLogo();
|
|
|
|
boolean hideOverflowMenu();
|
|
|
|
void initIndeterminateProgress();
|
|
|
|
void initProgress();
|
|
|
|
boolean isOverflowMenuShowPending();
|
|
|
|
boolean isOverflowMenuShowing();
|
|
|
|
boolean isTitleTruncated();
|
|
|
|
void restoreHierarchyState(SparseArray<Parcelable> sparseArray);
|
|
|
|
void saveHierarchyState(SparseArray<Parcelable> sparseArray);
|
|
|
|
void setBackgroundDrawable(Drawable drawable);
|
|
|
|
void setCollapsible(boolean z2);
|
|
|
|
void setCustomView(View view);
|
|
|
|
void setDefaultNavigationContentDescription(int i);
|
|
|
|
void setDefaultNavigationIcon(Drawable drawable);
|
|
|
|
void setDisplayOptions(int i);
|
|
|
|
void setDropdownParams(SpinnerAdapter spinnerAdapter, AdapterView.OnItemSelectedListener onItemSelectedListener);
|
|
|
|
void setDropdownSelectedPosition(int i);
|
|
|
|
void setEmbeddedTabView(ScrollingTabContainerView scrollingTabContainerView);
|
|
|
|
void setHomeButtonEnabled(boolean z2);
|
|
|
|
void setIcon(int i);
|
|
|
|
void setIcon(Drawable drawable);
|
|
|
|
void setLogo(int i);
|
|
|
|
void setLogo(Drawable drawable);
|
|
|
|
void setMenu(Menu menu, MenuPresenter.Callback callback);
|
|
|
|
void setMenuCallbacks(MenuPresenter.Callback callback, MenuBuilder.Callback callback2);
|
|
|
|
void setMenuPrepared();
|
|
|
|
void setNavigationContentDescription(int i);
|
|
|
|
void setNavigationContentDescription(CharSequence charSequence);
|
|
|
|
void setNavigationIcon(int i);
|
|
|
|
void setNavigationIcon(Drawable drawable);
|
|
|
|
void setNavigationMode(int i);
|
|
|
|
void setSubtitle(CharSequence charSequence);
|
|
|
|
void setTitle(CharSequence charSequence);
|
|
|
|
void setVisibility(int i);
|
|
|
|
void setWindowCallback(Window.Callback callback);
|
|
|
|
void setWindowTitle(CharSequence charSequence);
|
|
|
|
ViewPropertyAnimatorCompat setupAnimatorToVisibility(int i, long j);
|
|
|
|
boolean showOverflowMenu();
|
|
}
|