Home | History | Annotate | Download | only in layout
      1 <!--
      2      Copyright (C) 2014 The Android Open Source Project
      3 
      4      Licensed under the Apache License, Version 2.0 (the "License");
      5      you may not use this file except in compliance with the License.
      6      You may obtain a copy of the License at
      7 
      8           http://www.apache.org/licenses/LICENSE-2.0
      9 
     10      Unless required by applicable law or agreed to in writing, software
     11      distributed under the License is distributed on an "AS IS" BASIS,
     12      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13      See the License for the specific language governing permissions and
     14      limitations under the License.
     15 -->
     16 
     17 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
     18     android:layout_width="match_parent"
     19     android:layout_height="?android:attr/actionBarSize"
     20     android:background="@drawable/switchbar_background"
     21     android:gravity="center_vertical"
     22     android:theme="?attr/switchBarTheme" >
     23 
     24     <ImageView android:id="@+id/app_icon"
     25         android:layout_width="@dimen/switchbar_subsettings_margin_start"
     26         android:layout_height="40dp"
     27         android:gravity="end"
     28         android:layout_centerVertical="true" />
     29 
     30     <TextView
     31         android:id="@+id/app_name"
     32         android:layout_height="wrap_content"
     33         android:layout_width="match_parent"
     34         android:layout_toStartOf="@+id/app_settings"
     35         android:layout_marginStart="@dimen/switchbar_subsettings_margin_start"
     36         android:layout_alignWithParentIfMissing="true"
     37         android:layout_centerVertical="true"
     38         android:textAppearance="@style/TextAppearance.Switch"
     39         android:textColor="@android:color/white"
     40         android:textAlignment="viewStart" />
     41 
     42     <ImageView
     43         android:id="@id/app_settings"
     44         android:layout_width="56dp"
     45         android:layout_height="56dp"
     46         android:layout_alignParentEnd="true"
     47         android:layout_marginEnd="@dimen/switchbar_subsettings_margin_end"
     48         android:layout_centerVertical="true"
     49         android:minHeight="0dp"
     50         android:minWidth="0dp"
     51         android:contentDescription="@string/notification_app_settings_button"
     52         android:scaleType="center"
     53         android:src="@drawable/ic_info"
     54         style="?android:attr/borderlessButtonStyle" />
     55 
     56     <View
     57         android:id="@+id/row_divider"
     58         android:layout_width="match_parent"
     59         android:layout_height="wrap_content"
     60         android:background="?android:attr/listDivider" />
     61 
     62 </RelativeLayout>
     63 
     64