How to change Oracle MAF's default springboard icon and alignment?

半世苍凉 提交于 2019-12-11 13:16:00

问题


How can I convert given springboard toggle button from:

This -- Right aligned menu icon, opens dropdown menu on click

To This -- Left aligned with bars icon, directly open spring board on click.


回答1:


We can also do the following to achieve this.

  1. Disable the default Springboard toggle button by unchecking the "Show Springboard Toggle button".

  2. Drag and drop the method gotoSpringboard() method from ApplicationFeatures data control as a command link in the primary facet in all the pages.

  3. Remove the text and add an springboard icon for the link or add an css class to achieve the springboard icon.

My code looks like this.

<amx:commandLink actionListener="#{bindings.gotoSpringboard.execute}"
                   disabled="#{!bindings.gotoSpringboard.enabled}" id="cl2" styleClass="fa fa-bars fa-2x">

  </amx:commandLink>



回答2:


Just modify the CSS. You should be able to find the correct CSS selectors an then override their css attributes by using a self defined skin. More info about MAF skinning: http://docs.oracle.com/middleware/mobile200/mobile/develop-oepe/oepe-maf-apps-create.htm#CIHCCFIG




回答3:


The Mobile Alta skin has the springboard icon on the right. But , If you use mobileFusionFx skin, the springboard is designed to be on the left by default. Either you can use the mobileFusion skin or override the CSS property of the MAF Skin by adding stylesheet. The link is already provided in the answer given by User404.



来源:https://stackoverflow.com/questions/29492149/how-to-change-oracle-mafs-default-springboard-icon-and-alignment

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!