OSDN Git Service

f7f125ceeb7dff15570a26de0561f4f2d93dd26d
[android-x86/packages-apps-Eleven.git] / res / layout / list_item_normal.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3   Copyright (C) 2012 Andrew Neal
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 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
18     xmlns:tools="http://schemas.android.com/tools"
19     xmlns:app="http://schemas.android.com/apk/res/com.andrew.apollo"
20     android:layout_width="match_parent"
21     android:layout_height="match_parent"
22     android:gravity="center_vertical"
23     tools:ignore="ContentDescription" >
24
25     <com.andrew.apollo.widgets.SquareImageView
26         android:id="@+id/image"
27         android:layout_width="@dimen/item_normal_height"
28         android:layout_height="@dimen/item_normal_height"
29         android:layout_alignParentBottom="true"
30         android:layout_alignParentLeft="true"
31         android:layout_alignParentTop="true"
32         android:scaleType="fitXY" />
33
34     <RelativeLayout
35         android:layout_width="match_parent"
36         android:layout_height="@dimen/item_normal_height"
37         android:layout_toRightOf="@+id/image"
38         android:gravity="center_vertical"
39         android:minHeight="@dimen/item_normal_height"
40         android:paddingLeft="@dimen/list_preferred_item_padding"
41         android:paddingRight="@dimen/list_preferred_item_padding" >
42
43         <com.andrew.apollo.widgets.theme.ThemeableTextView
44             android:id="@+id/line_one"
45             android:layout_width="match_parent"
46             android:layout_height="wrap_content"
47             android:layout_alignParentTop="true"
48             android:singleLine="true"
49             android:textSize="@dimen/text_size_medium"
50             android:textStyle="bold"
51             app:themeResource="line_one" />
52
53         <com.andrew.apollo.widgets.theme.ThemeableTextView
54             android:id="@+id/line_two"
55             android:layout_width="match_parent"
56             android:layout_height="wrap_content"
57             android:layout_below="@+id/line_one"
58             android:layout_marginTop="@dimen/list_item_line_two_margin_top"
59             android:singleLine="true"
60             android:textSize="@dimen/text_size_small"
61             app:themeResource="line_two" />
62     </RelativeLayout>
63
64 </RelativeLayout>