android - Scroll ScrollView to item of nested ListView -



android - Scroll ScrollView to item of nested ListView -

i working on receipt-app. 1 activity manages different ingredients in linearlayout:

some text starter listview of starter ingredients some text main dish listview of main dish ingredients ...

the user can add together number of ingredients different lists. number of list items , size of finish view/activity not limited. because of finish linearlayout nested in scrollview.

of course of study having vertical scrolling listview within vertical scrolling scrollview not idea. using custom listview sub-class overrides onmeasure(...) , expends size of listview cover items. customlistview not scroll , not conflict scrollview. works without problem.

assume scrollview scrolled top , user adds new ingredient placed in middle of main dish list. list of screen.

how can scroll scrollview show added ingredient list item?

of course of study know scrollby(x, y) , scrollto(x, y) methodes scrollview provides. how necessary values y (scolling in x direction not necessary)?

i need way coordinates of view of list item , translate them coordinates within scrollview. how view of list item in first place?

android user-interface android-listview android-scrollview

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -