Return-Path: X-Original-To: apmail-flex-users-archive@www.apache.org Delivered-To: apmail-flex-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A3B4C11AE8 for ; Wed, 2 Apr 2014 09:21:09 +0000 (UTC) Received: (qmail 45735 invoked by uid 500); 2 Apr 2014 09:21:09 -0000 Delivered-To: apmail-flex-users-archive@flex.apache.org Received: (qmail 45256 invoked by uid 500); 2 Apr 2014 09:21:08 -0000 Mailing-List: contact users-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@flex.apache.org Delivered-To: mailing list users@flex.apache.org Received: (qmail 45248 invoked by uid 99); 2 Apr 2014 09:21:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Apr 2014 09:21:07 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ori007@gmail.com designates 74.125.82.43 as permitted sender) Received: from [74.125.82.43] (HELO mail-wg0-f43.google.com) (74.125.82.43) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Apr 2014 09:21:02 +0000 Received: by mail-wg0-f43.google.com with SMTP id x13so8549954wgg.2 for ; Wed, 02 Apr 2014 02:20:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=/kJTmy9N95je1EPrbpnae9F6MA5Ui91eT2zeeMjBOxo=; b=kMRgScboTFfmWqlFVqTa7GXrS3TEx6ZP6dqBpNvwp9ba6UnS5w5Oy2uqRdFbZbitqH Ox7VcG0TdSl5pQGyUi/Ub+ayu/INGvr2TppEj0WhhWbSPC65tTEQuXoYjQdvYDjxrASD lZcRq8XPkTGkYgVL7WaLGM4lifRKMW1ChVx1xkiJus3C4d2KhimmOmkJcAvOu2GkWt8y b/Wh0kXCgrwCD7sD80kVV/F10jecLMSox3Za+xY+SqW5QBY3ljJNEsfEhlB+HlDjui0m EYG0bD3xRzteH9L4LOYcCAXXEFrqghu+Z3BgkAK7DZMDxO1RnqcqfkqE2y+tNlDX/vLx YDSQ== MIME-Version: 1.0 X-Received: by 10.181.13.112 with SMTP id ex16mr27000634wid.23.1396430440802; Wed, 02 Apr 2014 02:20:40 -0700 (PDT) Received: by 10.227.201.136 with HTTP; Wed, 2 Apr 2014 02:20:40 -0700 (PDT) In-Reply-To: <2095F5EBE04D59409DFCE91FFCEBF7AFAF2DE65C@EXMBX05.netplexity.local> References: <2095F5EBE04D59409DFCE91FFCEBF7AFAF2DA7EF@EXMBX05.netplexity.local> <2095F5EBE04D59409DFCE91FFCEBF7AFAF2DB582@EXMBX05.netplexity.local> <2095F5EBE04D59409DFCE91FFCEBF7AFAF2DCA04@EXMBX05.netplexity.local> <2095F5EBE04D59409DFCE91FFCEBF7AFAF2DD087@EXMBX05.netplexity.local> <2095F5EBE04D59409DFCE91FFCEBF7AFAF2DD22B@EXMBX05.netplexity.local> <2095F5EBE04D59409DFCE91FFCEBF7AFAF2DE65C@EXMBX05.netplexity.local> Date: Wed, 2 Apr 2014 12:20:40 +0300 Message-ID: Subject: Re: No Prompt in TextInput when layoutDirection set to RTL (Mobile) From: Ori 007 To: users@flex.apache.org Content-Type: multipart/alternative; boundary=f46d043c06be60b09104f60bccbf X-Virus-Checked: Checked by ClamAV on apache.org --f46d043c06be60b09104f60bccbf Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Maurice, Sorry for the late response. The issue that the letters order is not inverted as it should be is very disappointing. Thanks for your new skin. I tried it and the prompt text appear, but not in right place. I added to your skin: prompt.setStyle("textAlign", "right"); and it works fine. Thank you very much, Ori. On Sun, Mar 30, 2014 at 2:22 PM, Maurice Amsellem < maurice.amsellem@systar.com> wrote: > Hi Ori, > > To conclude this loooong RTL journey, I didn't succeed in displaying RTL > text using the mobile-optimized StyleableTextField. > > The idea was to fix all default mobile skins (based on StyleableTextField > and ScrollableStageText) to display correctly when using RTL text > (Arabic/Hebrew) and layoutDirection set to RTL. > So I changed StyleableTextField to correct it's matrix and textAlign. > > I tested it on ADL with default skins and it worked fine! > https://www.dropbox.com/s/ee61mpazlgyloof/ADL_RTL_OK.png > > However, the same application run on the device (Android or iOS) the > letter order is not inverted as it should be. > https://www.dropbox.com/s/rfme0g60xxkne87/android_rtl_ko.png > > I have no explanation yet why the result differs on ADL and device > (difference in the AIR rutime implementation maybe ?) > > So I drop it for now. > > Regarding your last issue on the TextInput prompt text, the solution is > easy: you need to create a custom skin of TextInput that uses spark Labe= l > for the prompt display. > I did it for you and attached the custom skin to the JIRA ticket: > > https://issues.apache.org/jira/browse/FLEX-34181 > > Regards, > > Maurice > > -----Message d'origine----- > De : Ori 007 [mailto:ori007@gmail.com] > Envoy=E9 : jeudi 27 mars 2014 08:03 > =C0 : users@flex.apache.org > Objet : Re: No Prompt in TextInput when layoutDirection set to RTL (Mobil= e) > > Thanks, this is great news. > Let me know if you need something. > > > On Thu, Mar 27, 2014 at 8:58 AM, Maurice Amsellem < > maurice.amsellem@systar.com> wrote: > > > >I'm using Spark Label. > > >In the renderers i'm using Spark Labels as well. > > >and in the buttons i'm using spark label as well :-) > > > > That explains why it displays RTL without any issues. > > Except for the TextInput prompt text, wich still uses StyleableTextFiel= d. > > > > I tried the app on an iPad 3 and indeed there is no performance issue, > > the lists scroll rather smoothly etc. > > > > This means spark label can be used at places, when there are not too > > much text, and when you don't need the "text shadow" effect. > > > > But I did other tests with an app that displays lot more of text, > > using spark Label, and the result was very bad (1-4 fps) > > > > So, in the most general case, I think it's better that > > StyleableTextField knows how to display in RTL. > > > > I will continue in that direction, and that will also fix the prompt > > text issue. > > > > Maurice > > > > -----Message d'origine----- > > De : Ori 007 [mailto:ori007@gmail.com] Envoy=E9 : jeudi 27 mars 2014 > > 07:37 =C0 : users@flex.apache.org Objet : Re: No Prompt in TextInput > > when layoutDirection set to RTL (Mobile) > > > > Hi, > > > > The StyleableTextField doesn't include feature I required (sometime). > > > > I'm using Spark Label. > > In the renderers i'm using Spark Labels as well. > > and in the buttons i'm using spark label as well :-) > > > > As I said before i don't have any issue with performance. (As you can > > see) > > > > Ori. > > > > > > > > > > > > On Thu, Mar 27, 2014 at 12:40 AM, Maurice Amsellem < > > maurice.amsellem@systar.com> wrote: > > > > > Hi Ori, I have installed the Hebrew version as you indicated and > > > it's displaying fine, with RTL layout. > > > > > > I have a few questions: the UI is very customized, so it's difficult > > > to tell what mobile component you are using, or if everything is > custom. > > > > > > - are you using spark Label to display custom text, or is it > > > StyleableTextField? > > > - are you using StyleableTextField in the custom list renderers ? > > > - what about the many buttons, which have a custom skin most of the > > > time (orange, green). Are you using spark label in the button > > > custom > > skins? > > > > > > Thanks for your answers. > > > > > > Maurice > > > > > > -----Message d'origine----- > > > De : Ori 007 [mailto:ori007@gmail.com] Envoy=E9 : mercredi 26 mars > > > 2014 > > > 11:44 =C0 : users@flex.apache.org Objet : Re: No Prompt in TextInput > > > when layoutDirection set to RTL (Mobile) > > > > > > Please try to install it in English, remove it, and install it again > > > in Hebrew. > > > > > > > > > On Wed, Mar 26, 2014 at 12:30 PM, Ori 007 wrote: > > > > > > > Yes. Exactly what you said! > > > > And it works great (except the TextInput in some cases) > > > > > > > > > > > > On Wed, Mar 26, 2014 at 12:15 PM, Maurice Amsellem < > > > > maurice.amsellem@systar.com> wrote: > > > > > > > >> Hi Ori, > > > >> > > > >> Thanks for the answer. I will download the app when at home and > > > >> try it in Hebrew. > > > >> > > > >> One question: > > > >> > > > >> From the screenshot in the app store (in English), the UI layout > > > >> is left to right. > > > >> > > > >> Do you change it to right-to-left when the language is Hebrew , > > > >> which means not only the text letters are from right to left, but > > > >> also the LAYOUT of the application is mirrored? > > > >> > > > >> Regards, > > > >> > > > >> Maurice > > > >> > > > >> -----Message d'origine----- > > > >> De : Ori 007 [mailto:ori007@gmail.com] Envoy=E9 : mercredi 26 mars > > > >> 2014 > > > >> 09:49 =C0 : users@flex.apache.org Objet : Re: No Prompt in > > > >> TextInput when layoutDirection set to RTL > > > >> (Mobile) > > > >> > > > >> Hi Maurice, > > > >> > > > >> How are you? > > > >> > > > >> Thanks for your reply. > > > >> > > > >> I develop using Flex for many years, including several mobile > > > >> applications development. > > > >> > > > >> Some of those applications were in Hebrew with RTL layoutDirection= . > > > >> > > > >> Apart than the issues I encountered in the TextInput component, I > > > >> didn't have development, performance or any other problem. > > > >> > > > >> I assume it's because TextInput is a Native Extension. > > > >> > > > >> > > > >> > > > >> Anyway, the fix you provided for the first bug I opened (about a > > > >> month > > > >> ago) would really help me with RTL TextInput components. > > > >> > > > >> As for the current issue, I can manage without a fix, although it > > > >> doesn't seem to be very complicated. > > > >> > > > >> > > > >> > > > >> You are invited to review the latest multilingual application I > > > >> developed using Flex. > > > >> > > > >> iOS Version (currently for iPad only) - > > > >> > > > >> > > > >> https://itunes.apple.com/il/app/prolog-digital-edition-cross/id71 > > > >> 89 > > > >> 85 > > > >> 854?mt=3D8 > > > >> > > > >> > > > >> > > > >> Desktop version - > > > >> > > > >> http://www.speakit.tv/en-US/Text-About > > > >> > > > >> > > > >> > > > >> Thanks, > > > >> > > > >> Ori > > > >> > > > >> > > > >> > > > >> > > > >> > > > >> On Sun, Mar 23, 2014 at 9:52 PM, Maurice Amsellem < > > > >> maurice.amsellem@systar.com> wrote: > > > >> > > > >> > Hi Ori, after investigating a little, it seems that RTL is not > > > >> > supported in Flex mobile apps: > > > >> > > > > >> > http://help.adobe.com/en_US/flex/mobileapps/WS19f279b149e7481c6 > > > >> > 98 > > > >> > e8 > > > >> > 571 > > > >> > 2b3011fe73-7fff.html#WS19f279b149e7481c7c94ce7c12b30152f48-7ffc > > > >> > Specs: > > > >> > http://sourceforge.net/adobe/flexsdk/wiki/Mobile%20Text%20Compo > > > >> > ne > > > >> > nt > > > >> > s > > > >> > > > > > >> > http://help.adobe.com/en_US/flex/using/WS02f7d8d4857b1677-165a0 > > > >> > 4e > > > >> > 11 > > > >> > 269 > > > >> > 51a2d98-7ffe.html > > > >> > > > > > >> > http://help.adobe.com/en_US/flex/using/WS02f7d8d4857b1677-165a0 > > > >> > 4e > > > >> > 11 > > > >> > 269 > > > >> > 51a2d98-7ffd.html > > > >> > > > > >> > This is because for performance reasons, mobile apps use > > > >> > TextField and subclasses, which do not support bidi, wherease > > FTE/TFL does. > > > >> > > > > >> > However, doing some more tests shows that RTL alphabets (Arabic > > > >> > or > > > >> > Hebrew) can actually be displayed, but RTL layout is not > supported. > > > >> > > > > >> > This is to say that it's not just a problem with TextInput > > > >> > prompt > > > text. > > > >> > It's the whole thing that is not working. > > > >> > > > > >> > Do you get the same behavior in your app? > > > >> > > > > >> > That being said, I think RTL support in mobile apps could be > > > >> > fixed, but it requires some work. > > > >> > > > > >> > You could open a "New feature" JIRA on that (Support for RTL > > > >> > layout in mobile app) and vote on it. > > > >> > > > > >> > Maurice > > > >> > > > > >> > -----Message d'origine----- > > > >> > De : Ori 007 [mailto:ori007@gmail.com] Envoy=E9 : vendredi 21 > > > >> > mars > > > >> > 2014 > > > >> > 22:02 =C0 : users@flex.apache.org Objet : Re: No Prompt in > > > >> > TextInput when layoutDirection set to RTL (Mobile) > > > >> > > > > >> > Jira: > > > >> > https://issues.apache.org/jira/browse/FLEX-34181 > > > >> > > > > >> > Thanks. > > > >> > > > > >> > > > > >> > On Fri, Mar 21, 2014 at 10:54 PM, Maurice Amsellem < > > > >> > maurice.amsellem@systar.com> wrote: > > > >> > > > > >> > > Ori, I have reproduced the issue. Could you please create a > > > >> > > JIRA ticket, as this is something new. > > > >> > > > > > >> > > Note that both ScrollingStageTextInputSkin and > > > >> > > StageTextInputSkin are impacted (same code) but TextInputSkin > > also has the issue. > > > >> > > > > > >> > > Maurice > > > >> > > > > > >> > > -----Message d'origine----- > > > >> > > De : Ori 007 [mailto:ori007@gmail.com] Envoy=E9 : vendredi 21 > > > >> > > mars > > > >> > > 2014 > > > >> > > 10:14 =C0 : users@flex.apache.org Objet : No Prompt in > > > >> > > TextInput when layoutDirection set to RTL (Mobile) > > > >> > > > > > >> > > Hi Maurice, > > > >> > > > > > >> > > How are you? > > > >> > > > > > >> > > I have a serious bug that I can not find a solution. > > > >> > > When layoutDirection set to RTL to Textinput the prompt text > > > >> > > does not appear. > > > >> > > > > > >> > > In LTR it's works fine. > > > >> > > > > > >> > > Do you have any advice or quick fix to the problem? > > > >> > > > > > >> > > > > > >> > > Code Example: > > > >> > > > > >> > > xmlns:fx=3D"http://ns.adobe.com/mxml/2009" > > > >> > > xmlns:s=3D"library://ns.adobe.com/flex/spark" > > > >> > > applicationDPI=3D"160"> > > >> > > layoutDirection=3D"ltr"/> > > >> > > layoutDirection=3D"rtl" top=3D"50"/> > > > >> > > > > > >> > > Screenshot: > > > >> > > http://screencast.com/t/HjNAd7PQaVG > > > >> > > > > > >> > > Regards, > > > >> > > Ori. > > > >> > > > > > >> > > > > >> > > > > > > > > > > > > > > --f46d043c06be60b09104f60bccbf--