Comments (5)
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.
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.
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.
Yeah, internal spacing requires using padding in each item now. What do you propose instead? gravity support or something?
from twoway-view.
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)
- Reduce Spacing between Tiles.
- about this issue #146, it still happen in 1.0.0-SNAPSHOT
- java.lang.IncompatibleClassChangeError: org.lucasr.twowayview.ClickItemTouchListener$ItemClickGestureDetector HOT 2
- SpannableGridLayoutManager doesn't wrapping items HOT 1
- TwoWayList - items count
- android.widget.RelativeLayout$LayoutParams cannot be cast to org.lucasr.twowayview.TwoWayView$LayoutParams HOT 2
- why does length of scrollbar always changed when i dragging the view??
- void org.lucasr.twowayview.widget.ItemEntries.setAdapterSize(int) HOT 1
- Unable to find setGapStrategy() method HOT 1
- Item always move HOT 2
- No more support for multichoice mode?
- 布局会消失 HOT 1
- How to use RecyclerView adapter
- How to disable click on item?
- When removing item from adapter I get IndexOutOfBounds HOT 1
- TwoWayView is not working in Fragment.
- Sections Support
- Grid view using gradle compile 'org.lucasr.twowayview:twowayview:0.1.4'
- StackOverFlow exception on Android 4.0.4
- W/View: requestLayout() improperly called by org.lucasr.twowayview.TwoWayView
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from twoway-view.