Reputation: 3627
I've just got designs for android app and one thing confuses me. How to achieve that kind of layout (this is simplified version)?
I mean that book-alike borders that simulate sheets of paper in very simple way. I've tried layer list to achieve that but it seems to not working. Also that "book cover" will be gradient or image so it should be flexible somehow. What would you recommend for that kind of layout (maybe 9-patch)? Thanks in advance!
Upvotes: 0
Views: 93
Reputation: 64
May be viewflipper can be a solution..
refer Page Curl
explanation: as asked by sanjaya
Simple ViewAnimator that will animate between two or more views that have been added to it. Only one child is shown at a time. If requested, can automatically flip between each child at a regular interval
link: ViewFlipper
Upvotes: 0
Reputation: 5551
9-patch would work fine. Just create one in photoshop, be clever about where you place the black squares. Then, add that drawable as a background resource to your view.
Upvotes: 2