Giter VIP home page Giter VIP logo

Comments (6)

bradmartin avatar bradmartin commented on May 27, 2024

This might be an issue with your layout, can you paste the snippet? If that's not it then something has broken recently, not necessarily the plugin source but core modules, android lib, etc. Will know more if I can see the layout you're using.

from nativescript-pulltorefresh.

JoelAH avatar JoelAH commented on May 27, 2024

This is the layout I use. It is inside a TabViewItem:

<GridLayout  rows="auto,*" class="page-content" loaded="onLoaded">
        <ListView row="1" class="listview list-top" items="{{items}}">
            <ListView.itemTemplate>
                <GridLayout>
                    <Label col="0" style="margin-right:98%;background-color:green;width:2%;" class="{{progress}}" text=" "  />
                    <Label col="1" class="time" text="{{time}}"/>
                    <StackLayout col="2">
                        <Label class="fn" text="{{fname}}"/>
                        <Label class="ln" text="{{lname}}"/>
                    </StackLayout>
                    <StackLayout col="3">
                        <Label  class="phone" text="{{phone}}"/>
                    </StackLayout>
                </GridLayout>
            </ListView.itemTemplate>
        </ListView>
</GridLayout>
</PullRefresh:PullToRefresh> ```

from nativescript-pulltorefresh.

JoelAH avatar JoelAH commented on May 27, 2024

`If I put the PullRefresh inside the top GridLayout, the screen will be blank

from nativescript-pulltorefresh.

JoelAH avatar JoelAH commented on May 27, 2024

Any word on this?

from nativescript-pulltorefresh.

JoelAH avatar JoelAH commented on May 27, 2024

Any word?

from nativescript-pulltorefresh.

bradmartin avatar bradmartin commented on May 27, 2024

I think you need to put the PullToRefresh in your grid, the reason you say screen will be blank is likely that you aren't assigning it a row in the grid and/or you don't have height/width for the component to know how to fill the parent. On Android this isn't as big of an issue as it is on iOS where iOS layouts don't automatically fill their parent layouts by design.

I have updated the demo app today and it works fine, so the issue is your layout. If you need any further help, the slack channel or NS forums seem most appropriate right now. Thanks 😄

from nativescript-pulltorefresh.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.