Home | History | Annotate | Download | only in layout-sw600dp
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!--
      3 /*
      4  * Copyright (C) 2012 Google Inc.
      5  * Licensed to The Android Open Source Project.
      6  *
      7  * Licensed under the Apache License, Version 2.0 (the "License");
      8  * you may not use this file except in compliance with the License.
      9  * You may obtain a copy of the License at
     10  *
     11  *      http://www.apache.org/licenses/LICENSE-2.0
     12  *
     13  * Unless required by applicable law or agreed to in writing, software
     14  * distributed under the License is distributed on an "AS IS" BASIS,
     15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     16  * See the License for the specific language governing permissions and
     17  * limitations under the License.
     18  */
     19 -->
     20 <LinearLayout
     21     xmlns:android="http://schemas.android.com/apk/res/android"
     22     style="@style/AccountSwitchSpinnerItem"
     23     android:layout_height="match_parent"
     24     android:layout_width="match_parent"
     25     android:paddingLeft="0dip"
     26     android:layout_marginLeft="0dip">
     27 
     28     <!-- This spacer is here just to soak up horizontal space. -->
     29     <!-- If this is omitted, the spinner triangle is too far from the text. -->
     30     <FrameLayout
     31         android:id="@+id/spinner_frame"
     32         android:layout_width="@dimen/spinner_frame_width"
     33         android:layout_height="match_parent"
     34         android:layout_alignParentLeft="true">
     35 
     36         <LinearLayout
     37             android:id="@+id/account_spinner"
     38             style="?android:attr/actionDropDownStyle"
     39             android:layout_width="match_parent"
     40             android:layout_height="match_parent"
     41             android:orientation="vertical"
     42             android:gravity="center_vertical">
     43             <TextView
     44                 android:id="@+id/spinner_line_1"
     45                 style="@style/AccountSpinnerAnchorTextPrimary"
     46                 android:singleLine="true"
     47                 android:ellipsize="end"
     48                 android:layout_width="wrap_content"
     49                 android:layout_height="wrap_content" />
     50             <TextView
     51                 android:id="@+id/spinner_line_2"
     52                 style="@style/AccountSpinnerAnchorTextSecondary"
     53                 android:singleLine="true"
     54                 android:ellipsize="end"
     55                 android:layout_marginRight="4dp"
     56                 android:layout_width="wrap_content"
     57                 android:layout_height="wrap_content" />
     58         </LinearLayout>
     59 
     60     </FrameLayout>
     61 
     62     <TextView
     63         android:id="@+id/spinner_count"
     64         style="@style/unreadCountActionBarTablet" />
     65 
     66 </LinearLayout>
     67