Hey everyone,
I’ve been facing some challenges during the migration from the old Turbo Native to the new Hotwire Native for Android. One of the specific issues I’m encountering is the inability to hide the app navigation bar (header), which displays the content of the HTML’s .
I’ve tried various approaches to address this issue, including:
- Overriding the web_fragment.xml file:
<?xml version=“1.0” encoding=“utf-8”?>
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android=“http://schemas.android.com/apk/res/android”
xmlns:app=“http://schemas.android.com/apk/res-auto”
android:layout_width=“match_parent”
android:layout_height=“match_parent”>
<include
layout=“@layout/hotwire_view”
android:layout_width=“match_parent”
android:layout_height=“0dp”
app:layout_constraintBottom_toBottomOf=“parent”
app:layout_constraintTop_toBottomOf=“@+id/app_bar” />
</androidx.constraintlayout.widget.ConstraintLayout>
- Modifying the theme.xml file to disable the toolbar (which worked with Turbo Native):
<item name=“windowActionBar”>false</item>
<item name=“windowNoTitle”>true</item>
- Implementing a programmatic solution in ActivityMain.kt (which worked with Turbo Android):
supportActionBar?.hide()
Despite these efforts, I’m still unable to resolve the issue. I’m wondering if I’m missing something crucial from the documentation or if there’s a different approach that I should be taking. I genuinely appreciate any assistance you can provide in this matter.
Thank you for your time and consideration.