OSDN Git Service

fb1755c6b51d802e777c5ba31cd7cfaa8008017c
[android-x86/packages-apps-Launcher3.git] / res / layout / all_apps_discovery_item.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright (C) 2017 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 <com.android.launcher3.discovery.AppDiscoveryItemView
17     xmlns:android="http://schemas.android.com/apk/res/android"
18     android:layout_width="match_parent"
19     android:layout_height="wrap_content"
20     android:clickable="true"
21     android:background="?android:selectableItemBackground">
22
23     <ImageView
24         android:id="@+id/image"
25         android:layout_width="56dp"
26         android:layout_height="56dp"
27         android:padding="8dp"
28         android:scaleType="fitCenter"
29         android:focusable="false"
30         android:importantForAccessibility="no"/>
31
32     <LinearLayout
33         android:layout_width="match_parent"
34         android:layout_height="wrap_content"
35         android:orientation="vertical"
36         android:layout_centerVertical="true"
37         android:layout_toRightOf="@id/image">
38
39         <TextView
40             android:id="@+id/title"
41             android:layout_width="match_parent"
42             android:layout_height="wrap_content"
43             android:textColor="?android:textColorSecondary"
44             android:textSize="15sp"/>
45
46         <LinearLayout
47             android:layout_width="match_parent"
48             android:layout_height="wrap_content"
49             android:orientation="horizontal">
50             <TextView
51                 android:id="@+id/rating"
52                 android:layout_width="wrap_content"
53                 android:layout_height="wrap_content"
54                 android:textColor="?android:textColorSecondary"
55                 android:textSize="14sp"
56                 android:layout_gravity="center_vertical"
57                 android:includeFontPadding="false"/>
58
59             <com.android.launcher3.discovery.RatingView
60                 android:id="@+id/rating_view"
61                 android:layout_width="70dp"
62                 android:layout_height="16dp"
63                 android:layout_marginLeft="5dp"
64                 android:layout_marginRight="5dp"
65                 android:layout_gravity="center_vertical"/>
66
67             <TextView
68                 android:id="@+id/review_count"
69                 android:layout_width="wrap_content"
70                 android:layout_height="wrap_content"
71                 android:layout_marginLeft="5dp"
72                 android:textColor="?android:textColorHint"
73                 android:textSize="14sp"
74                 android:layout_gravity="center_vertical"/>
75
76             <Space
77                 android:layout_width="0dp"
78                 android:layout_height="0dp"
79                 android:layout_weight="1"/>
80
81             <TextView
82                 android:id="@+id/price"
83                 android:layout_width="wrap_content"
84                 android:layout_height="wrap_content"
85                 android:textColor="?android:textColorHint"
86                 android:textSize="14sp"
87                 android:layout_marginRight="12dp"
88                 android:textAllCaps="true"/>
89         </LinearLayout>
90     </LinearLayout>
91
92     <ImageView
93         android:importantForAccessibility="no"
94         android:layout_width="match_parent"
95         android:layout_height="wrap_content"
96         android:layout_alignParentBottom="true"
97         android:paddingLeft="@dimen/container_fastscroll_thumb_max_width"
98         android:paddingRight="@dimen/container_fastscroll_thumb_max_width"
99         android:src="@drawable/all_apps_divider"
100         android:scaleType="fitXY"
101         android:focusable="false" />
102 </com.android.launcher3.discovery.AppDiscoveryItemView>