@@ -27,6 +27,7 @@ import ai.pai.client.utils.Constants; |
||
| 27 | 27 |
import ai.pai.client.utils.GroupCreateUtils; |
| 28 | 28 |
import ai.pai.client.utils.SystemUtils; |
| 29 | 29 |
import ai.pai.client.utils.UmengEvent; |
| 30 |
+import ai.pai.client.views.GroupQRPopup; |
|
| 30 | 31 |
|
| 31 | 32 |
public class GroupActivity extends BaseActivity implements View.OnClickListener{
|
| 32 | 33 |
|
@@ -55,6 +56,7 @@ public class GroupActivity extends BaseActivity implements View.OnClickListener{
|
||
| 55 | 56 |
} |
| 56 | 57 |
findViewById(R.id.title_bar_back_layout).setOnClickListener(this); |
| 57 | 58 |
findViewById(R.id.title_bar_option_layout).setOnClickListener(this); |
| 59 |
+ findViewById(R.id.title_bar_qrcode_layout).setOnClickListener(this); |
|
| 58 | 60 |
findViewById(R.id.floating_btn_camera).setOnClickListener(this); |
| 59 | 61 |
} |
| 60 | 62 |
|
@@ -113,6 +115,9 @@ public class GroupActivity extends BaseActivity implements View.OnClickListener{
|
||
| 113 | 115 |
} |
| 114 | 116 |
photoFile = clickTakePhotoTab(); |
| 115 | 117 |
break; |
| 118 |
+ case R.id.title_bar_qrcode_layout: |
|
| 119 |
+ new GroupQRPopup(this, groupId, groupName, defaultAvatarId).showPopupWindow(); |
|
| 120 |
+ break; |
|
| 116 | 121 |
default: |
| 117 | 122 |
break; |
| 118 | 123 |
} |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 |
|
| 21 | 21 |
<LinearLayout |
| 22 | 22 |
android:id="@+id/title_bar_back_layout" |
| 23 |
- android:layout_width="70dp" |
|
| 23 |
+ android:layout_width="80dp" |
|
| 24 | 24 |
android:layout_height="match_parent" |
| 25 | 25 |
android:gravity="center_vertical" |
| 26 | 26 |
android:orientation="horizontal" |
@@ -63,8 +63,23 @@ |
||
| 63 | 63 |
</LinearLayout> |
| 64 | 64 |
|
| 65 | 65 |
<LinearLayout |
| 66 |
+ android:id="@+id/title_bar_qrcode_layout" |
|
| 67 |
+ android:layout_width="40dp" |
|
| 68 |
+ android:layout_height="match_parent" |
|
| 69 |
+ android:gravity="center_vertical|right" |
|
| 70 |
+ android:orientation="horizontal" |
|
| 71 |
+ android:paddingRight="12dp"> |
|
| 72 |
+ |
|
| 73 |
+ <ImageView |
|
| 74 |
+ android:layout_width="32dp" |
|
| 75 |
+ android:layout_height="32dp" |
|
| 76 |
+ android:src="@drawable/qrcode_light_color" /> |
|
| 77 |
+ |
|
| 78 |
+ </LinearLayout> |
|
| 79 |
+ |
|
| 80 |
+ <LinearLayout |
|
| 66 | 81 |
android:id="@+id/title_bar_option_layout" |
| 67 |
- android:layout_width="70dp" |
|
| 82 |
+ android:layout_width="40dp" |
|
| 68 | 83 |
android:layout_height="match_parent" |
| 69 | 84 |
android:gravity="center_vertical|right" |
| 70 | 85 |
android:orientation="horizontal" |