Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!--
      3 /**
      4  * Copyright (C) 2009 Google Inc.
      5  *
      6  * Licensed under the Apache License, Version 2.0 (the "License");
      7  * you may not use this file except in compliance with the License.
      8  * You may obtain a copy of the License at
      9  *
     10  *      http://www.apache.org/licenses/LICENSE-2.0
     11  *
     12  * Unless required by applicable law or agreed to in writing, software
     13  * distributed under the License is distributed on an "AS IS" BASIS,
     14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     15  * See the License for the specific language governing permissions and
     16  * limitations under the License.
     17  */
     18 -->
     19 
     20 <!-- The title area at the top of the settings pane -->
     21 
     22 <GridLayout xmlns:android="http://schemas.android.com/apk/res/android"
     23     android:id="@+id/title_area"
     24     android:layout_width="match_parent"
     25     android:layout_height="wrap_content"
     26     android:layout_marginStart="@dimen/settings_side_margin"
     27     android:layout_marginEnd="@dimen/settings_side_margin"
     28     android:minHeight="?android:attr/listPreferredItemHeight"
     29     android:paddingStart="?android:attr/listPreferredItemPaddingStart"
     30     android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
     31     android:paddingTop="8dip"
     32     android:paddingBottom="8dip"
     33     android:columnCount="2">
     34 
     35     <ImageView
     36         android:id="@+id/provider_icon"
     37         android:layout_width="@android:dimen/app_icon_size"
     38         android:layout_height="@android:dimen/app_icon_size"
     39         android:layout_rowSpan="2"
     40         android:layout_marginEnd="8dip"
     41         android:scaleType="centerInside"
     42         android:contentDescription="@null" />
     43 
     44     <TextView
     45         android:id="@+id/user_id"
     46         android:layout_width="0dip"
     47         android:layout_gravity="fill_horizontal"
     48         android:layout_marginTop="2dip"
     49         android:singleLine="true"
     50         android:ellipsize="marquee"
     51         android:textAppearance="?android:attr/textAppearanceMedium"
     52         android:textAlignment="viewStart" />
     53 
     54     <TextView
     55         android:id="@+id/provider_id"
     56         android:layout_width="0dip"
     57         android:layout_gravity="fill_horizontal|top"
     58         android:singleLine="true"
     59         android:ellipsize="marquee"
     60         android:textAppearance="?android:attr/textAppearanceSmall"
     61         android:textAlignment="viewStart" />
     62 
     63 </GridLayout>
     64