开发者

Android add extra items to spinner apart from database column

开发者 https://www.devze.com 2023-03-13 17:41 出处:网络
I am loading elements 开发者_StackOverflowto spinner from the database table column. But I would like to add some additional elements also to this spinner. Is there a way to do this?

I am loading elements 开发者_StackOverflowto spinner from the database table column. But I would like to add some additional elements also to this spinner. Is there a way to do this?

Rgds, Sapan


You could use a MatrixCursor to add your own data, and use a MergeCursor to merge the cursor coming from the database and your matrix cursor.

Regards, Stéphane

0

精彩评论

暂无评论...
验证码 换一张
取 消