开发者

sqlite and smiley android [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 10 years ago.

i have a new query to be solved. i was able to display selected smiley in edittext and when i submit it is displayed in Textview.

question 1: same in list view is it possible instead of textview

question 2: i need to display specialcharcter of the selected (smiley from gridview) and display that specialcharcter from sqlite DB.

My sqlite DB consist of 3 fields,

1._ID(Primary key) 2.specialcharcter Text ----------(like :), :() 3.URL Text (Image smiley).

when i select the particular smil开发者_运维技巧ey from gridview how can i display corresponding specialcharcter from sqlite DB. Please help me in this sissue.

Thanks in advance.

Regards, Raghav.


Ans1 : Yes It is. Refer API Demos List View. Find Listview with Icon and Button using ListView Adapter.

Ans2 : Rather than using Sqlite , You can achieve the same using Hashmap with (Id ,(SpclChar ,URL)). Put Image Buttons on Gridview. And OnClick you pass the Id to the hashmap. Try to avoid Sqlite DB , Until and unless you want to persist something.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜