2011-12-06 6 views
0

ExpandableListViewには2つのメソッドがありますか?ExpandableListViewの子とグループのIDはいつ使用しますか?

getSelectedId() 
    Gets the ID of the currently selected group or child. 
getSelectedPosition() 
    Gets the position of the currently selected group or child (along with its type). 

常にgetSelectedPositionを使用します。私は興味がありますgetSeletedIdを使うべきときは? IDを使って何ができますか?

ありがとうございました!

+0

私は似たようなことをしています。http://stackoverflow.com/questions/10611927/simplecursortreeadapter-and-cursorloader – toobsco42

答えて

0

CursorTreeAdapter(データベースに基づくアダプタ)を使用する場合、getSelectedIdはデータベース内のレコードのIDを返します。

関連する問題