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.

STATE_HIDDEN not working

See original GitHub issue

STATE_HIDDEN renders the same view as STATE_COLLAPSED. `<CoordinatorLayout style={{flex: 1}}> <View style={{ flex: 1, backgroundColor: ‘transparent’ }}></View> <BottomSheetBehavior

        ref='bottomSheet'
        peekHeight={70}
        hideable={true}
        state={BottomSheetBehavior.STATE_HIDDEN}>
        <View style={{backgroundColor: '#4389f2'}}>
          <View style={{padding: 26}}>
            <Text>BottomSheetBehavior!</Text>
          </View>
          <View style={{height: 200, backgroundColor: '#fff'}} />
        </View>
      </BottomSheetBehavior>
      <FloatingActionButton autoAnchor ref="fab" />
    </CoordinatorLayout>`

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
cesardeazevedocommented, Dec 20, 2017

@mikeevstropov did you enabled hideable={true}?

0reactions
mikeevstropovcommented, Dec 20, 2017

@cesardeazevedo Im sorry. Its my mistake. Method works correctly.

Read more comments on GitHub >

github_iconTop Results From Across the Web

windowSoftInputMode set to stateHidden|adjustResize not ...
It wont be resized if you use theme with no title bar. Maybe this question can help you: Android How to adjust layout...
Read more >
windowSoftInputMode set to stateHidden|adjustResize not working ...
Android – windowSoftInputMode set to stateHidden|adjustResize not working in Android. androidandroid-softkeyboardview. I have the following layout
Read more >
Working with the Soft Keyboard | CodePath Android Cliffnotes
By default, the soft keyboard may not appear on the emulator. ... Visibility options include stateUnchanged , stateHidden , stateVisible and several others ......
Read more >
android:windowSoftInputMode="stateAlwaysHidden" does not ...
I am having the same problem on android (Motorola) devices. I want to hide the virtual keyboard and I have tried all the...
Read more >
[BUG] waitFor({ state: 'hidden' }) does not work if element ...
[BUG] waitFor({ state: 'hidden' }) does not work if element animates out of the viewport #13131. Closed. martindzejky opened this issue on Mar ......
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