| <?xml version="1.0" encoding="utf-8"?> |
| <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| xmlns:tools="http://schemas.android.com/tools" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:orientation="vertical" |
| tools:ignore="HardcodedText" > |
| |
| <!-- Warn: Use start instead of left --> |
| |
| <Button |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_gravity="left" |
| android:text="Button" /> |
| |
| <!-- Warn: Use end instead of right with layout_gravity --> |
| |
| <Button |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_gravity="right" |
| android:text="Button" /> |
| |
| <!-- Warn: Use end instead of right with gravity --> |
| |
| <TextView |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:gravity="right" |
| android:text="TextView" /> |
| |
| <!-- OK: No warning --> |
| |
| <Button |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_gravity="start" |
| android:text="Button" /> |
| |
| <!-- OK: No warning --> |
| |
| <Button |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_gravity="end" |
| android:text="Button" /> |
| |
| <!-- OK: No warning --> |
| |
| <TextView |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:gravity="end" |
| android:text="TextView" /> |
| |
| <!-- OK: Suppressed --> |
| |
| <Button |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_gravity="right" |
| android:text="Button" |
| tools:ignore="RtlHardcoded" /> |
| |
| </LinearLayout> |