public class PicturePagerActivity extends RongBaseNoActionbarActivity implements android.view.View.OnLongClickListener
Modifier and Type | Class and Description |
---|---|
protected class |
PicturePagerActivity.ImageAdapter |
protected class |
PicturePagerActivity.ImageInfo |
Modifier and Type | Field and Description |
---|---|
protected boolean |
isFirstTime |
protected Conversation.ConversationType |
mConversationType |
protected ImageMessage |
mCurrentImageMessage |
protected int |
mCurrentMessageId |
protected PicturePagerActivity.ImageAdapter |
mImageAdapter |
protected Message |
mMessage |
protected ViewPager2.OnPageChangeCallback |
mPageChangeListener |
protected java.lang.String |
mTargetId |
protected ViewPager2 |
mViewPager |
Constructor and Description |
---|
PicturePagerActivity() |
Modifier and Type | Method and Description |
---|---|
void |
onConfigurationChanged(android.content.res.Configuration newConfig) |
protected void |
onCreate(android.os.Bundle savedInstanceState) |
protected void |
onDestroy() |
boolean |
onLongClick(android.view.View v) |
boolean |
onPictureLongClick(android.view.View v,
android.net.Uri thumbUri,
android.net.Uri largeImageUri)
图片长按处理事件
|
void |
onSaveInstanceState(android.os.Bundle outState,
android.os.PersistableBundle outPersistentState) |
attachBaseContext
protected ViewPager2 mViewPager
protected ImageMessage mCurrentImageMessage
protected Message mMessage
protected Conversation.ConversationType mConversationType
protected int mCurrentMessageId
protected java.lang.String mTargetId
protected PicturePagerActivity.ImageAdapter mImageAdapter
protected boolean isFirstTime
protected ViewPager2.OnPageChangeCallback mPageChangeListener
public void onConfigurationChanged(android.content.res.Configuration newConfig)
protected void onCreate(android.os.Bundle savedInstanceState)
protected void onDestroy()
public void onSaveInstanceState(android.os.Bundle outState, android.os.PersistableBundle outPersistentState)
public boolean onLongClick(android.view.View v)
onLongClick
in interface android.view.View.OnLongClickListener
public boolean onPictureLongClick(android.view.View v, android.net.Uri thumbUri, android.net.Uri largeImageUri)
v
- 查看图片的PhotoViewthumbUri
- 缩略图的Uri地址largeImageUri
- 原图片的Uri地址