Add notification shutoff switch to app details page.
Requires change Ieccac574. Bug: 5547401 Change-Id: I9856658cc638723414a5c2c3c6807241c3ce6166
This commit is contained in:
committed by
Android (Google) Code Review
parent
d4260682b7
commit
4a824be44c
@@ -39,15 +39,47 @@
|
||||
android:paddingTop="5dip"
|
||||
android:paddingBottom="5dip" >
|
||||
|
||||
<!-- Application snippet label, version and icon -->
|
||||
<include
|
||||
layout="@layout/manage_applications_item"
|
||||
android:id="@+id/app_snippet"/>
|
||||
<!-- Application snippet label, version and icon -->
|
||||
<include
|
||||
layout="@layout/manage_applications_item"
|
||||
android:id="@+id/app_snippet"/>
|
||||
|
||||
<!-- Force stop and uninstall buttons -->
|
||||
<include
|
||||
layout="@layout/two_buttons_panel"
|
||||
android:id="@+id/control_buttons_panel"/>
|
||||
|
||||
<!-- Ban notifications for this package -->
|
||||
<LinearLayout
|
||||
android:orientation="horizontal"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="48dp"
|
||||
android:paddingLeft="6dip"
|
||||
android:paddingTop="8dip"
|
||||
android:gravity="center_vertical">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingRight="14dip"
|
||||
android:text="@string/app_notifications_switch_label"
|
||||
android:singleLine="true"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
android:ellipsize="marquee"
|
||||
android:fadingEdge="horizontal" />
|
||||
<Switch android:id="@+id/notification_switch"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:padding="8dip"
|
||||
android:switchTextAppearance="@style/TextAppearance.Switch"
|
||||
android:textOn="@string/app_notifications_switch_on"
|
||||
android:textOff="@string/app_notifications_switch_off"
|
||||
android:focusable="false"
|
||||
android:clickable="true" />
|
||||
</LinearLayout>
|
||||
|
||||
<!-- Force stop and uninstall buttons -->
|
||||
<include
|
||||
layout="@layout/two_buttons_panel"
|
||||
android:id="@+id/control_buttons_panel"/>
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
|
Reference in New Issue
Block a user