public abstract class PictureBaseActivity
extends AppCompatActivity
implements android.os.Handler.Callback
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
cameraPath |
protected int |
colorPrimary |
protected int |
colorPrimaryDark |
protected PictureLoadingDialog |
compressDialog |
protected PictureSelectionConfig |
config |
protected android.view.View |
container |
protected PictureLoadingDialog |
dialog |
protected android.os.Handler |
mHandler |
protected boolean |
numComplete |
protected boolean |
openWhiteStatusBar |
protected java.lang.String |
originalPath |
protected java.util.List<LocalMedia> |
selectionMedias |
Constructor and Description |
---|
PictureBaseActivity() |
Modifier and Type | Method and Description |
---|---|
protected void |
attachBaseContext(android.content.Context newBase) |
protected void |
closeActivity()
Close Activity
|
protected void |
createNewFolder(java.util.List<LocalMediaFolder> folders)
如果没有任何相册,先创建一个最近相册出来
|
protected void |
dismissCompressDialog()
dismiss compress dialog
|
protected void |
dismissDialog()
dismiss dialog
|
protected android.content.Context |
getContext()
获取Context上下文
|
protected LocalMediaFolder |
getImageFolder(java.lang.String path,
java.util.List<LocalMediaFolder> imageFolders)
将图片插入到相机文件夹中
|
abstract int |
getResourceId()
获取布局文件
|
boolean |
handleMessage(android.os.Message msg) |
protected void |
handlerResult(java.util.List<LocalMedia> result)
compress or callback
|
protected void |
initPictureSelectorStyle() |
protected void |
initWidgets() |
protected void |
onCreate(android.os.Bundle savedInstanceState) |
protected void |
onDestroy() |
void |
onRequestPermissionsResult(int requestCode,
java.lang.String[] permissions,
int[] grantResults) |
protected void |
onResult(java.util.List<LocalMedia> images)
return image result
|
protected void |
onSaveInstanceState(android.os.Bundle outState) |
protected void |
removeImage(int id,
boolean eqVideo)
Deprecated.
|
protected void |
showCompressDialog()
compress loading dialog
|
protected void |
showPleaseDialog()
loading dialog
|
protected void |
startOpenCamera()
start to camera、preview、crop
|
protected PictureSelectionConfig config
protected boolean openWhiteStatusBar
protected boolean numComplete
protected int colorPrimary
protected int colorPrimaryDark
protected java.lang.String cameraPath
protected java.lang.String originalPath
protected PictureLoadingDialog dialog
protected PictureLoadingDialog compressDialog
protected java.util.List<LocalMedia> selectionMedias
protected android.os.Handler mHandler
protected android.view.View container
public abstract int getResourceId()
protected void initWidgets()
protected void initPictureSelectorStyle()
protected void attachBaseContext(android.content.Context newBase)
protected void onCreate(android.os.Bundle savedInstanceState)
protected android.content.Context getContext()
protected void onSaveInstanceState(android.os.Bundle outState)
protected void showPleaseDialog()
protected void dismissDialog()
protected void showCompressDialog()
protected void dismissCompressDialog()
protected void handlerResult(java.util.List<LocalMedia> result)
result
- protected void createNewFolder(java.util.List<LocalMediaFolder> folders)
folders
- protected LocalMediaFolder getImageFolder(java.lang.String path, java.util.List<LocalMediaFolder> imageFolders)
path
- imageFolders
- protected void onResult(java.util.List<LocalMedia> images)
images
- protected void closeActivity()
protected void onDestroy()
@Deprecated protected void removeImage(int id, boolean eqVideo)
id
- eqVideo
- protected void startOpenCamera()
public boolean handleMessage(android.os.Message msg)
handleMessage
in interface android.os.Handler.Callback
public void onRequestPermissionsResult(int requestCode, java.lang.String[] permissions, int[] grantResults)