Skip to content

Commit

Permalink
Reduce the size of the location card footprint
Browse files Browse the repository at this point in the history
  • Loading branch information
christianrowlands committed Feb 29, 2024
1 parent 7ffa9bc commit 9adfad5
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 21 deletions.
48 changes: 29 additions & 19 deletions networksurvey/src/main/res/layout/location_card.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,27 +40,37 @@

</LinearLayout>

<TextView
android:id="@+id/location"
style="@style/StandardText"
android:layout_width="wrap_content"
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/large_margin"
android:maxLines="1"
android:autoSizeTextType="uniform"
android:text="@string/searching_for_location"
android:textIsSelectable="true" />
android:orientation="horizontal">

<TextView
android:id="@+id/altitude"
style="@style/StandardText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/large_margin"
android:maxLines="1"
android:autoSizeTextType="uniform"
android:text="@string/altitude_initial"
android:textIsSelectable="true" />
<TextView
android:id="@+id/location"
style="@style/StandardText"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="start"
android:layout_marginStart="@dimen/large_margin"
android:maxLines="1"
android:autoSizeTextType="uniform"
android:text="@string/searching_for_location"
android:textIsSelectable="true" />

<TextView
android:id="@+id/altitude"
style="@style/StandardText"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:layout_marginStart="@dimen/large_margin"
android:maxLines="1"
android:autoSizeTextType="uniform"
android:text="@string/altitude_initial"
android:textIsSelectable="true" />

</LinearLayout>

<TextView
android:id="@+id/accuracy"
Expand Down
4 changes: 2 additions & 2 deletions networksurvey/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,8 @@ but work independently, so you have full control over how you handle your data.<
<string name="turn_on_gps">Please turn on GPS</string>
<string name="searching_for_location">Searching for GPS …</string>
<string name="low_gps_confidence">Low GPS Confidence</string>
<string name="altitude_initial">Altitude: </string>
<string name="altitude_value">Altitude: %1$s meters</string>
<string name="altitude_initial">Alt: </string>
<string name="altitude_value">Alt: %1$s meters</string>
<string name="accuracy_initial">Accuracy: </string>
<string name="accuracy_value">Accuracy: %1$s meters</string>

Expand Down

0 comments on commit 9adfad5

Please sign in to comment.