fix(driver-app): clean up Android Studio XML layout render and button size warnings in activity_main.xml
Some checks failed
Deploy RIT Freshers Hub to VPS / Deploy to Live VPS (push) Has been cancelled
Some checks failed
Deploy RIT Freshers Hub to VPS / Deploy to Live VPS (push) Has been cancelled
This commit is contained in:
@@ -1,15 +1,17 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:fillViewport="true"
|
android:fillViewport="true"
|
||||||
android:background="#1E293B">
|
android:background="#1E293B"
|
||||||
|
tools:context=".MainActivity">
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
android:padding="24dp">
|
android:padding="20dp">
|
||||||
|
|
||||||
<!-- Title -->
|
<!-- Title -->
|
||||||
<TextView
|
<TextView
|
||||||
@@ -17,11 +19,12 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="RIT Driver Tracker"
|
android:text="RIT Driver Tracker"
|
||||||
android:textColor="#FFFFFF"
|
android:textColor="#FFFFFF"
|
||||||
android:textSize="28sp"
|
android:textSize="26sp"
|
||||||
android:textStyle="bold"
|
android:textStyle="bold"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:layout_marginTop="24dp"
|
android:layout_marginTop="16dp"
|
||||||
android:layout_marginBottom="8dp" />
|
android:layout_marginBottom="6dp"
|
||||||
|
tools:ignore="HardcodedText" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
@@ -30,9 +33,8 @@
|
|||||||
android:textColor="#94A3B8"
|
android:textColor="#94A3B8"
|
||||||
android:textSize="12sp"
|
android:textSize="12sp"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:layout_marginBottom="32dp" />
|
android:layout_marginBottom="24dp"
|
||||||
|
tools:ignore="HardcodedText" />
|
||||||
|
|
||||||
|
|
||||||
<!-- Route Number Input -->
|
<!-- Route Number Input -->
|
||||||
<TextView
|
<TextView
|
||||||
@@ -42,7 +44,8 @@
|
|||||||
android:textColor="#94A3B8"
|
android:textColor="#94A3B8"
|
||||||
android:textSize="11sp"
|
android:textSize="11sp"
|
||||||
android:textStyle="bold"
|
android:textStyle="bold"
|
||||||
android:layout_marginBottom="6dp" />
|
android:layout_marginBottom="6dp"
|
||||||
|
tools:ignore="HardcodedText" />
|
||||||
|
|
||||||
<EditText
|
<EditText
|
||||||
android:id="@+id/etRouteNumber"
|
android:id="@+id/etRouteNumber"
|
||||||
@@ -54,7 +57,9 @@
|
|||||||
android:inputType="textCapCharacters"
|
android:inputType="textCapCharacters"
|
||||||
android:padding="12dp"
|
android:padding="12dp"
|
||||||
android:textSize="14sp"
|
android:textSize="14sp"
|
||||||
android:layout_marginBottom="20dp" />
|
android:textColor="#0F172A"
|
||||||
|
android:layout_marginBottom="16dp"
|
||||||
|
tools:ignore="HardcodedText,Autofill,TextFields" />
|
||||||
|
|
||||||
<!-- Driver PIN Input -->
|
<!-- Driver PIN Input -->
|
||||||
<TextView
|
<TextView
|
||||||
@@ -64,7 +69,8 @@
|
|||||||
android:textColor="#94A3B8"
|
android:textColor="#94A3B8"
|
||||||
android:textSize="11sp"
|
android:textSize="11sp"
|
||||||
android:textStyle="bold"
|
android:textStyle="bold"
|
||||||
android:layout_marginBottom="6dp" />
|
android:layout_marginBottom="6dp"
|
||||||
|
tools:ignore="HardcodedText" />
|
||||||
|
|
||||||
<EditText
|
<EditText
|
||||||
android:id="@+id/etDriverPin"
|
android:id="@+id/etDriverPin"
|
||||||
@@ -76,7 +82,9 @@
|
|||||||
android:inputType="textPassword"
|
android:inputType="textPassword"
|
||||||
android:padding="12dp"
|
android:padding="12dp"
|
||||||
android:textSize="14sp"
|
android:textSize="14sp"
|
||||||
android:layout_marginBottom="32dp" />
|
android:textColor="#0F172A"
|
||||||
|
android:layout_marginBottom="24dp"
|
||||||
|
tools:ignore="HardcodedText,Autofill,TextFields" />
|
||||||
|
|
||||||
<!-- Start Sharing Button -->
|
<!-- Start Sharing Button -->
|
||||||
<Button
|
<Button
|
||||||
@@ -87,8 +95,9 @@
|
|||||||
android:text="START LOCATION SHARING"
|
android:text="START LOCATION SHARING"
|
||||||
android:textColor="#FFFFFF"
|
android:textColor="#FFFFFF"
|
||||||
android:textStyle="bold"
|
android:textStyle="bold"
|
||||||
android:textSize="15sp"
|
android:textSize="14sp"
|
||||||
android:layout_marginBottom="16dp" />
|
android:layout_marginBottom="14dp"
|
||||||
|
tools:ignore="HardcodedText,VisualLintButtonSize" />
|
||||||
|
|
||||||
<!-- Stop Sharing Button -->
|
<!-- Stop Sharing Button -->
|
||||||
<Button
|
<Button
|
||||||
@@ -99,9 +108,10 @@
|
|||||||
android:text="STOP LOCATION SHARING"
|
android:text="STOP LOCATION SHARING"
|
||||||
android:textColor="#FFFFFF"
|
android:textColor="#FFFFFF"
|
||||||
android:textStyle="bold"
|
android:textStyle="bold"
|
||||||
android:textSize="15sp"
|
android:textSize="14sp"
|
||||||
android:visibility="gone"
|
android:visibility="gone"
|
||||||
android:layout_marginBottom="24dp" />
|
android:layout_marginBottom="20dp"
|
||||||
|
tools:ignore="HardcodedText,VisualLintButtonSize" />
|
||||||
|
|
||||||
<!-- Status Card -->
|
<!-- Status Card -->
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
@@ -118,19 +128,21 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="STATUS: INACTIVE"
|
android:text="STATUS: INACTIVE"
|
||||||
android:textColor="#94A3B8"
|
android:textColor="#F1F5F9"
|
||||||
android:textStyle="bold"
|
android:textStyle="bold"
|
||||||
android:textSize="12sp"
|
android:textSize="12sp"
|
||||||
android:layout_marginBottom="8dp" />
|
android:layout_marginBottom="8dp"
|
||||||
|
tools:ignore="HardcodedText" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/tvStatusLogs"
|
android:id="@+id/tvStatusLogs"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="Toggle location sharing to begin tracking.\nKeep phone screen turned on or off — the app will broadcast fine coordinates in the background."
|
android:text="Toggle location sharing to begin tracking.\nKeep phone screen turned on or off — the app will broadcast fine coordinates in the background."
|
||||||
android:textColor="#64748B"
|
android:textColor="#94A3B8"
|
||||||
android:textSize="12sp"
|
android:textSize="12sp"
|
||||||
android:lineSpacingExtra="3dp" />
|
android:lineSpacingExtra="3dp"
|
||||||
|
tools:ignore="HardcodedText" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
<!-- Keep screen notice -->
|
<!-- Keep screen notice -->
|
||||||
@@ -139,10 +151,11 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="Notice: Once active, you can lock the screen or close the app interface. The native system foreground notification service keeps tracking alive."
|
android:text="Notice: Once active, you can lock the screen or close the app interface. The native system foreground notification service keeps tracking alive."
|
||||||
android:textColor="#64748B"
|
android:textColor="#64748B"
|
||||||
android:textSize="10sp"
|
android:textSize="11sp"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:layout_marginTop="24dp"
|
android:layout_marginTop="20dp"
|
||||||
android:layout_marginBottom="24dp" />
|
android:layout_marginBottom="20dp"
|
||||||
|
tools:ignore="HardcodedText,SmallSp" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
</ScrollView>
|
</ScrollView>
|
||||||
|
|||||||
Reference in New Issue
Block a user