Comments (7)
Its an or clause. It checks whether IconColorFilter is enabled or the centreButton is selectable.
What is your use case for this behaviour?
from space-navigation-view.
Hi @Kogoro, thanks for the reply. I am using the centre button as my main app screen. This means the centre button should be selectable with none of the other buttons selected. However, I would also like to disable color filtering because it interferes with other images in my app. Currently, setting the centre button as selectable forces the user to use a color filter as setting color filter to false has no effect.
from space-navigation-view.
But should you not provide some feedback when clicking the centrebutton? I mean we could change it to an And that should solve this problem. Then the color would not change to white in default when selected. I try to do this in the next days when I'm free.
from space-navigation-view.
Hmm, that is an interesting problem. Do you mean that there will be no ripple effect if a custom icon is used?
from space-navigation-view.
In the actual implementation, the icon will get an inactive color. The reason is that the icon should indicate the active page. The inactive color can be set with inactive_centre_button_icon_color, the active color with active_centre_button_icon_color.
When you disable the IconColorFilter and we change the code to an And, the icon will have the standard icon color defined by the image at the first start. After a selection of the centreButton it is normal again when isSelectable=true.
Hope that clears your question. ;)
from space-navigation-view.
Issued #48 fixes this. Thanks @Kogoro for answering my questions. Closing!
from space-navigation-view.
@searchy2 This only affects the color which is set at the beginning. It will not change the behavior between iconcolorfilter and centrebuttonselectable.
from space-navigation-view.
Related Issues (20)
- You can add shadows
- get Current item HOT 1
- How to show badge in centre button HOT 1
- setSelectedItem not available HOT 1
- How to create an activity by clicking on the bottom navigation button HOT 3
- how to changeCurrentItem(int tabIndexToSelect) ?
- How to increase size of center button icon. HOT 1
- Can't get space navigation border without activity's background color in a fragment. HOT 1
- How to remove redundant white space?
- Inactivity
- Icon and text should be possible to use it in two horizontal, vertical positions HOT 1
- Space navogation view
- Make icon of center item bigger than the rest
- Unable to find library on github anymore HOT 1
- Crashing on some devices after switching to Android Bundle HOT 1
- How to implementing Viewpager with this tablayout?
- Center item changes icon color on rotation
- setCentreButtonColor() does nothing and changeCenterButtonIcon() resets icon filter to black HOT 3
- app:centre_part_linear not found.
- Badgede display misplacement
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 space-navigation-view.