mirror of
https://github.com/ev-map/EVMap.git
synced 2026-06-12 00:08:34 -04:00
open charger details on click
This commit is contained in:
@@ -115,7 +115,7 @@ class MapsActivity : AppCompatActivity(), OnMapReadyCallback {
|
||||
previousCharger = charger
|
||||
}
|
||||
})
|
||||
vm.chargepoints.observe(this, Observer<List<ChargepointListItem>> {
|
||||
vm.chargepoints.observe(this, Observer {
|
||||
updateMap(it)
|
||||
})
|
||||
|
||||
@@ -162,6 +162,9 @@ class MapsActivity : AppCompatActivity(), OnMapReadyCallback {
|
||||
startActivity(intent)
|
||||
}
|
||||
}
|
||||
binding.detailView.topPart.setOnClickListener {
|
||||
bottomSheetBehavior.state = BottomSheetBehaviorGoogleMapsLike.STATE_ANCHOR_POINT
|
||||
}
|
||||
}
|
||||
|
||||
private fun setupAdapters() {
|
||||
|
||||
@@ -216,6 +216,16 @@
|
||||
app:layout_constraintTop_toBottomOf="@+id/connectors"
|
||||
tools:text="Echtzeitdaten nicht verfügbar" />
|
||||
|
||||
<View
|
||||
android:id="@+id/topPart"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:text="TextView"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/textView3"
|
||||
app:layout_constraintEnd_toStartOf="@+id/guideline2"
|
||||
app:layout_constraintStart_toStartOf="@+id/guideline"
|
||||
app:layout_constraintTop_toTopOf="@+id/textView" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
</androidx.cardview.widget.CardView>
|
||||
|
||||
Reference in New Issue
Block a user