All Projects → Hu12037102 → Mediaselector

Hu12037102 / Mediaselector

Android图片选择器,仿微信相册图片选择器,支持自定义!

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Mediaselector

gephi twitter media downloader
A small script designed to take either a .csv of Tweet ids, or the export from Gephi's TwitterStreamingImporter Plugin and download related Tweet media.
Stars: ✭ 41 (-64.35%)
Mutual labels:  media, photo
Atgmediabrowser
Image slide-show viewer with multiple predefined transition styles, with ability to create new transitions with ease.
Stars: ✭ 186 (+61.74%)
Mutual labels:  media, photo
Mediabrowser
🏞 A simple iOS photo and video browser with optional grid view, captions and selections written in Swift5.0
Stars: ✭ 579 (+403.48%)
Mutual labels:  media, photo
Wiv
Window image viewer [DEPRECATED]
Stars: ✭ 196 (+70.43%)
Mutual labels:  media, view
google streetview
A command line tool and module for Google Street View Image API
Stars: ✭ 77 (-33.04%)
Mutual labels:  view, photo
Imagestore
Open source google photos alternative!
Stars: ✭ 429 (+273.04%)
Mutual labels:  media, photo
Social Text View
A custom Android TextView that highlights social media lingo (#hashtags, @mentions, phone, emails, and urls).
Stars: ✭ 64 (-44.35%)
Mutual labels:  media, view
Feedfire
FeedFire is a project to help developers integrate with Google Firebase.
Stars: ✭ 100 (-13.04%)
Mutual labels:  photo
Vscam
Photography, Communication & Share - Minimalist picture sharing app.
Stars: ✭ 105 (-8.7%)
Mutual labels:  photo
Freemp
Free Media Player (FreeMp)
Stars: ✭ 97 (-15.65%)
Mutual labels:  media
Collectionnode
a collectionView made for Sprite Kit
Stars: ✭ 96 (-16.52%)
Mutual labels:  view
Laravel Filemanager Example 5.3
Demo integration for laravel-filemanager (https://github.com/UniSharp/laravel-filemanager).
Stars: ✭ 100 (-13.04%)
Mutual labels:  media
Gin Template
golang template for gin framework!
Stars: ✭ 106 (-7.83%)
Mutual labels:  view
Photostructure For Servers
PhotoStructure for Servers
Stars: ✭ 98 (-14.78%)
Mutual labels:  photo
Android Ratingreviews
Simple star rating system bars, a view similar to the ones seen on Google Playstore. ⭐🌟✨
Stars: ✭ 110 (-4.35%)
Mutual labels:  view
React Photo Layout Editor
Photo layout editor for react
Stars: ✭ 96 (-16.52%)
Mutual labels:  photo
Pierotateview
android自定义View,带旋转动画的饼状图,区块点击事件,滑动到某一区块事件,可惯性旋转
Stars: ✭ 113 (-1.74%)
Mutual labels:  view
Log Viewer
Log viewer for laravel
Stars: ✭ 108 (-6.09%)
Mutual labels:  view
Menutube
Catch YouTube into your macOS menu bar! 🦄
Stars: ✭ 102 (-11.3%)
Mutual labels:  media
Rdgliderviewcontroller Swift
Control for a floating view gliding over a ViewController Edit
Stars: ✭ 102 (-11.3%)
Mutual labels:  view

MediaSelector

MediaSelector是一个针对于Android媒体库选择的框架,该风格完全仿照微信风格!市面虽然有很多,但是我感觉庞大! 所以自己动手封装一个!

工具特点

1、自定义性扩展能力强(选择文件个数自定义;支持拍照展示) 2、支持多图压缩 3、两行代码解决所有问题,多一行算我输 4、支持加载视频资源(加载视频资源,不会压缩) 5、支持修改module主题

运行效果预览【加载图片资源】

压缩运行效果预览

运行效果预览【加载视频和图片资源】

压缩运行效果预览

运行效果预览【加载剪切图片资源】

压缩运行效果预览

QQ交流群-点我加群

#### 使用依赖
allprojects {
		repositories {
			...
			maven { url 'https://jitpack.io' }
		}
	}
 implementation 'com.github.Hu12037102:MediaSelector:1.0.7'

 /***
    *自定义选择图片方式
    */
 MediaSelector.MediaOptions mediaOptions = new MediaSelector.MediaOptions();
 //是否要显示拍照功能
 mediaOptions.isShowCamera = true;
 //是否要压缩
 mediaOptions.isCompress = false;
 //是否要显示视频文件
 mediaOptions.isShowVideo = false;
 //设置module主题
 mediaOptions.themeColor = R.color.colorAccent;
 //设置要不要裁剪(视频不裁剪、单图选择接受裁剪,裁剪大小自己可以设置)
  mediaOptions.isCrop = true;
 //Activity中
 MediaSelector.with(MainActivity.this).setMediaOptions(mediaOptions).openMediaActivity();
  //Fragment中
  MediaSelector.with(MainFragment.this).setMediaOptions(mediaOptions).openMediaActivity();

 /***
    *默认选择图片方式
    */
 //Activity中
  MediaSelector.with(MainActivity.this).openMediaActivity();
 //Fragment中
  MediaSelector.with(MainFragment.this).openMediaActivity();

  /**
       * 选择图片结果回调
       * @param requestCode
       * @param resultCode
       * @param data
       */
    @Override
       public void onActivityResult(int requestCode, int resultCode, Intent data) {
           super.onActivityResult(requestCode, resultCode, data);

           if (resultCode == Contast.CODE_RESULT_MEDIA && requestCode == Contast.CODE_REQUEST_MEDIA) {
               List<MediaSelectorFile> mediaList = MediaSelector.resultMediaFile(data);

           }
       }
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].