| <?xml version="1.0" encoding="utf-8"?> |
| <!-- |
| Copyright 2014, The Android Open Source Project |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| |
| <com.android.systemui.statusbar.NotificationGuts |
| xmlns:android="http://schemas.android.com/apk/res/android" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:id="@+id/notification_guts" |
| android:visibility="gone" |
| android:clickable="true" |
| android:gravity="top|start" |
| android:orientation="vertical" |
| android:paddingStart="@*android:dimen/notification_content_margin_start" |
| android:paddingEnd="@*android:dimen/notification_content_margin_end" |
| android:background="@color/notification_guts_text_color" > |
| |
| <!-- header --> |
| <LinearLayout |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:paddingBottom="8dp" |
| android:paddingTop="8dp" |
| android:id="@+id/notification_guts_header" |
| android:orientation="horizontal" |
| android:layout_gravity="center_vertical|start"> |
| |
| <ImageView |
| android:id="@android:id/icon" |
| android:layout_width="18dp" |
| android:layout_height="18dp" |
| android:layout_marginEnd="3dp" |
| android:src="@android:drawable/arrow_down_float" /> |
| <TextView |
| android:id="@+id/pkgname" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:textAppearance="@android:style/TextAppearance.Material.Notification.Info" |
| android:layout_marginStart="3dp" |
| android:layout_marginEnd="4dp" |
| android:textColor="@color/notification_guts_title_color" /> |
| <TextView |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:id="@+id/debug_info" |
| android:layout_weight="0" |
| android:textAppearance="@android:style/TextAppearance.Material.Notification.Time" |
| android:layout_gravity="bottom|start" |
| android:visibility="gone" |
| android:textColor="#ffffff" /> |
| </LinearLayout> |
| <!-- Importance slider --> |
| <LinearLayout |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:gravity="center_vertical" |
| android:orientation="vertical" |
| android:clickable="false" |
| android:focusable="false" |
| android:paddingBottom="8dip"> |
| <TextView |
| android:id="@+id/title" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:singleLine="true" |
| android:textAppearance="@android:style/TextAppearance.Material.Subhead" |
| android:textColor="@color/notification_guts_text_color" |
| android:ellipsize="marquee" |
| android:fadingEdge="horizontal"/> |
| |
| <TextView |
| android:id="@+id/summary" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_alignStart="@android:id/title" |
| android:textAlignment="viewStart" |
| android:textAppearance="@android:style/TextAppearance.Material.Body1" |
| android:textColor="@color/notification_guts_title_color" |
| android:maxLines="3" |
| android:minLines="2" /> |
| |
| <FrameLayout |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:paddingTop="8dp" > |
| |
| <ImageView |
| android:id="@+id/low_importance" |
| android:src="@android:drawable/ic_menu_close_clear_cancel" |
| android:layout_gravity="center_vertical|start" |
| android:layout_width="24dp" |
| android:layout_height="24dp" /> |
| |
| <SeekBar |
| android:id="@+id/seekbar" |
| android:layout_marginStart="24dp" |
| android:layout_marginEnd="24dp" |
| android:layout_gravity="center_vertical" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:focusable="true" |
| android:background="#00ffffff" |
| android:thumbTint="@android:color/white" |
| android:progressTint="@android:color/white" /> |
| |
| <ImageView |
| android:id="@+id/max_importance" |
| android:src="@android:drawable/ic_popup_reminder" |
| android:layout_gravity="center_vertical|end" |
| android:layout_width="24dp" |
| android:layout_height="24dp"/> |
| |
| </FrameLayout> |
| |
| <RadioGroup |
| android:id="@+id/apply_to" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:paddingTop="8dp"> |
| <RadioButton android:id="@+id/apply_to_topic" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:textColor="@color/notification_guts_text_color" |
| android:visibility="gone"/> |
| <RadioButton android:id="@+id/apply_to_app" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:text="@string/apply_to_app" |
| android:textColor="@color/notification_guts_text_color" |
| android:visibility="gone"/> |
| </RadioGroup> |
| </LinearLayout> |
| <!-- buttons --> |
| <LinearLayout |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:gravity="end" |
| android:paddingTop="8dp" |
| android:paddingBottom="16dp" > |
| |
| <TextView |
| android:id="@+id/more_settings" |
| android:text="@string/notification_more_settings" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:textAppearance="@style/TextAppearance.NotificationGuts" |
| android:background="@drawable/btn_borderless_rect" |
| android:gravity="center" |
| android:paddingEnd="24dp" |
| android:paddingStart="12dp" |
| android:focusable="true" /> |
| |
| <TextView |
| android:id="@+id/done" |
| android:text="@string/notification_done" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:textAppearance="@style/TextAppearance.NotificationGuts" |
| android:background="@drawable/btn_borderless_rect" |
| android:gravity="center" |
| android:focusable="true"/> |
| </LinearLayout> |
| </com.android.systemui.statusbar.NotificationGuts> |