@@ -238,7 +238,7 @@ public class PhotoDetailsActivity extends BaseActivity implements View.OnClickLi |
||
238 | 238 |
((TextView) findViewById(R.id.title_bar_middle_txt)).setText(R.string.photo_details); |
239 | 239 |
findViewById(R.id.title_bar_back_layout).setOnClickListener(this); |
240 | 240 |
findViewById(R.id.title_bar_option_layout).setVisibility(View.INVISIBLE); |
241 |
- findViewById(R.id.tv_enter_group).setOnClickListener(this); |
|
241 |
+ findViewById(R.id.layout_enter_group).setOnClickListener(this); |
|
242 | 242 |
findViewById(R.id.floating_btn_thumbup).setOnClickListener(this); |
243 | 243 |
findViewById(R.id.floating_btn_comment).setOnClickListener(this); |
244 | 244 |
findViewById(R.id.floating_btn_share).setOnClickListener(this); |
@@ -353,7 +353,7 @@ public class PhotoDetailsActivity extends BaseActivity implements View.OnClickLi |
||
353 | 353 |
MobclickAgent.onEvent(this, UmengEvent.detail_thumb_btn_click); |
354 | 354 |
doPhotoThumbUpTask(); |
355 | 355 |
break; |
356 |
- case R.id.tv_enter_group: |
|
356 |
+ case R.id.layout_enter_group: |
|
357 | 357 |
MobclickAgent.onEvent(this, UmengEvent.detail_enter_group_btn_click); |
358 | 358 |
if(fromGroupPage){ |
359 | 359 |
finish(); |
@@ -0,0 +1,16 @@ |
||
1 |
+<?xml version="1.0" encoding="utf-8"?> |
|
2 |
+<shape xmlns:android="http://schemas.android.com/apk/res/android" |
|
3 |
+ android:padding="4dp" |
|
4 |
+ android:shape="rectangle" > |
|
5 |
+ |
|
6 |
+ <solid android:color="@color/white" /> |
|
7 |
+ |
|
8 |
+ <stroke android:width="1dp" android:color="@color/colorPrimary"/> |
|
9 |
+ |
|
10 |
+ <corners |
|
11 |
+ android:bottomLeftRadius="8dp" |
|
12 |
+ android:bottomRightRadius="8dp" |
|
13 |
+ android:topLeftRadius="8dp" |
|
14 |
+ android:topRightRadius="8dp" /> |
|
15 |
+ |
|
16 |
+</shape> |
@@ -56,18 +56,34 @@ |
||
56 | 56 |
android:textSize="14sp" /> |
57 | 57 |
|
58 | 58 |
|
59 |
- <TextView |
|
60 |
- android:id="@+id/tv_enter_group" |
|
61 |
- android:layout_width="61dp" |
|
62 |
- android:layout_height="20dp" |
|
59 |
+ |
|
60 |
+ <RelativeLayout |
|
61 |
+ android:id="@+id/layout_enter_group" |
|
62 |
+ android:layout_width="wrap_content" |
|
63 |
+ android:layout_height="22dp" |
|
63 | 64 |
android:layout_alignParentRight="true" |
64 | 65 |
android:layout_centerVertical="true" |
65 |
- android:background="@drawable/enter_group" |
|
66 | 66 |
android:gravity="center_vertical" |
67 |
- android:paddingLeft="8dp" |
|
68 |
- android:text="@string/enter_group" |
|
69 |
- android:textColor="@color/pop_head_text_red_color" |
|
70 |
- android:textSize="12sp" /> |
|
67 |
+ android:background="@drawable/round_corner_enter_group_bg"> |
|
68 |
+ |
|
69 |
+ <TextView |
|
70 |
+ android:id="@+id/tv_enter_group" |
|
71 |
+ android:layout_width="wrap_content" |
|
72 |
+ android:layout_height="wrap_content" |
|
73 |
+ android:paddingLeft="8dp" |
|
74 |
+ android:text="@string/enter_group" |
|
75 |
+ android:textColor="@color/pop_head_text_red_color" |
|
76 |
+ android:textSize="12sp" /> |
|
77 |
+ |
|
78 |
+ <ImageView |
|
79 |
+ android:layout_width="14dp" |
|
80 |
+ android:layout_height="14dp" |
|
81 |
+ android:layout_marginRight="4dp" |
|
82 |
+ android:layout_marginTop="1dp" |
|
83 |
+ android:src="@drawable/enter_arrow" |
|
84 |
+ android:layout_toRightOf="@id/tv_enter_group"/> |
|
85 |
+ |
|
86 |
+ </RelativeLayout> |
|
71 | 87 |
|
72 | 88 |
</RelativeLayout> |
73 | 89 |
|