question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Android: Picker's dropdown arrow disappears when backgroundColor is set

See original GitHub issue

The right-most dropdown arrow is invisible for picker rendered with the code below

<Picker
  mode="dropdown"
  style={{backgroundColor: 'beige'}}
  selectedValue={this.state.language}
  onValueChange={(lang) => this.setState({language: lang})}>
  <Picker.Item label="Java" value="java" />
  <Picker.Item label="JavaScript" value="js" />
</Picker>

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:14
  • Comments:18 (1 by maintainers)

github_iconTop GitHub Comments

27reactions
nrathicommented, Apr 13, 2017

If you wrap the picker in a View with a background color, it works fine:

<View style={{backgroundColor: '#FFF'}}>
  <Picker ... />
</View>
17reactions
EvanSayscommented, Mar 28, 2018

Here’s a way to change the dropdown icon/carrot color @manojbhardwaj @CristianeMayara,

In styles.xml…

<resources>
    <!-- Base application theme. -->
    <style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
        <!-- Customize your theme here. -->
         <item name="android:colorControlNormal">#FFFFFF</item>
    </style>
</resources>
Read more comments on GitHub >

github_iconTop Results From Across the Web

Android: Down arrow disappears after setting spinner ...
I checked your code with the help of uiautomator and the spinner dropdown arrow does not show up with the background set.
Read more >
Spinner arrow disappears | B4X Programming Forum
When spinner background color is changed,the spinner arrow disappears. Is there any workaround for this?
Read more >
Apply and adjust stroke properties – Figma Help Center
Strokes are a collection of properties you can apply to layers in design files. ... Use the color picker to select a paint...
Read more >
AutoCompleteTextView - Android Developers
android :dropDownAnchor, View to anchor the auto-complete dropdown to. ... android:autoText, If set, specifies that this TextView has a textual input method ...
Read more >
focus-visible - CSS: Cascading Style Sheets - MDN Web Docs
It may not be obvious as to why the focus indicator is appearing and disappearing if a person is using mixed forms of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found