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

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -