唯一需要定制的页面是页面布局文件。
The only page that needs customization is the page Layout file.
相应的布局文件应该如下所示
本文附带的压缩文件中有一个示例页面布局文件。
A sample page layout file has been included in the zip file that accompanies the article.
通过使用已存在的布局文件,来创建一个新的静态页面。
To create a new static page by using the existing layout file.
首先是布局文件main . xml,如清单1所示。
现在在静态布局文件中添加skin . css的链接。
Now add the link of the skin.css in the static layout files.
清单1 . main . xml,用户界面布局文件。
我们也可以在XML布局文件中直接添加子视图。
We can simply add child views to it directly through the XML layout file.
我们来看看本文中的应用程序的主要布局文件,如清单1所示。
Let's look at the main layout file for our application, shown in Listing 1.
在您放入静态布局文件的每一个标签,都会在根列中创建一个行。
A row will be created inside of the root column container for every tag that you put in your static layout file.
最常用的定义布局和默示视图层的办法是应用XML布局文件。
The most common way to define your layout and express the view hierarchy is with an XML layout file.
为了创建一个MyStaticPage的新布局文件,点击Finish。
该静态页面会升级到使用选中的静态布局文件,该布局文件会打开以进行编辑。
The static page is updated to use the selected static layout file, and this layout file opens for editing.
静态文件会升级到您刚刚选择的静态布局文件,该布局文件会打开以方便编辑。
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.
按照以下方式,从相同的。zip文件升级静态页面的静态布局到不同的布局文件。
To update the static layout of the static page to a different layout file from the same.zip file.
选择UpdateLayoutFile下拉菜单,并选择您想要使用的布局文件
Select the Update Layout File drop-down menu, and select the layout file that you want to use
在静态布局文件中(例如index . html),删除所有的内容,然后保存文件。
In the static layout file (such as index.html), remove all the contents and then save the file.
您已经知道,静态布局文件中特定位置的标签,可能会引用portlets,容器或导航。
As already shown, tags at specified locations in the static layout file might refer to portlets, containers, or navigation.
它也有两个附加的参数,让你指定哪一个数据区域和哪个布局文件中的对象进行关联。
It also has two additional parameters that let you specify which data field to associate with which object in the row layout resource.
按照以下步骤,从不同的. zip文件升级静态页面的静态布局文件到布局文件或者新的静态布局。
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.
点击Browse以定位.zip文件或者自我包含的HTM或者html布局文件,然后点击OK。
Click Browse to locate the.zip file or the self-contained HTM or HTML layout file, and then click OK.
静态页面会随着您在.zip文件中的静态布局文件一起创建,而该静态布局文件现在会打开以方便编辑。
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.
您可以为静态布局和其他的资源(例如图片和样式)创建目录结构,在该文件夹内但是保持静态布局文件的位置。
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.
下面这段代码是一个很简单的定制布局文件。它的列表是绿色背景,并且是一个交替的红色“没有数据”的信息。
The following code demonstrates an (ugly) custom screen layout. It has a list with a green background, and an alternate red "no data" message.
该局部布局文件中的另一个特定于iPhone的行是css样式表标记,该标记将指定新的特定于iPhone的CSS文件。
The other iPhone-specific line in this partial layout file is the CSS stylesheet tag, which specifies a new iPhone-specific CSS file.
MyStaticPage添加至门户配置中,index . html静态布局文件会在PageDesigner中打开以进行编辑。
MyStaticPage is added to the portal configuration and the index.html static layout file opens for editing in the Page Designer.
如果您不喜欢为静态页面设置的静态布局,那么您就可以使用从您的.zip文件或者不同. zip文件中的其他布局文件来替换它。
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.
文件名:新静态布局文件的名字会在PageDesigner中打开以进行进一步的编辑,其功能相当于MyStaticPage门户页面的布局文件。
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.
调用解析器,在TextView小部件中显示结果,在布局文件中作为R.id.txtData识别,在代码中作为 tvData 引用
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
应用推荐