Comments (13)
Not yet. Sorry, I do not have the time to do it.
from materialsearchbar.
@AruLNadhaN
In menu resource file change showAsAction attribute to always like in example
e.g.
<menu xmlns:android="http://schemas.android.com/apk/res/android"> <item android:id="@+id/example" android:icon="@drawable/example" android:title="@string/example" android:showAsAction="always"/>
from materialsearchbar.
This is how my menu resource looks like. But still I can't view the icon ?
<item android:id="@+id/menu_shopcart" android:title="@string/action_cart" android:icon="@drawable/cart" app:showAsAction="always"/>
from materialsearchbar.
@AruLNadhaN you can try this post on stackoverflow to resolve your issue
http://stackoverflow.com/questions/18380085/menu-items-doesnt-show-up-on-the-actionbar
see if it works.
from materialsearchbar.
Thanks. But still it is not working :(
from materialsearchbar.
you can't change the popup menu icon in MaterialSearchBar. If you need an item with a custom icon, you can set the speechMode = true and set setOnSearchActionListener. then in onButtonClicked you can handle action. here is a small example:
@Override
public void onButtonClicked(int buttonCode) {
switch (buttonCode){
case MaterialSearchBar.BUTTON_NAVIGATION:
drawer.openDrawer(Gravity.LEFT);
break;
case MaterialSearchBar.BUTTON_SPEECH:
openVoiceRecognizer();
}
}
from materialsearchbar.
I got it! But I need to have a custom Icon near the Speech Icon ?
How can i achieve it ?
from materialsearchbar.
It is impossible in current version.
from materialsearchbar.
Can i atleast change the drawable of speech Icon ?
from materialsearchbar.
no, you can't. I will add this possibility soon.
from materialsearchbar.
Thanks. I'm waiting for this feature!
from materialsearchbar.
Is this issue is fixed @mancj @AruLNadhaN
from materialsearchbar.
How can I listen to menu clicks when I inflate it and it appears in search box with 3 dots.
Thanks
from materialsearchbar.
Related Issues (20)
- how can scroll suggestion list when it more than 10 item ?
- No field mCursorDrawableRes in class Landroid/widget/TextView HOT 8
- Search icon or return key will open google app HOT 4
- Nav Icon Change?
- Library issue HOT 3
- Missing image resource in the lib
- Any way to give corner radius to the Search Bar HOT 1
- SearchBar not showing HOT 1
- .
- onButtonClicked Never Called
- Solving on Menu Item click
- Failed in build
- Setting CustomSuggestionAdapter HOT 1
- Suggestion Text Color HOT 2
- Last item is cut off HOT 1
- Font Family
- Incompatible with Gradle 8.0
- Cannot be cast to java.lang.String with custom suggestions adapter HOT 1
- Could not find com.github.mancj:MaterialSearchBar:0.8.5. HOT 1
- Use with listmap
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from materialsearchbar.