As a developer, I would like an example of how to place the toolbar at the top of the screen so that I can easily add a toolbar position switch to my settings (like Fenix)

Offen
#2,091 0 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
35/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
android, kotlin
Bereich
mobile-dev

Rechercherichtung

Beginnen Sie mit der Durchsicht des verlinkten Commits und der Einstiegspunkte der Referenzbrowser-Komponenten BrowserToolbar, des engineView-Layouts und der Einstellungen. Reproduzieren Sie die Platzierung der Symbolleiste oben und überprüfen Sie anschließend, dass der Inhalt von engineView nicht verdeckt wird und beim Scrollen kein unterer Rand erscheint; ein Schalter in den Einstellungen sollte die Positionsänderung demonstrieren.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

🌟 feature

The reference browser defaults to placing the BrowserToolbar at the bottom of the screen. However, as a developer, I would like to allow user's to switch the position of the toolbar. I attempted doing this in what seems like the "right" way in a fork, see this commit, https://github.com/paidforby/reference-browser/commit/dc9656ebb8b085c155ebc902a397eb41e2e35708. But this results in two problems:

  1. The top part of the engineView content is covered by the toolbar
  2. When scrolling down the page, the toolbar hides as expected, but a margin pops up at the bottom of the screen, cutting off the bottom of the engineView content.

I will be satisfied if solutions are provided for these issues. Ideally, a simple switch preference should be added to the reference browser settings that changes the position of the toolbar for demonstrative purposes.

Vorherrschende Sprache
Kotlin
Sterne
668
Forks
198
Ø Merge
9 Std. 58 Min.
Gemergte PRs (30 T.)
55

Entwicklungsumgebung

  • Kein Dockerfile und keine Docker-Compose-Datei
  • Hat eine Pull-Request-Vorlage
  • Kein Beitragsleitfaden

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus mozilla-mobile/reference-browser

Alle Issues in mozilla-mobile/reference-browser

Ähnliche Issues

Weitere Issues zu Kotlin

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.