Methods Summary |
---|
public abstract void | createMenuPopup()
|
public com.android.ide.common.rendering.api.ActionBarCallback | getCallBack()
return mCallback;
|
public android.widget.FrameLayout | getContentRoot()
return mContentRoot;
|
protected android.view.View | getDecorContent()Returns the view inflated. This should contain both the ActionBar and the app content in it.
return mDecorContent;
|
protected abstract com.android.ide.common.rendering.api.ResourceValue | getLayoutResource(com.android.layoutlib.bridge.android.BridgeContext context)Returns the Layout Resource that should be used to inflate the action bar. This layout
should cover the complete screen, and have a FrameLayout included, where the content will
be inflated.
|
protected void | setContentRoot(android.widget.FrameLayout contentRoot)
mContentRoot = contentRoot;
|
protected abstract void | setHomeAsUp(boolean homeAsUp)
|
private void | setIcon()
String appIcon = mParams.getAppIcon();
if (appIcon != null) {
setIcon(appIcon);
}
|
protected abstract void | setIcon(java.lang.String icon)
|
protected static void | setMatchParent(android.view.View view)
view.setLayoutParams(new LayoutParams(LayoutParams.MATCH_PARENT,
LayoutParams.MATCH_PARENT));
|
protected abstract void | setSubtitle(java.lang.CharSequence subtitle)
|
private void | setSutTitle()
String subTitle = mCallback.getSubTitle();
if (subTitle != null) {
setSubtitle(subTitle);
}
|
private void | setTitle()
RenderResources res = mBridgeContext.getRenderResources();
String title = mParams.getAppLabel();
ResourceValue titleValue = res.findResValue(title, false);
if (titleValue != null && titleValue.getValue() != null) {
setTitle(titleValue.getValue());
} else {
setTitle(title);
}
|
protected abstract void | setTitle(java.lang.CharSequence title)
|
protected void | setupActionBar()Setup things like the title, subtitle, icon etc.
setTitle();
setSutTitle();
setIcon();
setHomeAsUp(mCallback.getHomeButtonStyle() == HomeButtonStyle.SHOW_HOME_AS_UP);
|