Increase coloumn width of android tablelayout with gesture -
i want increase width of android table layout finger touch movement. tried touchlistener , gesture. did not getting exact result. please share idea.
you can using gesturedetector.simpleongesturelistener. here can gesture related information follows :- http://developer.android.com/reference/android/view/gesturedetector.simpleongesturelistener.html
here methods follows:-
public boolean onscroll (motionevent e1, motionevent e2, float distancex, float distancey) inside method need add distancex width of coloumn view.
like textview_1.setwidth(textview_1.getwidth()+integer.parseint(distancex)); hope clue here.
you can check link reference example of gesture detector
http://www.androidsnippets.com/gesturedetector-and-gesturedetectorongesturelistener
Comments
Post a Comment