I didn't notice that method deleteItem(View) is used via reflection. Restoring its (unused) parameter, which is needed for reflection, but keeping a better name deleteSelectedItems. Actually, we have a problem that click handlers like this one are also used as helper methods for other handlers, where View parameter is unnecessary, but I don't think it's worth fixing, so let's pass View and not use it. Bug: 21643257 Change-Id: Ibc0cd919706156ddc00890f322e51cb0774bc26b
80 lines
2.9 KiB
XML
80 lines
2.9 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:orientation="vertical"
|
|
android:id="@+id/container"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:orientation="horizontal"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<CheckBox
|
|
android:id="@+id/enableAnimations"
|
|
android:checked="true"
|
|
android:text="@string/enableAnimations"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"/>
|
|
|
|
<CheckBox
|
|
android:id="@+id/enablePredictiveAnimations"
|
|
android:checked="true"
|
|
android:text="@string/enablePredictiveAnimations"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"/>
|
|
|
|
<CheckBox
|
|
android:id="@+id/enableChangeAnimations"
|
|
android:checked="false"
|
|
android:text="@string/enableChangeAnimations"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"/>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:orientation="horizontal"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<Button
|
|
android:id="@+id/deleteButton"
|
|
android:layout_weight=".5"
|
|
android:layout_width="0dip"
|
|
android:layout_height="wrap_content"
|
|
android:onClick="deleteSelectedItems"
|
|
android:text="@string/delete_item"/>
|
|
|
|
<Button
|
|
android:layout_weight=".5"
|
|
android:layout_width="0dip"
|
|
android:layout_height="wrap_content"
|
|
android:onClick="addItem"
|
|
android:text="@string/add_item"/>
|
|
|
|
<Button
|
|
android:layout_weight=".5"
|
|
android:layout_width="0dip"
|
|
android:layout_height="wrap_content"
|
|
android:onClick="addDeleteItem"
|
|
android:text="@string/add_delete_item"/>
|
|
|
|
<Button
|
|
android:layout_weight=".5"
|
|
android:layout_width="0dip"
|
|
android:layout_height="wrap_content"
|
|
android:onClick="deleteAddItem"
|
|
android:text="@string/delete_add_item"/>
|
|
|
|
<Button
|
|
android:layout_weight=".5"
|
|
android:layout_width="0dip"
|
|
android:layout_height="wrap_content"
|
|
android:onClick="d1a2d3"
|
|
android:text="@string/d1a2d3"/>
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout> |