Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2011 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 <!-- Header at the top of a raw contact editor. This allows users to change the account that
     18     the raw contact is saved in. -->
     19 <LinearLayout
     20         xmlns:android="http://schemas.android.com/apk/res/android"
     21         android:id="@+id/account_selector_container"
     22         android:focusable="true"
     23         android:layout_height="wrap_content"
     24         android:layout_width="match_parent"
     25         android:minHeight="@dimen/editor_min_line_item_height"
     26         android:orientation="horizontal"
     27         android:layout_marginBottom="@dimen/compact_editor_name_top_margin"
     28         android:visibility="gone">
     29 
     30     <ImageView
     31         android:id="@+id/kind_icon"
     32         android:src="@drawable/ic_account_circle_black_24dp"
     33         android:tint="@color/editor_icon_color"
     34         android:contentDescription="@string/header_account_entry"
     35         style="@style/EditSelectorIconStyle"/>
     36 
     37     <LinearLayout
     38         android:id="@+id/account"
     39         android:layout_height="wrap_content"
     40         android:layout_width="0dip"
     41         android:layout_weight="1"
     42         android:layout_gravity="center_vertical"
     43         android:orientation="vertical"
     44         android:layout_marginStart="4dp"
     45         android:layout_marginEnd="48dp">
     46 
     47         <TextView
     48             android:id="@+id/account_type_selector"
     49             android:layout_width="match_parent"
     50             android:layout_height="wrap_content"
     51             android:textSize="16sp"
     52             android:singleLine="true"
     53             android:textColor="@color/primary_text_color"
     54             android:textAlignment="viewStart"
     55             android:ellipsize="end" />
     56 
     57         <TextView
     58              android:id="@+id/account_name_selector"
     59              android:layout_width="match_parent"
     60              android:layout_height="wrap_content"
     61              android:textSize="14sp"
     62              android:singleLine="true"
     63              android:textColor="@color/secondary_text_color"
     64              android:textAlignment="viewStart"
     65              android:ellipsize="end" />
     66 
     67     </LinearLayout>
     68 
     69     <ImageView
     70         android:src="@drawable/ic_menu_expander_minimized_holo_light"
     71         android:layout_width="wrap_content"
     72         android:layout_height="wrap_content"
     73         android:layout_gravity="center_vertical|end"
     74         android:layout_alignParentEnd="true"
     75         android:paddingStart="@dimen/editor_round_button_padding_left"
     76         android:paddingEnd="@dimen/editor_round_button_padding_right"
     77         android:paddingTop="@dimen/editor_round_button_padding_top"
     78         android:paddingBottom="@dimen/editor_round_button_padding_bottom"/>
     79 
     80 
     81 </LinearLayout>