1+ <?xml version =" 1.0" encoding =" utf-8" ?>
2+ <RelativeLayout xmlns : android =" http://schemas.android.com/apk/res/android"
3+ android : layout_width =" 300dp"
4+ android : layout_height =" 80dp"
5+ android : layout_gravity =" center"
6+ android : layout_margin =" 5dp"
7+ android : background =" @drawable/list_item_shape"
8+ android : gravity =" center" >
9+
10+ <ImageView
11+ android : id =" @+id/imageView"
12+ android : layout_width =" 60dp"
13+ android : layout_height =" 60dp"
14+ android : layout_alignParentLeft =" true"
15+ android : layout_alignParentStart =" true"
16+ android : layout_centerVertical =" true"
17+ android : layout_marginLeft =" 15dp"
18+ android : scaleType =" fitXY"
19+ android : src =" @drawable/demo1" />
20+
21+ <TextView
22+ android : id =" @+id/textView"
23+ android : layout_width =" 180dp"
24+ android : layout_height =" 80dp"
25+ android : layout_alignParentEnd =" true"
26+ android : layout_alignParentRight =" true"
27+ android : layout_alignParentTop =" true"
28+ android : layout_gravity =" center"
29+ android : layout_toEndOf =" @+id/imageView"
30+ android : layout_toRightOf =" @+id/imageView"
31+ android : focusable =" false"
32+ android : gravity =" center"
33+ android : text =" ddd"
34+ android : textAlignment =" center"
35+ android : textColor =" @color/white"
36+ android : textSize =" 24sp" />
37+
38+
39+ </RelativeLayout >
0 commit comments