OSDN Git Service

1a7eaa72deb00f7e88752de9da63214f33b92a4a
[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
30     <LinearLayout
31         android:layout_width="match_parent"
32         android:layout_height="wrap_content"
33         android:orientation="vertical"
34         android:layout_centerVertical="true"
35         android:layout_toRightOf="@id/image">
36
37         <TextView
38             android:id="@+id/title"
39             android:layout_width="match_parent"
40             android:layout_height="wrap_content"
41             android:textColor="?android:textColorSecondary"
42             android:textSize="15sp"/>
43
44         <LinearLayout
45             android:layout_width="match_parent"
46             android:layout_height="wrap_content"
47             android:orientation="horizontal">
48             <TextView
49                 android:id="@+id/rating"
50                 android:layout_width="wrap_content"
51                 android:layout_height="wrap_content"
52                 android:textColor="?android:textColorSecondary"
53                 android:textSize="14sp"
54                 android:layout_gravity="center_vertical"/>
55
56             <com.android.launcher3.discovery.RatingView
57                 android:id="@+id/rating_view"
58                 android:layout_width="80dp"
59                 android:layout_height="16dp"
60                 android:layout_marginLeft="5dp"
61                 android:layout_marginRight="5dp"
62                 android:layout_gravity="center_vertical"/>
63
64             <TextView
65                 android:id="@+id/review_count"
66                 android:layout_width="wrap_content"
67                 android:layout_height="wrap_content"
68                 android:layout_marginLeft="5dp"
69                 android:textColor="?android:textColorHint"
70                 android:textSize="14sp"
71                 android:layout_gravity="center_vertical"/>
72
73             <Space
74                 android:layout_width="0dp"
75                 android:layout_height="0dp"
76                 android:layout_weight="1"/>
77
78             <TextView
79                 android:id="@+id/price"
80                 android:layout_width="wrap_content"
81                 android:layout_height="wrap_content"
82                 android:textColor="?android:textColorHint"
83                 android:textSize="14sp"
84                 android:layout_marginRight="12dp"
85                 android:textAllCaps="true"/>
86         </LinearLayout>
87     </LinearLayout>
88
89     <ImageView
90         android:importantForAccessibility="no"
91         android:layout_width="match_parent"
92         android:layout_height="wrap_content"
93         android:layout_alignParentBottom="true"
94         android:paddingLeft="@dimen/container_fastscroll_thumb_max_width"
95         android:paddingRight="@dimen/container_fastscroll_thumb_max_width"
96         android:src="@drawable/all_apps_divider"
97         android:scaleType="fitXY"
98         android:focusable="false" />
99 </com.android.launcher3.discovery.AppDiscoveryItemView>