Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to create an search box and search an query

 
deepika deepi
Ranch Hand
Posts: 199
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi ,

i have an application that displays the results for both English and Tamil. i want to create an search application for this data such that the user i able to give an query.



can any one help me?
 
Swastik Dey
Rancher
Posts: 1603
5
Android Java Java ME
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Let me guess what your exact requirement is. You have listview that displays the data in tamil font, right? You have an edittext where the user a text and that is in tamil, and the searched result is displayed in text view, right?
 
deepika deepi
Ranch Hand
Posts: 199
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ya exactly yar
 
thomas brian
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
use this coding :


HTML source code: <form method="get" action="http://www.mysite.com/search.php">
<table cellpadding="0px" cellspacing="0px">
<tr>
<td style="border-style:solid;border-color:#CCCCCC;border-width:1px;">
<input type="text" name="zoom_query" style="width:100px; border:0px solid; height:17px; padding:0px 3px; position:relative;">
</td>
<td style="border-style:solid;border-color:#CCCCCC;border-width:0px;">
<input type="submit" value="" style="border-style: none; background: url('searchbutton2.gif') no-repeat; width: 24px; height: 22px;">
</td>
</tr>
</table>
</form>
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thomas, is your response actually for this question? It seems out of place, there isn't any html in the OP's code.

Also, please use the CODE tags when posting any type of code so that the indentation remains with the code and we can read it.

Thanks

Mark
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd also like to point out that that html has styling in it and also using a table, when CSS should be used for both.

Mark
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Instead of implementing your own search solution, I think it's much better to hook into Android's built-in search framework. If you organize your content as a ContentProvider, and declare it to be searchable in the manifest, then you can use the system-wide search box to search for your content.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic