huyuguo 5 years ago
parent
commit
c61766a64b

+ 1 - 1
app/build.gradle

285
    compile 'net.zetetic:android-database-sqlcipher:3.5.7@aar'
285
    compile 'net.zetetic:android-database-sqlcipher:3.5.7@aar'
286
286
287
    compile 'com.shuyu:GSYVideoPlayer:5.0.2'
287
    compile 'com.shuyu:GSYVideoPlayer:5.0.2'
288
    compile 'com.github.chrisbanes:PhotoView:2.0.0'
288
    //compile 'com.github.chrisbanes:PhotoView:2.0.0'
289
    compile 'com.wang.avi:library:2.1.3'
289
    compile 'com.wang.avi:library:2.1.3'
290
}
290
}

+ 2 - 1
app/src/main/java/com/electric/chargingpile/fragment/ChatPhotoFragment.java

8
import android.view.ViewGroup;
8
import android.view.ViewGroup;
9
9
10
import com.electric.chargingpile.R;
10
import com.electric.chargingpile.R;
11
import com.github.chrisbanes.photoview.PhotoView;
12
import com.squareup.picasso.Picasso;
11
import com.squareup.picasso.Picasso;
13
12
13
import uk.co.senab.photoview.PhotoView;
14
14
public class ChatPhotoFragment extends Fragment {
15
public class ChatPhotoFragment extends Fragment {
15
    private static final String TAG = "ChatPhotoFragment";
16
    private static final String TAG = "ChatPhotoFragment";
16
    private static final String ARG_URL = "url";
17
    private static final String ARG_URL = "url";

+ 1 - 1
app/src/main/res/layout/fragment_chat_photo.xml

5
    android:layout_width="match_parent"
5
    android:layout_width="match_parent"
6
    android:layout_height="match_parent">
6
    android:layout_height="match_parent">
7
7
8
    <com.github.chrisbanes.photoview.PhotoView
8
    <uk.co.senab.photoview.PhotoView
9
    android:id="@+id/photoView"
9
    android:id="@+id/photoView"
10
    android:layout_width="match_parent"
10
    android:layout_width="match_parent"
11
    android:layout_height="wrap_content"
11
    android:layout_height="wrap_content"