HTML5 developing mobile Web Applications--sap UI5 (9)

Source: Internet
Author: User
Tags i18n

Before we built the app is based on the display. Now let's format it and introduce a lot of other SAP UI5 component concepts. This makes an interface of the app more hierarchical. More like a mobile app interface, and better use the features available in SAP UI5. Each of these different levels has different functions.

First change the App.view.xml file code:

<MVC: View controllername= "sap.ui.demo.wt.controller.App" xmlns= "sap.m" xmlns:mvc= "Sap.ui.core.mvc" displayblock= "true" &   Gt               <App> <pages> <page title= "{i18n>homepagetitle}" > <content>                     <panel headertext= "{i18n>hellopaneltitle}" > <content>                      <button text= "{i18n>showhellobuttontext}" press= "Onshowhello"/> <input value= "{/recipient/name}" description= "Hello                  {/recipient/name} "valueliveupdate=" true "width=" 60% "/> </content> </Panel> </content> </Page> </pages> < /app> 
</mvc:View>
Compared with the previous, although the content is the same, but we introduced a very many components. Make the interface more hierarchical.

Put all the components in the Page , the basic structure is app->page ( there is content)->panel ( there are content). The real page content is in the Panel , and the first two layers are just for basic functionality. Also set Displayblock to true, so that the ability to make the phone page normal display.

In the index.html file, change the code such as the following:

<! DOCTYPE html>
This takes advantage of the shell component in SAP UI5, where the content of the page is placed to ensure the responsiveness of the page. Better support for mobile devices. Besides. We also set the Height property to 100%. is stained with the entire screen.






HTML5 developing mobile Web Applications--sap UI5 (9)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.