mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
Node position to compose (#877)
* Move battery info to compose - always show voltage level and icons to match battery percentage Use tool text in preview, rather than actually set text value Simplify node info layout to avoid defining margins on everything * Move node position to Compose * Update hyperlink color to match previous value * Use compose preview in layout editor * Use compose preview in layout editor * Add simple preview for use in layout
This commit is contained in:
parent
7b49f57af6
commit
9ecae6c0e1
4 changed files with 104 additions and 28 deletions
|
|
@ -53,17 +53,15 @@
|
|||
tools:text="@string/sample_distance"
|
||||
/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/coords_view"
|
||||
<androidx.compose.ui.platform.ComposeView
|
||||
android:id="@+id/nodePosition"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:textAppearance="@style/TextAppearance.AppCompat.Small"
|
||||
app:layout_constraintStart_toEndOf="@+id/chip_node"
|
||||
app:layout_constraintTop_toBottomOf="@+id/nodeNameView"
|
||||
app:layout_constraintVertical_bias="0.0"
|
||||
tools:text="@string/sample_coords"
|
||||
android:layout_marginStart="8dp"
|
||||
android:layout_marginTop="8dp"
|
||||
tools:composableName="com.geeksville.mesh.ui.LinkedCoordinatesKt.LinkedCoordinatesPreview"
|
||||
/>
|
||||
|
||||
<androidx.compose.ui.platform.ComposeView
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue