NativeScript how change layout direction in scrollViewHorizontalScrollView doesn't scroll to left in RTL modeNativeScript ScrollView scrollToHorizontalOffset not workingHow to find/watch the dimensions of a view in a NativeScript layout?Disable ScrollView bounce NativeScriptNativescript tab layout approachNativescript GridLayout wrapped by ScrollViewSticky Header and Footer for ScrollView in NativeScript on a Modal Pagechange direction of nativescript sliderHow to position element at the bottom of Absolute Layout in NativeScript?Nativescript LayoutNativeScript ScrollView bug on Android with runtime version 5.0.0

How to handle (one's own) self-harm scars (on the arm), in a work environment?

Bb13b9 confusion

Traversing Oceania: A Cryptic Journey

Someone whose aspirations exceed abilities or means

How do free-speech protections in the United States apply in public to corporate misrepresentations?

What aircraft was used as Air Force One for the flight between Southampton and Shannon?

Wooden cooking layout

Minimum distance between two connectors in a high voltage PCB design

How to trick the reader into thinking they're following a redshirt instead of the protagonist?

Why didn't Voldemort recognize that Dumbledore was affected by his curse?

Longest bridge/tunnel that can be cycled over/through?

Is it safe to change the harddrive power feature so that it never turns off?

ed command: Delete from line 1 until the first blank line

Are there any important biographies of nobodies?

Finding value of expression with roots of a given polynomial.

Why am I getting a strange double quote (“) in Open Office instead of the ordinary one (")?

Is it a bad idea to to run 24 tap and shock lands in standard

Check if three arrays contains the same element

How does the Around command at zero work?

What is the color of artificial intelligence?

Are polynomials with the same roots identical?

Why did Sanhedrin deal with who has a share in Olam Habah?

Generate basis elements of the Steenrod algebra

Thread Pool C++ Implementation



NativeScript how change layout direction in scrollView


HorizontalScrollView doesn't scroll to left in RTL modeNativeScript ScrollView scrollToHorizontalOffset not workingHow to find/watch the dimensions of a view in a NativeScript layout?Disable ScrollView bounce NativeScriptNativescript tab layout approachNativescript GridLayout wrapped by ScrollViewSticky Header and Footer for ScrollView in NativeScript on a Modal Pagechange direction of nativescript sliderHow to position element at the bottom of Absolute Layout in NativeScript?Nativescript LayoutNativeScript ScrollView bug on Android with runtime version 5.0.0






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








1















I have this ScrollView:



<ScrollView orientation="horizontal" horizontalAlignment="center" android:layoutDirection="rtl">


I try change direction scrollView , but not work for me.



But exist private function isLayoutRtl in
tns-core-modules-widgets



private boolean isLayoutRtl() 
return (this.getLayoutDirection() == LAYOUT_DIRECTION_RTL);



I can change orientation horizontal ,But not change scroll rtl.
mor information visit link.



How change directoin RTL scroll in scroll View?



Tanks










share|improve this question






























    1















    I have this ScrollView:



    <ScrollView orientation="horizontal" horizontalAlignment="center" android:layoutDirection="rtl">


    I try change direction scrollView , but not work for me.



    But exist private function isLayoutRtl in
    tns-core-modules-widgets



    private boolean isLayoutRtl() 
    return (this.getLayoutDirection() == LAYOUT_DIRECTION_RTL);



    I can change orientation horizontal ,But not change scroll rtl.
    mor information visit link.



    How change directoin RTL scroll in scroll View?



    Tanks










    share|improve this question


























      1












      1








      1








      I have this ScrollView:



      <ScrollView orientation="horizontal" horizontalAlignment="center" android:layoutDirection="rtl">


      I try change direction scrollView , but not work for me.



      But exist private function isLayoutRtl in
      tns-core-modules-widgets



      private boolean isLayoutRtl() 
      return (this.getLayoutDirection() == LAYOUT_DIRECTION_RTL);



      I can change orientation horizontal ,But not change scroll rtl.
      mor information visit link.



      How change directoin RTL scroll in scroll View?



      Tanks










      share|improve this question
















      I have this ScrollView:



      <ScrollView orientation="horizontal" horizontalAlignment="center" android:layoutDirection="rtl">


      I try change direction scrollView , but not work for me.



      But exist private function isLayoutRtl in
      tns-core-modules-widgets



      private boolean isLayoutRtl() 
      return (this.getLayoutDirection() == LAYOUT_DIRECTION_RTL);



      I can change orientation horizontal ,But not change scroll rtl.
      mor information visit link.



      How change directoin RTL scroll in scroll View?



      Tanks







      nativescript






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited May 23 '17 at 10:30









      Community♦

      11




      11










      asked Feb 13 '17 at 22:46









      MJ VakiliMJ Vakili

      1,1411421




      1,1411421






















          2 Answers
          2






          active

          oldest

          votes


















          2














          The direction can be set by the orientation property. Is that indeed what you need? https://docs.nativescript.org/api-reference/classes/_ui_scroll_view_.scrollview.html#orientation






          share|improve this answer























          • very tanks.But not resolve problem.I update question. I would change scroll horizontal RTL.

            – MJ Vakili
            Feb 15 '17 at 5:49






          • 1





            Ah, thanks. Take a look at this repo: github.com/rkhayyat/SyrianForumFrance

            – Eddy Verbruggen
            Feb 15 '17 at 7:39


















          1














          I searched a lot and didn't find an official solution. But to keep things working, scroll to the end of the scrollView after loading it:



          onScrollViewLoaded()
          setTimeout(()=>
          let scrollView = this.$refs.scrollView.nativeView;
          scrollView.scrollToHorizontalOffset(scrollView.scrollableWidth, false)
          ,1);
          ,





          share|improve this answer

























            Your Answer






            StackExchange.ifUsing("editor", function ()
            StackExchange.using("externalEditor", function ()
            StackExchange.using("snippets", function ()
            StackExchange.snippets.init();
            );
            );
            , "code-snippets");

            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "1"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f42214941%2fnativescript-how-change-layout-direction-in-scrollview%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            2














            The direction can be set by the orientation property. Is that indeed what you need? https://docs.nativescript.org/api-reference/classes/_ui_scroll_view_.scrollview.html#orientation






            share|improve this answer























            • very tanks.But not resolve problem.I update question. I would change scroll horizontal RTL.

              – MJ Vakili
              Feb 15 '17 at 5:49






            • 1





              Ah, thanks. Take a look at this repo: github.com/rkhayyat/SyrianForumFrance

              – Eddy Verbruggen
              Feb 15 '17 at 7:39















            2














            The direction can be set by the orientation property. Is that indeed what you need? https://docs.nativescript.org/api-reference/classes/_ui_scroll_view_.scrollview.html#orientation






            share|improve this answer























            • very tanks.But not resolve problem.I update question. I would change scroll horizontal RTL.

              – MJ Vakili
              Feb 15 '17 at 5:49






            • 1





              Ah, thanks. Take a look at this repo: github.com/rkhayyat/SyrianForumFrance

              – Eddy Verbruggen
              Feb 15 '17 at 7:39













            2












            2








            2







            The direction can be set by the orientation property. Is that indeed what you need? https://docs.nativescript.org/api-reference/classes/_ui_scroll_view_.scrollview.html#orientation






            share|improve this answer













            The direction can be set by the orientation property. Is that indeed what you need? https://docs.nativescript.org/api-reference/classes/_ui_scroll_view_.scrollview.html#orientation







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Feb 14 '17 at 9:47









            Eddy VerbruggenEddy Verbruggen

            3,2471923




            3,2471923












            • very tanks.But not resolve problem.I update question. I would change scroll horizontal RTL.

              – MJ Vakili
              Feb 15 '17 at 5:49






            • 1





              Ah, thanks. Take a look at this repo: github.com/rkhayyat/SyrianForumFrance

              – Eddy Verbruggen
              Feb 15 '17 at 7:39

















            • very tanks.But not resolve problem.I update question. I would change scroll horizontal RTL.

              – MJ Vakili
              Feb 15 '17 at 5:49






            • 1





              Ah, thanks. Take a look at this repo: github.com/rkhayyat/SyrianForumFrance

              – Eddy Verbruggen
              Feb 15 '17 at 7:39
















            very tanks.But not resolve problem.I update question. I would change scroll horizontal RTL.

            – MJ Vakili
            Feb 15 '17 at 5:49





            very tanks.But not resolve problem.I update question. I would change scroll horizontal RTL.

            – MJ Vakili
            Feb 15 '17 at 5:49




            1




            1





            Ah, thanks. Take a look at this repo: github.com/rkhayyat/SyrianForumFrance

            – Eddy Verbruggen
            Feb 15 '17 at 7:39





            Ah, thanks. Take a look at this repo: github.com/rkhayyat/SyrianForumFrance

            – Eddy Verbruggen
            Feb 15 '17 at 7:39













            1














            I searched a lot and didn't find an official solution. But to keep things working, scroll to the end of the scrollView after loading it:



            onScrollViewLoaded()
            setTimeout(()=>
            let scrollView = this.$refs.scrollView.nativeView;
            scrollView.scrollToHorizontalOffset(scrollView.scrollableWidth, false)
            ,1);
            ,





            share|improve this answer





























              1














              I searched a lot and didn't find an official solution. But to keep things working, scroll to the end of the scrollView after loading it:



              onScrollViewLoaded()
              setTimeout(()=>
              let scrollView = this.$refs.scrollView.nativeView;
              scrollView.scrollToHorizontalOffset(scrollView.scrollableWidth, false)
              ,1);
              ,





              share|improve this answer



























                1












                1








                1







                I searched a lot and didn't find an official solution. But to keep things working, scroll to the end of the scrollView after loading it:



                onScrollViewLoaded()
                setTimeout(()=>
                let scrollView = this.$refs.scrollView.nativeView;
                scrollView.scrollToHorizontalOffset(scrollView.scrollableWidth, false)
                ,1);
                ,





                share|improve this answer















                I searched a lot and didn't find an official solution. But to keep things working, scroll to the end of the scrollView after loading it:



                onScrollViewLoaded()
                setTimeout(()=>
                let scrollView = this.$refs.scrollView.nativeView;
                scrollView.scrollToHorizontalOffset(scrollView.scrollableWidth, false)
                ,1);
                ,






                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Mar 24 at 19:11









                double-beep

                3,12451632




                3,12451632










                answered Mar 24 at 18:58









                AliAli

                112




                112



























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid …


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f42214941%2fnativescript-how-change-layout-direction-in-scrollview%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    How to preserve electronics (computers, tablets and phones) for hundreds of years Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) The network's official Twitter account is up and running again. What content…How might modern humans leave a message for 50,000 years?How would an aquatic race develop computers?How do we make computers care for human life?Keeping supplies for 1000 yearsWhat will cell phones become in 100 years?What body armor protects against a laser?Could a society attain 1800s technology if limited to using copper and bronze?Electricity power (magic) and electronicsScavenging metal resources in post-apocalypse after 100 yearsWhy would precursors create devices that can survive and still work after hundreds of years?

                    155 수학 과학 기타 둘러보기 메뉴eh추가해eh문서를 완성해

                    Convert JSON to MapSimplest way to convert a string representing JSON array into Java array List of key value pairsHow to take String JSON values into HashMapConvert a JSON String to a HashMapCreating BSON object from JSON stringJSONObject - How to get a value ?Better Map ConstructorReading JSON from Url javaUpdate columns if input values are not null otherwise ignore and keep the existing values of column in databaseHow to store object represented as Json string into Couchbase Lite?Go JSON into MapHow do I efficiently iterate over each entry in a Java Map?Sort a Map<Key, Value> by valuesHow to round a number to n decimal places in JavaCan comments be used in JSON?How do I read / convert an InputStream into a String in Java?How can I pretty-print JSON in a shell script?What is the correct JSON content type?How can I deserialize JSON to a simple Dictionary<string,string> in ASP.NET?Why does Google prepend while(1); to their JSON responses?Parse JSON in JavaScript?