本文整理了Java中android.view.Window.setUiOptions()
方法的一些代码示例,展示了Window.setUiOptions()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Window.setUiOptions()
方法的具体详情如下:
包路径:android.view.Window
类名称:Window
方法名:setUiOptions
暂无
代码示例来源:origin: limpoxe/Android-Plugin-Framework
activity.getWindow().setUiOptions((int)Long.parseLong(pluginActivityInfo.getUiOptions().replace("0x", ""), 16));
代码示例来源:origin: com.willowtreeapps/oak-demos
@Override
public void setUiOptions(int uiOptions) {
if (DEBUG) Log.d(TAG, "[setUiOptions] uiOptions: " + uiOptions);
mActivity.getWindow().setUiOptions(uiOptions);
}
代码示例来源:origin: com.actionbarsherlock/actionbarsherlock
@Override
public void setUiOptions(int uiOptions) {
if (ActionBarSherlock.DEBUG) Log.d(TAG, "[setUiOptions] uiOptions: " + uiOptions);
mActivity.getWindow().setUiOptions(uiOptions);
}
代码示例来源:origin: com.actionbarsherlock/actionbarsherlock
@Override
public void setUiOptions(int uiOptions, int mask) {
if (ActionBarSherlock.DEBUG) Log.d(TAG, "[setUiOptions] uiOptions: " + uiOptions + ", mask: " + mask);
mActivity.getWindow().setUiOptions(uiOptions, mask);
}
代码示例来源:origin: com.willowtreeapps/oak-demos
@Override
public void setUiOptions(int uiOptions, int mask) {
if (DEBUG) Log.d(TAG, "[setUiOptions] uiOptions: " + uiOptions + ", mask: " + mask);
mActivity.getWindow().setUiOptions(uiOptions, mask);
}
代码示例来源:origin: jjdxmashl/jjdxm_baseutils
@TargetApi(14)
public static void setUiOptions(Window window, int uiOptions) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) {
window.setUiOptions(uiOptions);
}
}
代码示例来源:origin: xia-weiyang/MainScreenShow
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
if(C.ISMEIZU)
getWindow().setUiOptions(ActivityInfo.UIOPTION_SPLIT_ACTION_BAR_WHEN_NARROW);
getFragmentManager().beginTransaction()
.replace(android.R.id.content, new SettingAppFragment()).commit();
SmartBarUtils.setBackIcon(getActionBar(),
getResources().getDrawable(R.drawable.ic_back));
}
代码示例来源:origin: chunquedong/axbasePlugin
@SuppressLint("NewApi")
private void injector(Activity activity, PluginContext contextHook) {
Reflection.setField(activity, "mBase", contextHook);
Reflection.setField(activity, "mResources", contextHook.plugin.resources);
Window window = activity.getWindow();
LayoutInflater inflater = LayoutInflater.from(activity);
Reflection.setField(window, "mLayoutInflater", inflater);
Reflection.setField(window, "mWindowStyle", null);
ActivityInfo ai = contextHook.plugin.findAcitivityInfo(activity.getClass().getName());
if (ai != null) {
Reflection.setField(activity, "mActivityInfo", ai);
if (Build.VERSION.SDK_INT >= 19) {
window.setIcon(ai.getIconResource());
window.setLogo(ai.getLogoResource());
window.setSoftInputMode(ai.softInputMode);
window.setUiOptions(ai.uiOptions);
activity.setRequestedOrientation(ai.screenOrientation);
}
int theme = ai.getThemeResource();
if (theme != 0) {
Reflection.setField(activity, "mTheme", null);
activity.setTheme(theme);
}
}
}
代码示例来源:origin: xia-weiyang/MainScreenShow
getWindow().setUiOptions(
ActivityInfo.UIOPTION_SPLIT_ACTION_BAR_WHEN_NARROW);
代码示例来源:origin: baidu/GPT
.getTargetMapping().getActivityInfo(mTargetClassName);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) {
getWindow().setUiOptions(targetInfo.uiOptions);
代码示例来源:origin: iqiyi/Neptune
window.setUiOptions(actInfo.uiOptions);
内容来源于网络,如有侵权,请联系作者删除!