| <?xml version="1.0" encoding="utf-8"?> |
| <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:orientation="vertical" > |
| |
| <!-- Hardcoded strings, wrong order --> |
| <LinearLayout |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" > |
| |
| <Button |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:text="OK" /> |
| |
| <Button |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:text="Cancel" /> |
| </LinearLayout> |
| |
| <!-- Hardcoded strings, right order --> |
| <LinearLayout |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" > |
| |
| <Button |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:text="Cancel" /> |
| |
| <Button |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:text="OK" /> |
| </LinearLayout> |
| |
| <!-- @android:string resources, wrong order --> |
| <LinearLayout |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" > |
| |
| <Button |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:text="@android:string/ok" /> |
| |
| <Button |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:text="@android:string/cancel" /> |
| </LinearLayout> |
| |
| <!-- @android:string resources, right order --> |
| <LinearLayout |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" > |
| |
| <Button |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:text="@android:string/cancel" /> |
| |
| <Button |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:text="@android:string/ok" /> |
| </LinearLayout> |
| |
| <!-- @string/ok/cancel resources, right order --> |
| <LinearLayout |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" > |
| |
| <Button |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:text="@string/cancel" /> |
| |
| <Button |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:text="@string/ok" /> |
| </LinearLayout> |
| |
| <!-- @string/ok/cancel resources, wrong order --> |
| <LinearLayout |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" > |
| |
| <Button |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:text="@string/ok" /> |
| |
| <Button |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:text="@string/cancel" /> |
| </LinearLayout> |
| |
| <!-- Random name resources, right order --> |
| <LinearLayout |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" > |
| |
| <Button |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:text="@string/giveup" /> |
| |
| <Button |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:text="@string/resume" /> |
| </LinearLayout> |
| |
| <!-- Random name resources, wrong order --> |
| <LinearLayout |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" > |
| |
| <Button |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:text="@string/resume" /> |
| |
| <Button |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:text="@string/giveup" /> |
| </LinearLayout> |
| |
| <!-- Random name resources with varying case, wrong order --> |
| <LinearLayout |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" > |
| |
| <Button |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:text="@string/resume2" /> |
| |
| <Button |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:text="@string/giveup2" /> |
| </LinearLayout> |
| |
| <!-- Resources with only one of OK and Cancel, wrong order --> |
| <LinearLayout |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" > |
| |
| <Button |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:text="@string/ok" /> |
| |
| <Button |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:text="@string/abort" /> |
| </LinearLayout> |
| |
| <!-- Resources with only one of OK and Cancel, wrong order --> |
| <LinearLayout |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" > |
| |
| <Button |
| android:layout_width="wrap_content" android:background="?android:attr/selectableItemBackground" |
| android:layout_height="wrap_content" |
| android:text="@string/send" /> |
| |
| <Button |
| android:layout_width="wrap_content" android:background="?android:attr/selectableItemBackground" |
| android:layout_height="wrap_content" |
| android:text="@string/cancel" /> |
| </LinearLayout> |
| |
| <Button |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:text="@string/goback" /> |
| |
| </LinearLayout> |