mapbox / mapbox/mapbox-navigation-android-examples

JetpackComposeActivity not being orientation-aware

Offen
#225 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Vorherrschende Sprache
Kotlin
Sterne
65
Forks
56
Ø Merge
1 T. 4 Std.
Gemergte PRs (30 T.)
2

Beschreibung

Hi,

The JetpackComposeActivity example doesn't respond correctly to the orientation changes. For example, the Manuever View and Camera zoom and puck position don't get updated accordingly when the device orientation is changing from portrait to landscape.

In landscape mode the Maneuver View should be filling up just half of the screen and the camera zoom level should be the same in any orientation mode and the puck position should be centered to the right pane of the screen when the navigation is activated.

I could't find any guidance for handling orientation changes on the documentation page.

Portrait
Image
Landscape
Image

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Beginne mit dem JetpackComposeActivity-Beispiel und reproduziere den Übergang zwischen Hoch- und Querformat. Als abgeschlossen gilt dies, wenn die Maneuver View im Querformat die Hälfte des Bildschirms ausfüllt, der Kamerazoom über beide Ausrichtungen hinweg konsistent bleibt und der puck bei aktiver Navigation im rechten Bereich zentriert ist.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
android, kotlin
Bereich
mobile-dev
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Ruhig
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
55/100

Neue Issues direkt in Ihr Postfach

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