Home | History | Annotate | Download | only in layout-sw320dp
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!--
      3   Copyright (C) 2016 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 
     18 <!-- Entity header -->
     19 <LinearLayout
     20     xmlns:android="http://schemas.android.com/apk/res/android"
     21     android:id="@+id/entity_header"
     22     style="@style/EntityHeader"
     23     android:layout_width="match_parent"
     24     android:layout_height="wrap_content"
     25     android:paddingTop="24dp"
     26     android:paddingBottom="24dp">
     27 
     28     <LinearLayout
     29         android:id="@+id/entity_header_content"
     30         android:layout_width="0dp"
     31         android:layout_height="wrap_content"
     32         android:layout_weight="1"
     33         android:background="?android:attr/selectableItemBackground"
     34         android:orientation="horizontal"
     35         android:paddingStart="56dp">
     36 
     37         <ImageView
     38             android:id="@+id/entity_header_icon"
     39             android:layout_width="48dp"
     40             android:layout_height="48dp"
     41             android:scaleType="fitCenter"
     42             android:layout_gravity="center_horizontal"
     43             android:antialias="true" />
     44 
     45         <LinearLayout
     46             android:layout_width="match_parent"
     47             android:layout_height="wrap_content"
     48             android:paddingStart="16dp"
     49             android:paddingEnd="16dp"
     50             android:orientation="vertical">
     51 
     52             <TextView
     53                 android:id="@+id/entity_header_title"
     54                 style="@style/TextAppearance.EntityHeaderTitle"
     55                 android:layout_width="match_parent"
     56                 android:layout_height="wrap_content"
     57                 android:singleLine="false"
     58                 android:ellipsize="marquee"
     59                 android:gravity="start"
     60                 android:textDirection="locale"
     61                 android:paddingTop="8dp" />
     62 
     63             <TextView
     64                 android:id="@+id/install_type"
     65                 android:visibility="gone"
     66                 android:layout_width="match_parent"
     67                 android:layout_height="wrap_content"
     68                 android:gravity="start"
     69                 android:singleLine="true"
     70                 android:ellipsize="marquee"
     71                 android:textAppearance="@android:style/TextAppearance.Material.Body1"
     72                 android:textColor="?android:attr/textColorSecondary" />
     73 
     74             <TextView
     75                 android:id="@+id/entity_header_summary"
     76                 android:layout_width="match_parent"
     77                 android:layout_height="wrap_content"
     78                 android:gravity="start"
     79                 android:singleLine="true"
     80                 android:ellipsize="marquee"
     81                 android:textAppearance="@android:style/TextAppearance.Material.Body1"
     82                 android:textColor="?android:attr/textColorSecondary" />
     83 
     84         </LinearLayout>
     85     </LinearLayout>
     86 
     87     <LinearLayout
     88         android:id="@+id/entity_header_links"
     89         android:layout_width="wrap_content"
     90         android:layout_height="match_parent"
     91         android:orientation="vertical">
     92 
     93         <ImageButton
     94             android:id="@android:id/button1"
     95             style="?android:attr/actionOverflowButtonStyle"
     96             android:layout_width="wrap_content"
     97             android:layout_weight="1"
     98             android:layout_height="0dp"
     99             android:minWidth="@dimen/min_tap_target_size"
    100             android:src="@null"
    101             android:tint="?android:attr/colorAccent" />
    102 
    103         <ImageButton
    104             android:id="@android:id/button2"
    105             style="?android:attr/actionOverflowButtonStyle"
    106             android:layout_width="wrap_content"
    107             android:layout_weight="1"
    108             android:layout_height="0dp"
    109             android:minWidth="@dimen/min_tap_target_size"
    110             android:src="@null"
    111             android:tint="?android:attr/colorAccent" />
    112 
    113     </LinearLayout>
    114 
    115 </LinearLayout>