How to I turn an Android device navigation bar color to white without the images still being white - android-layout

This is an image of the results I get when changing the navigation bar color using Window w = this.getWindow();w.setNavigationBarColor(Color.parseColor(0xFFFFFFFF));
https://i.stack.imgur.com/CYpgg.png

From version 1.5.0 of Core library it is pretty simple to change navigation icons color to dark using this code in your activity:
WindowInsetsControllerCompat(window, window.decorView).isAppearanceLightNavigationBars = true
But be aware that dark navigation icons are supported only from Android 8.0 (API level 26). On lower OS versions you should keep navigation bar color darker, to keep navigation icons visible.

Related

Changing top toolbar color in pop os theme

I want to change the top toolbar color of theme app/window border to #262922. My os is last ver(21/11/2022) of Pop OS.
I mean the border with "VScode" in it (the below picture)
screenshot
I search through the internet but solutions were outdated

How to change preview color of the drawable icons in Android Studio depending on theme color?

All vector icons in Android are white by default (generated by Google Fonts or Vector Assets), but have a tint set to ?attr/colorControlNormal. When we look at asset previews, Android Studio doesn't render this tint, it just uses the base color. In the Dark theme it looks fine, but I'm using a Light theme and the icons are indistinguishable on a light background. How can I change the color of this background in Android Studio without resorting to changing the color in the icons themselves?

How do I change the color of the navigation bar icons? (Android studio)

To avoid confusion as to what the navigationbaractually is, here's a
As you can see, I've added a new color instead of the standard black color using:
<item name="android:navigationBarColor">#color/colorBackground</item>
But the icons are barely visible now, so I would like to change them into being black, or at least darker. I have searched SO and the webb but came up empty handed. Any ideas?
You cannot change the color of the buttons yourself.
However you can try to set the navigationbarlight to true. It should be noted that this is only available from API level 27.
windowLightNavigationBar
added in API level 27
int windowLightNavigationBar
If set, the navigation bar will be drawn such that it is compatible
with a light navigation bar background.
For this to take effect, the window must be drawing the system bar
backgrounds with windowDrawsSystemBarBackgrounds and the navigation
bar must not have been requested to be translucent with
windowTranslucentNavigation. Corresponds to setting
SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR on the decor view.
May be a boolean value, such as "true" or "false".
source

Xcode 6 search bar tint clear color becomes black?

I am using the Xcode 6 GM. Adding a search bar with default settings like this
Then i changed the bar tint to "Clear Color" in the attributes inspector, then it becomes this
Back to Xcode 5.1, The same bar tint color change looks more intuitive as the clear color means seeing through.
Is this some kind of bug or an expected changes by the new Xcode?
Please Try it by change UISearchbar property Search style from default to Minimal.

Splash screen in Windows Store apps

I am developing Windows Store Apps for Tablet using VS2012. Right now i am creating splash screen for my application. My requirement is the splash screen should be display full screen in my app.
but it is working as Center of the screen. Can any one help regarding this...
The answer is that there is no way to create an official splash screen that is full-screen. A splash screen has to use a 620 x 300 pixel image, where it is a normal splash screen or an extended splash screen. However, you can match the background color around the splash screen to the color of the splash screen image (using the instructions you already found), which makes it appear like a full-screen image, even though much of it is just color.
AFAIK a splash screen has to be centered, but maybe a valid work around would be to create a start page (regular xaml) and have this one displayed as initial screen as soon as the splash screen is gone.
But this would mean that your startup time has to be quite fast.
Maybe it's an option for you.
Open the "package.appxmanifest" manifest file.
The manifest should automatically open in the Microsoft Visual Studio Express 2012 for Windows 8 Manifest Designer.
Open the Application UI tab and scroll down to the Splash Screen
section. If you are still using project defaults, you should see the
"images\splashscreen.png" path in the Splash Screen field. If you
open "package.appxmanifest" in a text editor, you should see
SplashScreen element as a child of the VisualElements element. For
example, the default splash screen markup in the manifest file looks
like this:
XML
{ <SplashScreen Image="images\splashscreen.png" /> }
Change the splash screen image by using the Browse... button and
confirm that the image was added to your Visual Studio project.
Important The splash screen image you choose must be 620 x 300
pixels using a 1x scaling factor.
In the Background Color field of the Splash Screen section, set the
background color to display with your splash screen image. You can
enter either the name of a color or '#' and the hex value of a color.
Setting a background color for your splash screen is optional. If you
do not specify a color, the splash screen background color defaults
to the Tile background color (the color in the Background Color field
of the Tile section in the Application UI tab). If you open
package.appxmanifest in a text editor, the Tile background color is
specified via the BackgroundColor attribute of the VisualElements
element.
my workaround is make a 620x300 splash .png image with alpha background, so its not a full 620x300 image. the image itself is just a 300x300 logo. my suggestion is just make a small center image (your app logo or something else) and make it blend to the background (gradient or alpha)

Resources