G12
Senior Member
- Aug 31, 2012
- 156
- 51
Naweka search function katika android application
Assume nina MainActivity na SearchableActivity
Searchable.xml configuration katika app manifest file ikae kwenye activity ipi kati ya hizo mbili?
Nimesoma haya maelezo hapa, chini naona yanakinzana kidogo.
1. HAPA
...
Because the OtherActivity now includes a <meta-data> element to declare which searchable activity to use for searches, the activity has enabled the search dialog. While the user is in this activity, theonSearchRequested() method activates the search dialog. When the user executes the search, the system starts SearchableActivity and delivers it the ACTION_SEARCH intent.
2. HAPA
...In your application's manifest file, declare a <meta-data> element that points to theres/xml/searchable.xml file, so that your application knows where to find it. Declare the element in an<activity> that you want to display the SearchView in:
Pamoja
Assume nina MainActivity na SearchableActivity
Searchable.xml configuration katika app manifest file ikae kwenye activity ipi kati ya hizo mbili?
Nimesoma haya maelezo hapa, chini naona yanakinzana kidogo.
1. HAPA
...
Because the OtherActivity now includes a <meta-data> element to declare which searchable activity to use for searches, the activity has enabled the search dialog. While the user is in this activity, theonSearchRequested() method activates the search dialog. When the user executes the search, the system starts SearchableActivity and delivers it the ACTION_SEARCH intent.
2. HAPA
...In your application's manifest file, declare a <meta-data> element that points to theres/xml/searchable.xml file, so that your application knows where to find it. Declare the element in an<activity> that you want to display the SearchView in:
Pamoja