Begin with the layout file, main.xml, in Listing 1.
首先是布局文件main . xml,如清单1所示。
Listing 1. main.xml, the user interface layout file.
清单1 . main . xml,用户界面布局文件。
The corresponding layout file would appear as follows
相应的布局文件应该如下所示
To create a new layout file for MyStaticPage, click Finish.
为了创建一个MyStaticPage的新布局文件,点击Finish。
To create a new static page by using the existing layout file.
通过使用已存在的布局文件,来创建一个新的静态页面。
The only page that needs customization is the page Layout file.
唯一需要定制的页面是页面布局文件。
Let's look at the main layout file for our application, shown in Listing 1.
我们来看看本文中的应用程序的主要布局文件,如清单1所示。
We can simply add child views to it directly through the XML layout file.
我们也可以在XML布局文件中直接添加子视图。
Click New.to open the "Replace static layout file" window (see Figure 20).
点击new以打开“Replacestaticlayout file”窗口(见于图20)。
A sample page layout file has been included in the zip file that accompanies the article.
本文附带的压缩文件中有一个示例页面布局文件。
Select the Update Layout File drop-down menu, and select the layout file that you want to use
选择UpdateLayout File下拉菜单,并选择您想要使用的布局文件
In the static layout file (such as index.html), remove all the contents and then save the file.
在静态布局文件中(例如index . html),删除所有的内容,然后保存文件。
To update the static layout of the static page to a different layout file from the same.zip file.
按照以下方式,从相同的。zip文件升级静态页面的静态布局到不同的布局文件。
Click Browse to locate the.zip file or the self-contained HTM or HTML layout file, and then click OK.
点击Browse以定位.zip文件或者自我包含的HTM或者html布局文件,然后点击OK。
The most common way to define your layout and express the view hierarchy is with an XML layout file.
最常用的定义布局和默示视图层的办法是应用XML布局文件。
The static page is updated to use the selected static layout file, and this layout file opens for editing.
该静态页面会升级到使用选中的静态布局文件,该布局文件会打开以进行编辑。
A row will be created inside of the root column container for every tag that you put in your static layout file.
在您放入静态布局文件的每一个标签,都会在根列中创建一个行。
The static page is updated to the static layout file that you just selected, and this layout file opens for editing.
静态文件会升级到您刚刚选择的静态布局文件,该布局文件会打开以方便编辑。
Drag and drop the static page container onto the static layout file inside of the content area tag, just after the tag.
将静态页面容器拖放到内容区域标签的镜头布局文件中,该标签位于标签之后。
To update the static layout file of the static page to a layout file from a different.zip file or to a new static layout.
按照以下步骤,从不同的. zip文件升级静态页面的静态布局文件到布局文件或者新的静态布局。
As already shown, tags at specified locations in the static layout file might refer to portlets, containers, or navigation.
您已经知道,静态布局文件中特定位置的标签,可能会引用portlets,容器或导航。
MyStaticPage is added to the portal configuration and the index.html static layout file opens for editing in the Page Designer.
MyStaticPage添加至门户配置中,index . html静态布局文件会在Page Designer中打开以进行编辑。
The other iPhone-specific line in this partial layout file is the CSS stylesheet tag, which specifies a new iPhone-specific CSS file.
该局部布局文件中的另一个特定于iPhone的行是css样式表标记,该标记将指定新的特定于iPhone的CSS文件。
The static page is created with the static layout file that you have in the.zip file, and this static layout file is now open for editing.
静态页面会随着您在.zip文件中的静态布局文件一起创建,而该静态布局文件现在会打开以方便编辑。
Invokes the parser and displays the results in a TextView widget identified in the layout file as R.id.txtData and referenced in the code as tvData
调用解析器,在TextView小部件中显示结果,在布局文件中作为R.id.txtData识别,在代码中作为 tvData 引用
If you closed the HTML layout file for a static page, you can reopen it by right-clicking the page in Portal Designer and selecting Edit layout (see Figure 8).
如果您关闭了静态页面的html布局文件,那么您可以在PortalDesigner右击页面并选择EditLayout来重新打开它(见于图8)。
If you do not like the static layout that you have set for your static page, you can replace it with another layout file from your.zip file or even from a different.zip file.
如果您不喜欢为静态页面设置的静态布局,那么您就可以使用从您的.zip文件或者不同. zip文件中的其他布局文件来替换它。
File name: the name of the new static layout file that will open in the page Designer for further editing and will function as the layout file of the MyStaticPage portal page.
文件名:新静态布局文件的名字会在PageDesigner中打开以进行进一步的编辑,其功能相当于MyStaticPage门户页面的布局文件。
You can create the directory structure for your static layout and other resources, such as images and styles, inside this folder but keep the location of the static layout file intact.
您可以为静态布局和其他的资源(例如图片和样式)创建目录结构,在该文件夹内但是保持静态布局文件的位置。
Alternatively, you can use the "ZIP or HTML file location" field and associated menu to directly specify the location of the existing HTML or HTM static layout file rather than an archive.
您也可以选择,使用“ZIPorHTMLfilelocation”区域及其相关的菜单,以直接指定已存在HTML或者HTML静态布局文件的位置。
应用推荐