Android ScrollView QuickAction effect - android

I need some help, i want the android scrollview animation effect....
Basically when the someone click on the textview of linearlayout in scrollview another horizontal view should come in.
Here is the pic....

What you could do is setup ontouch() on the textview. once you touch it then you would make the layout visible with setVisiblity(). you could even add in a animation to make it more professional.
You would probably get a bug if you didnt make every other view GONE, when you touch a new textview.
I like this idea and I might work around with it myself!
Good Luck

Related

Behaviour of LayoutTransition.CHANGING in ExpandableListView: animation is ok; but view is not clickable after the first click

I'm new to Android, and decided to practise with ExpandableListView.
The application is very basic ExpandableListView: taken from here:
https://startandroid.ru/ru/uroki/vse-uroki-spiskom/86-urok-45-spisok-derevo-expandablelistview.html
I try to improve the animation of expanding and right after
elvMain.setAdapter(adapter); (the last line of code) I applied the following code:
LayoutTransition layoutTransition = elvMain.getLayoutTransition();
layoutTransition.enableTransitionType(LayoutTransition.CHANGING);
The parent expands very nice and smooth, but after this first click, the whole view is not clickable, but... if I swipe just a bit on the buttons (in any direction), the parents and children respond to the swipe: the parents expand ok, or they become clickable after this swipe, but, again, only once.
What may hinder them from being clickable, and how this couold be worked around? Please share your experience or expertise. Thank you so much!
I have thoroughly investigated the problem, and tried a lot of things, but could not figure it out...

Drag views freely in ScrollView android

I have been looking for a solution for this for a while now, What I'm trying to do is an application with drag animation like Tinder, the difference is that I have 3 images at once, one below the other and all of them are in ScrollView. My problem is that when I'm touching to move it up and down the ScrollView takes place, I can move it freely left and right but if I move it up/down even by one pixel I lose it. I've tried to make custom ScrollView that disables the touch of it when I touch the other View's with no luck :(, I thought maybe try and make the views that I want to drag to be at the top of the views with the Z-index and I couldn't find anything about it. I saw some answers like the dispatchTouchEvent and intercepTouch or something like this but I didnt understant how to work with it.
Sorry for my English, Thank you!
Found the answer, I used getParent of the view until I get to the scrollview as parent, and used requestDisallowInterceptTouchEvent(true) that solved it!

Android layout then scroll programmatically not working

In my android app, I first programmatically layout a bunch of textViews, in a layout view, then I immediately programmaticallly scroll to a specific textView. Scrolling is not working. I suspect it is because Android has not finished computing the location of things. Scrolling works if I wait between layout and scrolling. I spent the whole day finding a solution. Please help. Thanks.
Default textview can't scroll.
If you want scroolable textview you should use scrollview then add in scrollView,TextView.
Don't add in layout textView. You must add ScrollView.

Trouble in views on android with onclick at RelativeLayouts

i'm having the next problem.
I have two layouts, one behind the other. When I click on the first view the "click" pass trough the view and it arrives at the second one. How can i stop the onclick only for the first view and enable it when i want at the second view?
Thanks in advance.
EDIT
A image with my problem
2EDIT
Why am i doing this? Because i put im my app a menu like facebook. So i have the menu in the red view and i animate the green to the right to see the complete menu. See http://venturebeat.com/2011/12/07/facebook-for-android-upgraded-with-better-navigation-faster-photo-views/. Seems that the solutions is with set the view clickable to false.
It's not clear what and how do you want to achieve, but it doesn't seem to be a good idea to have RelativeLayouts on top of each other. For this you could use a FrameLayout, or if your layout is a bit more complicated, you could play with setting the views unclickable.
If this doesn't help you, please post some code.
EDIT
It's still not too clear why do you want to achieve this, but you can set the second view unclickable, whenever you want.

How can implement infinite HorizontalScrollView in Android

I used buttons in HorizontalScrollView. normally when scroll right, after the last
button I have to scroll left. But I want to know when scroll right
after the last button it should show the first button. not want to
scroll left.
just as circle.
thanks
I don't know how to do that trick with horizontalScrollView, i thought that it's impossible, but i know one widget, that maybe can help you
http://code.google.com/p/android-wheel/
unfortunatly, it's only vertical, and you can't put buttons into it. I tried to make it horizontal, but failed. Maybe, if you will need, you'll get more luck

Categories

Resources