开发者

sqlite and smiley android [closed]

开发者 https://www.devze.com 2023-04-04 22:09 出处:网络
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari
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

精彩评论

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