1 <?xml version="1.0" encoding="utf-8"?> |
1 <?xml version="1.0" encoding="utf-8"?> |
2 <LinearLayout |
2 <RelativeLayout |
3 xmlns:android="http://schemas.android.com/apk/res/android" |
3 xmlns:android="http://schemas.android.com/apk/res/android" |
4 android:orientation="horizontal" |
4 android:layout_width="fill_parent" |
5 android:layout_width="match_parent" |
5 android:layout_height="fill_parent" |
6 android:layout_height="match_parent" |
6 android:background="#8FFF" |
7 android:background="#8FFF"> |
7 android:padding="3dip"> |
8 |
8 |
9 <ImageView |
9 <ImageView |
10 android:id="@+id/imgDifficulty" |
10 android:id="@+id/imgDifficulty" |
11 android:layout_height="fill_parent" |
11 android:layout_height="fill_parent" |
12 android:layout_width="wrap_content" |
12 android:layout_width="wrap_content" |
13 android:adjustViewBounds="true" |
13 android:adjustViewBounds="true" |
14 android:scaleType="centerInside"/> |
14 android:scaleType="centerInside"/> |
|
15 <ImageView |
|
16 android:id="@+id/teamColor" |
|
17 android:layout_height="wrap_content" |
|
18 android:layout_width="wrap_content" |
|
19 android:layout_alignParentRight="true" |
|
20 android:layout_centerVertical="true" |
|
21 android:adjustViewBounds="true" |
|
22 android:scaleType="centerInside" |
|
23 android:src="@drawable/box" |
|
24 android:background="#FDA"/> |
|
25 <ImageView |
|
26 android:id="@+id/teamCount" |
|
27 android:layout_height="fill_parent" |
|
28 android:layout_width="wrap_content" |
|
29 android:layout_toLeftOf="@id/teamColor" |
|
30 android:layout_alignTop="@id/imgDifficulty" |
|
31 android:layout_alignBottom="@id/imgDifficulty" |
|
32 android:adjustViewBounds="true" |
|
33 android:scaleType="centerInside" |
|
34 android:src="@drawable/teamcount7"/> |
15 <TextView |
35 <TextView |
16 android:id="@+id/txtName" |
36 android:id="@+id/txtName" |
17 android:layout_height="fill_parent" |
37 android:layout_height="fill_parent" |
18 android:layout_width="fill_parent" |
38 android:layout_width="wrap_content" |
|
39 android:layout_toRightOf="@id/imgDifficulty" |
|
40 android:layout_toLeftOf="@id/teamCount" |
|
41 android:layout_alignTop="@id/imgDifficulty" |
|
42 android:layout_alignBottom="@id/imgDifficulty" |
|
43 android:gravity="center" |
19 android:textColor="#FFF"/> |
44 android:textColor="#FFF"/> |
20 </LinearLayout> |
45 </RelativeLayout> |