I am working on a photo collage app in which i have used custom view for rotating the image and zooming. But I am stuck at one thing. I have implemented below type of layouts successfully.
But I am not getting an idea for making below type of collage.
please help me ASAP.
One thing I could think of, if I were you, I'd look first at some rotation animations, at 45°, may be you should start from that, because that's not an easy layout, sorry if I'm mistaking
Related
I am trying to make an animation with a layout which contains a background and some text (TextViews) inside it. The animation should make the whole layout crack in the middle and then move slightly like a paper tearing. So not along a straight line but a random zig-zag pattern along the middle of the layout from top to bottom.
I've been trying to find something like this so can I get an idea how to do this but have not been able to so far. Does anyone know how something like this can be done on Android?
TIA
You can try Brokenview Or ExplosionField.
Brokenview(https://github.com/zhanyongsheng/BrokenView).
ExplosionField(https://github.com/tyrantgit/ExplosionField).
Have you tried with this example? In the blog you have an explanation of how to achieve this behavior.
The idea behind is basically:
Save your Activity's screen as a bitmap.
Split it into two parts.
Animate the bitmaps outwards.
Hi i need to create branch type layout which should get rotate and also contains image in it. I surfed in net but I couldn't get such type of resource to do. Please guide me how to proceed..
I have attached screenshot.
Since I have less reputation, I couldn't attach screenshot here.
How to create such type of layout with centered one followed by branches which rotates and also clickable to move to next activity.
Please help me to solve this.
Thanks.
I've designed some buttons with photoshop but now it came in my mind the problem on how make them work.
Basically I've this image
I've thought about two solutions: the first one is to place them in a RelativeLayout and place them with "lot" of padding/margin work, the second solution is to cut them vertically and attach them one by one, like this:
In the second solution I cannot probably use selector, not on all the button at least, not a big issue btw. With the first one I'm a bit worried about scaling on different screen sizes.
It will be a problem? Which solution would you suggest?
Thanks in advance.
Its not a must that your clickable area should be the same shape as your image shape..
Change the Image onclick...
If your options are open to use an image view instead of button, Then the whole image will be clickable.
I searched all over to find this question similar to yours.. Hope it helps.
I have a layout which consists of a listview and a fragment. Listview lists all channels and fragment is used to play video channels. So far so good. All that works. But problem is i want the video to be full screen instead of occupying only fragment and still showing listview on left. I am not looking for code, but i want any clues on how to do it.
One way would be to get hold of cureent activity's view(listview and fragment) and swap it with a new fragment and put a surfaceview on that ? Just a guess, any insight or clue is much appreciated. I'd try what i think by tomorrow morning, till then if i'm lucky ,i'll have some clues here ;-)
Oh and last but not least, i am using surfaceview not a videoview
I'm not sure if this is what you are looking for, but I have a similar app using Fragments where the user can optionally "hide" the side ListView so that a photo takes up nearly the entire screen.
I ended up following this HoneycombGallery example in the Android SDK Samples which hides a "side view" via animation of the side view's width to a target width of 0 so that the photo can take up as much screen space as possible :
http://developer.android.com/resources/samples/HoneycombGallery/index.html
Not sure if you will run into any issues with SurfaceView, but this might be useful.
ok so here I have a difficult one. apparently no1 does know a thing about this issue but I did find some app implementing the behaviour so hopefully...
I'll keep this short as I am sure if you stumbled upon it too, then you'll recognize the issue straight aways.
I have a horizontal Gallery with SrollViews in it. The 2 onTouchEvents (the one of the gallery and the one of the scrollview being displaied) collide and you need to take a decision about who to dispatch the event to.
anyone!?
please if u have no idea what I am talking about please let the http alone ... it's already busy enough ;)
I have a horizontal Gallery with
SrollViews in it.
That is unlikely to work, for the reasons you discovered. Most likely, you will need to replace one or the other. For example, you could use a ViewSwitcher or ViewFlipper instead of a Gallery. I have also heard that ScrollView and HoriztonalScrollView actually work OK together, though I have not tried it.