自己做列车查询系统得到的一点知识,只求以后好自己看
来源:互联网 发布:淘宝答题在哪 编辑:程序博客网 时间:2024/04/29 20:57
requestWindowFeature();设置为全屏;
//英文解释加中文翻译
Enable extended window features. This is a convenience for calling getWindow().requestFeature().启用扩展窗口特性。这是一个方便调用getWindow().requestFeature()。
window:
Abstract base class for a top-level window look and behavior policy. An instance of this class should be used as the top-level view added to the window manager. It provides standard UI policies such as a background, title area, default key processing, etc.
The only existing implementation of this abstract class is android.policy.PhoneWindow, which you should instantiate when needing a Window. Eventually that class will be refactored and a factory method added for creating Window instances without knowing about a particular implementation.抽象基类顶级窗口的外观和行为的政策。应该使用这个类的一个实例作为顶层视图添加到窗口管理器。它提供标准UI政策等背景下,标题区域,默认键处理等。
唯一的现有android.policy这个抽象类的实现。PhoneWindow,你应该实例化时需要一个窗口。最终这个类将重构和工厂方法添加创建窗口的实例不知道特定的实现。
FEATURE_NO_TITLE:
Flag for the "no title" feature, turning off the title at the top of the screen.国旗为“无标题”功能,关闭屏幕的顶部的标题。设置全屏。
getWindow():
Retrieve the current android.view.Window for the activity. This can be used to directly access parts of the Window API that are not available through Activity/Screen.
Returns:
Window The current window, or null if the activity is not visual.检索当前android.view。活动窗口。这可以用于直接访问的部分窗口API不可以通过活动/屏幕。
返回:
窗口当前窗口或null如果没有视觉活动。
setFlags:
Set the flags of the window, as per the WindowManager.LayoutParams flags.
Note that some flags must be set before the window decoration is created (by the first call to setContentView(View, android.view.ViewGroup.LayoutParams) or getDecorView(): WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN and WindowManager.LayoutParams.FLAG_LAYOUT_INSET_DECOR. These will be set for you based on the android.R.attr.windowIsFloating attribute.设置窗口的旗帜,按照WindowManager。LayoutParams旗帜。
注意,一些旗帜前必须设置窗口创建装饰(由第一次调用setContentView(看来,android.view.ViewGroup.LayoutParams)或getDecorView():WindowManager.LayoutParams。FLAG_LAYOUT_IN_SCREEN WindowManager.LayoutParams.FLAG_LAYOUT_INSET_DECOR。这些将为您基于android.R.attr。windowIsFloating属性。
windowManager:
The interface that apps use to talk to the window manager.应用程序使用的接口和窗口管理器。
FLAG_FULLSCREEN:
Window flag: hide all screen decorations (such as the status bar) while this window is displayed. This allows the window to use the entire display space for itself -- the status bar will be hidden when an app window with this flag set is on the top layer. A fullscreen window will ignore a value of SOFT_INPUT_ADJUST_RESIZE for the window's softInputMode field; the window will stay fullscreen and will not resize.窗口国旗:隐藏所有屏幕装饰(如状态栏),显示这个窗口。这允许窗口使用的整个显示空间本身——状态栏会隐藏,当一个应用程序窗口,这个标志设置在顶层。会忽略一个全屏窗口值为窗口的softInputMode字段SOFT_INPUT_ADJUST_RESIZE;窗口将保持全屏,不会调整。
setRequestedOrientation();
Change the desired orientation of this activity. If the activity is currently in the foreground or otherwise impacting the screen orientation, the screen will immediately be changed (possibly causing the activity to be restarted). Otherwise, this will be used the next time the activity is visible.这一活动的期望的方向变化。如果活动目前在前台或以其他方式影响屏幕的方向,屏幕将立即被改变(可能导致活动重新启动)。否则,这将用于下次的活动是可见的。
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);强制横屏
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
ActivityInfo
Information you can retrieve about a particular application activity or receiver. This corresponds to information collected from the AndroidManifest.xml's <activity> and <receiver> tags.信息你可以检索一个特定的应用程序活动或接收器。这对应于从AndroidManifest收集的信息。xml的<活动>和<接收机>标记。
- 自己做列车查询系统得到的一点知识,只求以后好自己看
- 以后自己看的
- 总结的makefile,只求自己下次看的时候还能懂
- 建立好自己的知识管理系统!
- 程序员,做技术神马的,请对自己好一点
- 程序员,做技术神马的,请对自己好一点!
- 我会做自己想做的事,而不是做别人都看得到的
- 浏览网页的时候看到的几个好博客,留下来以后自己看。
- (ty--90)刚才在看MSDN时,突然想自己做一个类似的记事本,把自己平时积累的知识分类写进去,以便日后查询
- 对自己好一点
- 怎样做才能得到自己想要的
- 交互设计专业必备知识,看到了好的课程,给自己一点储备
- 好东西,自己看
- 做自己好难
- 自己做的购物系统
- 一年的职业生涯(留给以后的自己看)
- 写好自己的模板方法,以后要做的就是对于模板方法进行具体化了
- 初学数据结构自己写的二叉树,方便以后看
- hdoj preoblem 1598 find the most comfortable road (并查集&&动态规划)
- 语言处理程序
- richface中a4j:from和ajax Button及H:button的使用
- maven学习系列之(一)—maven的安装与基本设置
- 《unix高级环境编程》进程控制——进程等待
- 自己做列车查询系统得到的一点知识,只求以后好自己看
- 复旦校长杨玉良突然离职
- 对称排序
- hdu 5087 Revenge of LIS II lcs变形
- 登录注册密文传输密码
- JavaScript,Mysql,Java中substring,substr区别
- LeetCode Remove Duplicates from Sorted Array II
- C基础——数组与字符串
- 0-1 package