Skip to content

Replace deprecated XML layout attributes across the app #1426

@yashc18

Description

@yashc18

Summary:
Several layout files use deprecated XML attributes: fill_parent and android:singleLine="true". These should be replaced with their modern equivalents to improve code quality and future compatibility.

Steps to reproduce:
Open XML layout files such as search_box.xml, trip_details_listitem.xml, and trip_info.xml
Observe usage of deprecated attributes:
android:layout_width="fill_parent" instead of match_parent
android:singleLine="true" instead of android:maxLines="1"

Expected behavior:
All layout files should use modern attributes to avoid build warnings and ensure future compatibility.

Observed behavior:
Many XML layout files use deprecated attributes that have been discouraged since API levels 8 (fill_parent) and 15 (singleLine).

Possible fixes:
Replace deprecated attributes throughout the codebase with their modern equivalents

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions