Tweaks requested for multi select
UX requested two tweaks:
1. Unchecking the last check box exits selection mode
2. Selection count should be inset 72dp
Bug: 19549465
Change-Id: Icae0109e54317463cf224e41fc851bff8a512c53
diff --git a/res/layout/selection_bar.xml b/res/layout/selection_bar.xml
index e91311f..e6b1f66 100644
--- a/res/layout/selection_bar.xml
+++ b/res/layout/selection_bar.xml
@@ -13,13 +13,11 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
-<LinearLayout
+<FrameLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/selection_bar"
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:orientation="horizontal"
- android:gravity="center_vertical"
android:background="@color/contextual_selection_bar_color" >
<ImageButton
@@ -29,13 +27,16 @@
android:src="@drawable/ic_close_dk"
android:background="?android:attr/selectableItemBackgroundBorderless"
android:contentDescription="@string/action_menu_back_from_search"
+ android:layout_gravity="center_vertical|start"
android:tint="@android:color/white" />
<TextView
android:id="@+id/selection_count_text"
+ android:layout_marginStart="72dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:visibility="gone"
+ android:layout_gravity="center_vertical|start"
style="@style/ContactsActionBarTitleText" />
-</LinearLayout>
+</FrameLayout>