2 Replies Latest reply: Jan 28, 2013 10:41 AM by user11345344 RSS

    ADF Mobile: layout problems

    user11345344
      Hi,

      Trying to do this very simple layout with amx:panelGroupLayout fails.

      The halign="start" in a nested amx:panelGroupLayout is not working, halign="start" is centered, halign="end" works!

      Here is the code for my page:

      <?xml version="1.0" encoding="UTF-8" ?>
      <amx:view xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:amx="http://xmlns.oracle.com/adf/mf/amx"
      xmlns:dvtm="http://xmlns.oracle.com/adf/mf/amx/dvt">
      <amx:panelPage id="pp1">
      <amx:panelGroupLayout id="pgl1" inlineStyle="width:100%;" halign="center">
      <amx:panelGroupLayout id="pgl2" inlineStyle="width:100%;" halign="start" layout="vertical">
      <amx:outputText value="start" id="ot2"/>
      </amx:panelGroupLayout>
      <amx:panelGroupLayout id="pgl3" inlineStyle="width:100%;" halign="end" layout="vertical">
      <amx:outputText value="end" id="ot1"/>
      </amx:panelGroupLayout>
      <amx:panelGroupLayout id="pgl4" inlineStyle="width:100%;" halign="center" layout="vertical">
      <amx:outputText value="center" id="ot3"/>
      </amx:panelGroupLayout>
      </amx:panelGroupLayout>
      </amx:panelPage>
      </amx:view>

      Edited by: user11345344 on 2013-01-27 00:31
        • 1. Re: ADF Mobile: layout problems
          Frank Nimphius-Oracle
          Hi,

          remove

          halign="center"

          from the outer amx:panelGroupLayout and it works. You tell the inner component to be aligned middle to then assume "start" will align left, which is a contradicting information in your page code

          Frank
          • 2. Re: ADF Mobile: layout problems
            user11345344
            Hi Frank,

            Not sure i follow that. Let me try with this one,

            I am trying to center a amx:panelGroupLayout in the middle of the page no mater the width og the page (common html layout on the web).

            In that centerede page i have amx:panelGroupLayout´s some which aligne start and some which align center.

            If i remove the halign="center" from the outermost panelgroup the inner aligns work but the amx:panelGroupLayout is then no longer centerede.

            <?xml version="1.0" encoding="UTF-8" ?>
            <amx:view xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:amx="http://xmlns.oracle.com/adf/mf/amx" xmlns:dvtm="http://xmlns.oracle.com/adf/mf/amx/dvt">
            <amx:panelPage id="pp1">
            <amx:panelGroupLayout id="pgl1" inlineStyle="width:100%;" halign="center" >
            <amx:panelGroupLayout id="pgl5" inlineStyle="width:150px;">
            <amx:panelGroupLayout id="pgl2" inlineStyle="width:100%;" halign="start" layout="vertical">
            <amx:outputText value="start" id="ot2"/>
            </amx:panelGroupLayout>
            <amx:panelGroupLayout id="pgl3" inlineStyle="width:100%;" halign="end" layout="vertical">
            <amx:outputText value="end" id="ot1"/>
            </amx:panelGroupLayout>
            <amx:panelGroupLayout id="pgl4" inlineStyle="width:100%;" halign="center" layout="vertical">
            <amx:outputText value="center" id="ot3"/>
            </amx:panelGroupLayout>
            </amx:panelGroupLayout>
            </amx:panelGroupLayout>
            </amx:panelPage>
            </amx:view>