Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!--
      3   ~ Copyright (C) 2013 The Android Open Source Project
      4   ~
      5   ~ Licensed under the Apache License, Version 2.0 (the "License");
      6   ~ you may not use this file except in compliance with the License.
      7   ~ You may obtain a copy of the License at
      8   ~
      9   ~      http://www.apache.org/licenses/LICENSE-2.0
     10   ~
     11   ~ Unless required by applicable law or agreed to in writing, software
     12   ~ distributed under the License is distributed on an "AS IS" BASIS,
     13   ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     14   ~ See the License for the specific language governing permissions and
     15   ~ limitations under the License
     16   -->
     17 <com.android.dialer.list.TileInteractionTeaserView
     18     xmlns:android="http://schemas.android.com/apk/res/android"
     19     android:layout_width="match_parent"
     20     android:layout_height="match_parent"
     21     android:background="@color/background_dialer_list_items"
     22     android:paddingBottom="@dimen/favorites_row_bottom_padding"
     23     android:paddingTop="@dimen/favorites_row_top_padding">
     24 
     25     <LinearLayout
     26         android:id="@+id/swipeable_content"
     27         android:layout_width="match_parent"
     28         android:layout_height="match_parent"
     29         android:orientation="horizontal" >
     30 
     31         <ImageView
     32             android:id="@+id/arrow"
     33             android:layout_width="48dp"
     34             android:layout_height="wrap_content"
     35             android:layout_marginLeft="16dp"
     36             android:layout_marginRight="12dp"
     37             android:duplicateParentState="true"
     38             android:src="@drawable/ic_arrow"
     39             android:visibility="invisible" />
     40 
     41         <TextView
     42             android:id="@+id/text"
     43             android:layout_width="0dp"
     44             android:layout_height="wrap_content"
     45             android:layout_gravity="center_vertical"
     46             android:layout_marginBottom="12dp"
     47             android:layout_marginTop="12dp"
     48             android:layout_weight="1"
     49             android:duplicateParentState="true"
     50             android:fontFamily="sans-serif-light"
     51             android:text="@string/contact_tooltip"
     52             android:textColor="@color/undo_dialogue_text_color"
     53             android:textSize="16sp" />
     54 
     55         <View
     56             android:id="@+id/dismiss_separator"
     57             android:layout_width="1dip"
     58             android:layout_height="match_parent"
     59             android:background="@color/undo_dialogue_text_color"
     60             android:layout_marginTop="16dp"
     61             android:layout_marginBottom="16dp"
     62             android:layout_marginStart="16dp"/>
     63 
     64         <ImageButton
     65             android:id="@+id/dismiss_button"
     66             android:layout_width="wrap_content"
     67             android:layout_height="match_parent"
     68             android:background="?android:attr/selectableItemBackground"
     69             android:clickable="true"
     70             android:scaleType="center"
     71             android:src="@drawable/ic_cancel_holo_light"
     72             style="@style/DismissButtonStyle"
     73             android:contentDescription="@string/description_dismiss"/>
     74 
     75     </LinearLayout>
     76 
     77 </com.android.dialer.list.TileInteractionTeaserView>
     78