沈斌
2017-01-02 26008989ed5af5eaad82ce29d9a8b8e2e35e2254
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="50dp"
    android:background="@drawable/wallet_base_tab_bar_bg" >
 
    <!-- 标题栏左侧功能区,包括返回箭头和标题文字 -->
 
    <ImageView
        android:id="@+id/title_back"
        android:layout_width="wrap_content"
        android:layout_height="fill_parent"
        android:layout_gravity="center"
        android:contentDescription="@string/ebpay_img"
        android:scaleType="fitXY"
        android:src="@drawable/wallet_base_title_back_selector" />
 
    <!-- 标题栏右侧功能区 -->
 
 
    <!-- <RelativeLayout -->
    <!-- android:id="@+id/titlebar_right_zones" -->
    <!-- android:layout_width="wrap_content" -->
    <!-- android:layout_height="match_parent" -->
    <!-- android:layout_alignParentRight="true" > -->
 
 
    <!-- 刷新按钮左侧点击响应区域,须处理点击事件 -->
    <!-- <LinearLayout -->
    <!-- android:id="@+id/titlebar_right_imgzone1" -->
    <!-- android:layout_width="wrap_content" -->
    <!-- android:layout_height="fill_parent" -->
    <!-- android:addStatesFromChildren="true" -->
    <!-- android:gravity="center" > -->
    <!-- 左端图片区域,须根据点击区域事件(click, touch down, touch cancel)更新背景图 -->
    <!-- <ImageView -->
    <!-- android:id="@+id/titlebar_right_imgzone1_img" -->
    <!-- android:layout_width="wrap_content" -->
    <!-- android:layout_height="wrap_content" -->
    <!-- android:clickable="false" -->
    <!-- android:contentDescription="@null" -->
    <!-- android:scaleType="center" /> -->
    <!-- </LinearLayout> -->
 
 
    <!-- 刷新按钮右侧点击响应区域,须处理点击事件 -->
    <Button
        android:id="@+id/btn_Login_or_reg"
        android:layout_width="58dp"
        android:layout_height="fill_parent"
        android:layout_alignParentRight="true"
        android:layout_centerVertical="true"
        android:background="@drawable/ebpay_title_btn_selector"
        android:gravity="center"
        android:textColor="@color/ebpay_white"
        android:text="@string/ebpay_to_logout"
        android:textSize="15sp"
        android:visibility="gone" />
    <RelativeLayout
        android:id="@+id/titlebar_right_imgzone2"
        android:layout_width="wrap_content"
        android:layout_height="fill_parent"
        android:layout_alignParentRight="true" >
 
        <!-- 左端图片区域,须根据点击区域事件(click, touch down, touch cancel)更新背景图 -->
 
        <ImageView
            android:id="@+id/titlebar_right_imgzone2_img"
            android:layout_width="wrap_content"
            android:layout_height="fill_parent"
            android:clickable="false"
            android:contentDescription="@null"
            android:scaleType="fitXY" />
 
        <!-- 新消息提醒区, 目前只有卡片中心使用, offset与右端图片size有关,应为其长宽的一半 -->
 
        <TextView
            android:id="@+id/titlebar_right_imgzone2_notify"
            android:layout_width="wrap_content"
            android:layout_height="match_parent"
            android:clickable="false"
            android:gravity="center"
            android:paddingLeft="10dp"
            android:paddingRight="10dp"
            android:singleLine="true"
            android:textColor="@color/bd_wallet_white"
            android:textSize="@dimen/ebpay_text_size_12" />
    </RelativeLayout>
 
    <!-- 刷新按钮与刷新按钮动画,默认显示刷新按钮 -->
    <!-- <FrameLayout -->
    <!-- android:id="@+id/titlebar_right_txtzone1" -->
    <!-- android:layout_width="wrap_content" -->
    <!-- android:layout_height="34dip" -->
    <!-- android:layout_marginRight="8dip" -->
    <!-- android:gravity="center" > -->
    <!-- 文字按钮 -->
    <!-- <TextView -->
    <!-- android:id="@+id/titlebar_right_txtzone1_txt" -->
    <!-- android:layout_width="wrap_content" -->
    <!-- android:layout_height="34dip" -->
    <!-- android:layout_gravity="center" -->
    <!-- android:background="#00FFFFFF" -->
    <!-- android:gravity="center" -->
    <!-- android:textSize="16sp" /> -->
    <!-- </FrameLayout> -->
    <!-- </RelativeLayout> -->
 
 
    <!-- 添加一个文本,让标题栏居中 -->
 
    <TextView
        android:id="@+id/title_text_center"
        style="@style/bd_wallet_title_bar_title"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:ellipsize="end"
        android:gravity="center"
        android:maxEms="8"
        android:singleLine="true" />
 
</RelativeLayout>