Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-34115

Displaying Chinese in spark List does not work in Android 4.4.2

    XMLWordPrintableJSON

Details

    • Bug
    • Status: In Progress
    • Major
    • Resolution: Unresolved
    • Apache Flex 4.11.0
    • None
    • Spark: List
    • Windows 7 64 bit, Flash Builder 4.6, HTC One Android 4.4.2/ Galaxy Note 3 Android 4.4.2

    Description

      I have come to this bug where localization does not work in Android 4.4.2. Oddly, this problem only occurs in the spark list component. The dataProvider is showing blank items.

      The following is my code:
      <s:List id="list" width="100%" height="100%" locale="zh_CN">
      <s:itemRenderer>
      <fx:Component>
      <renderers:RoundedListItemRenderer decorator="

      {data.icon}

      " labelField="label" styleName="roundedListStyle" alternatingItemColors="0xdcdcdc" color="0x444444" downColor="0xb0b0b0" width="100%" height="100%"/>
      </fx:Component>
      </s:itemRenderer>
      <s:ArrayCollection>
      <fx:Object type="current" label="

      {resourceManager.getString('resources','str1')}

      " icon="@Embed('images/ico_next_grey.png')"/>
      <fx:Object type="statement" label="

      {resourceManager.getString('resources','str2')}

      " icon="@Embed('images/ico_next_grey.png')"/>
      <fx:Object type="history" label="

      {resourceManager.getString('resources','str3')}

      " icon="@Embed('images/ico_next_grey.png')"/>
      <fx:Object type="deposit" label="

      {resourceManager.getString('resources','str4')}

      " icon="@Embed('images/ico_next_grey.png')"/>
      <fx:Object type="withdrawal" label="

      {resourceManager.getString('resources','str5')}

      " icon="@Embed('images/ico_next_grey.png')"/>
      </s:ArrayCollection>
      </s:List>

      [Edit]
      I have tried on button. The same thing happens when I removed the skinClass.
      Here is my button code:
      <s:Button id="logoutBtn" label="

      {resourceManager.getString('resources','accountview.button.signout')}

      "
      width="100%" height="60" skinClass="skins.LoginButtonSkin"/>

      Attachments

        1. LocaleTest.fxp
          19 kB
          victor yew
        2. LocaleTest.fxp
          18 kB
          victor yew

        Issue Links

          Activity

            People

              Unassigned Unassigned
              victoryew99 victor yew
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - 1h
                  1h
                  Remaining:
                  Remaining Estimate - 1h
                  1h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified