Android add extra items to spinner apart from database column
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
精彩评论