import ai.pai.client.db.DBService;
@@ -142,6 +144,12 @@ public class GroupPhotoFragment extends BaseFragment implements GroupService.Gr
adapter.addGroupPhotoItems(photoItems);
}
noPhotoLayout.setVisibility(adapter.getPhotoList().size()==0 ? View.VISIBLE : View.GONE);
+ if(isAdded()){
+ if(getActivity() instanceof GroupActivity){
+ GroupActivity groupActivity = (GroupActivity)getActivity();
+ groupActivity.showGuideAnim();
+ }
+ }
break;
case GroupService.GroupCommand.COMMAND_REFRESH_PHOTOS:
ArrayList<GroupPhotoItem> photos = (ArrayList<GroupPhotoItem>)response;
@@ -3,6 +3,7 @@ |
||
3 | 3 |
android:layout_width="match_parent" |
4 | 4 |
android:layout_height="match_parent" |
5 | 5 |
xmlns:app="http://schemas.android.com/apk/res-auto" |
6 |
+ xmlns:htext="http://schemas.android.com/tools" |
|
6 | 7 |
android:background="@color/white"> |
7 | 8 |
|
8 | 9 |
<RelativeLayout |
@@ -112,4 +113,16 @@ |
||
112 | 113 |
android:layout_margin="10dp" |
113 | 114 |
android:background="@drawable/floating_camera_selector" /> |
114 | 115 |
|
116 |
+ <com.hanks.htextview.HTextView |
|
117 |
+ android:id="@+id/tv_take_photo_hint" |
|
118 |
+ android:layout_width="wrap_content" |
|
119 |
+ android:layout_height="56dp" |
|
120 |
+ android:gravity="center" |
|
121 |
+ android:text="@string/click_to_take_photo" |
|
122 |
+ android:layout_toLeftOf="@id/floating_btn_camera" |
|
123 |
+ android:layout_alignTop="@id/floating_btn_camera" |
|
124 |
+ htext:animateType="typer" |
|
125 |
+ android:visibility="gone" |
|
126 |
+ android:textSize="17sp"/> |
|
127 |
+ |
|
115 | 128 |
</RelativeLayout> |
@@ -250,4 +250,6 @@ |
||
250 | 250 |
<string name="group_photo_not_null">该群里已有照片,无法删除</string> |
251 | 251 |
|
252 | 252 |
<string name="group_admin_not_me">您不是该群的管理员,无法删除</string> |
253 |
+ |
|
254 |
+ <string name="click_to_take_photo">点我拍照,记录您的精彩瞬间吧</string> |
|
253 | 255 |
</resources> |