Giter VIP home page Giter VIP logo

Comments (5)

dandar3 avatar dandar3 commented on September 28, 2024

See sample, it's using padding:
https://github.com/lucasr/twoway-view/tree/master/sample/src/main/res/layout

You might also want to add same amount of padding left and right to your TwoWayView itself, otherwise you'll have half the spacing on start/end - this is actually visible if you run the sample.

from twoway-view.

multiholle avatar multiholle commented on September 28, 2024

This works as a workaround. In my case I defined a background color which
overlaps the item if a padding is defined. A support by the TWV would be
the better solution.
Am 28.11.2013 02:37 schrieb "dandar3" [email protected]:

See sample, it's using padding:

https://github.com/lucasr/twoway-view/tree/master/sample/src/main/res/layout

You might also want to add same amount of padding left and right to your
TwoWayView itself, otherwise you'll have half the spacing on start/end -
this is actually visible if you run the sample.


Reply to this email directly or view it on GitHubhttps://github.com//issues/30#issuecomment-29433743
.

from twoway-view.

dandar3 avatar dandar3 commented on September 28, 2024

I agree in a way as I'm trying to use it myself for a horizontal scrolling list of images, with spacing and such. I don't know if @lucasr sees it that way though. I hit a similar thing myself and had to wrap my original item layout, which has its background, in an outer layout that defines the padding to space them out.

I've been also trying jess-anders/two-way-gridview library, that one behaves more like a GridView.

from twoway-view.

lucasr avatar lucasr commented on September 28, 2024

Yeah, internal spacing requires using padding in each item now. What do you propose instead? gravity support or something?

from twoway-view.

 avatar commented on September 28, 2024

hi, i tried adding padding to my views, but unfortunately that prevents a square from looking like a square. is there any other way this can be done ?? i need to add spacing, else it will come out as bug in my application. Also is there a way to know that the end has come? i am trying to scroll the view with the help of buttons.

Please help..
Thanks

from twoway-view.

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.