main_title_bar.xml
3.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:orientation="vertical"
android:background="@color/white">
<LinearLayout
android:layout_marginTop="8dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<ImageView
android:id="@+id/imggoweidian"
android:layout_width="70dp"
android:layout_height="match_parent"
android:layout_marginLeft="12dp"
android:contentDescription="@null"
android:background="@null"
android:src="@mipmap/logo_index" />
<!--<EditText
android:id="@+id/edtsearch"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_margin="5dip"
android:layout_weight="6"
android:background="@drawable/edit_input_bg"
android:drawableLeft="@mipmap/globle_search_icon"
android:drawablePadding="8dip"
android:hint="@string/main_title_bar_input_searchkey_hint"
android:singleLine="true"
android:textSize="14sp"
android:textColor="@color/main_black"
android:textColorHint="@color/main_black"
/>-->
<!--<ImageView
android:id="@+id/img_search"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginLeft="30dp"
android:layout_margin="5dip"
android:layout_weight="5"
android:background="@drawable/actionbar_btnback_selector"
android:src="@mipmap/index_seach_icon"
/>-->
<LinearLayout
android:layout_height="40dp"
android:layout_weight="4"
android:layout_width="0dp"
android:layout_marginLeft="8dp"
android:background="@drawable/login_input_border_search"
android:gravity="center"
android:layout_gravity="center_vertical"
>
<ImageView
android:id="@+id/img_search"
android:layout_width="38dp"
android:layout_height="match_parent"
android:paddingLeft="@dimen/space_10"
android:paddingRight="10dp"
android:src="@mipmap/globle_search_icon"/>
<EditText
android:id="@+id/edtsearch"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:singleLine="true"
android:hint="@string/pleaseinputsearch"
android:textSize="13sp"
android:maxLength="20"
android:textCursorDrawable="@null"
android:ems="10"
android:textColor="@color/black"
android:background="@color/transparent"
android:textColorHint="@color/color_txt_grey1"
android:cursorVisible="false">
</EditText>
</LinearLayout>
<ImageButton
android:layout_marginRight="5dp"
android:id="@+id/btnUser"
android:layout_width="0dp"
android:layout_marginLeft="10dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:contentDescription="@null"
android:background="@drawable/btn_bg_transparent_selector"
android:src="@mipmap/icon_user"/>
</LinearLayout>
<TextView
android:layout_marginTop="8dp"
android:layout_width="match_parent"
android:layout_height="3dp"
android:background="@color/line_orange"/>
</LinearLayout>