Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import android.view.View
import android.view.ViewGroup
import androidx.appcompat.widget.ActionMenuView
import androidx.appcompat.widget.Toolbar
import com.reactnativenavigation.R
import com.reactnativenavigation.utils.ObjectUtils
import com.reactnativenavigation.utils.ViewUtils
import com.reactnativenavigation.viewcontrollers.stack.topbar.button.ButtonController
Expand All @@ -21,6 +22,7 @@ open class ButtonBar internal constructor(context: Context) : Toolbar(context) {
init {
super.setContentInsetsAbsolute(0, 0)
this.contentInsetStartWithNavigation = 0
setPopupTheme(R.style.TopBarOverflowPopup)
}

override fun onViewAdded(child: View) {
Expand Down
2 changes: 2 additions & 0 deletions android/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
<item name="elevation">0dp</item>
</style>

<style name="TopBarOverflowPopup" parent="ThemeOverlay.AppCompat.Light" />

<!--The following is a workaround needed to run unit tests in command line-->
<style name="Widget.Support.CoordinatorLayout" parent="android:Widget">
@null
Expand Down