Expand your view with no problem ;)
Open marypopup from a view
MaryPopup marypopup = MaryPopup.with(context)
.cancellable(true)
.blackOverlayColor(Color.parseColor("#DD444444"))
.backgroundColor(Color.parseColor("#EFF4F5"))
.content(R.layout.popup_content)
.from(clickedView)
.show();
CustomView customView = LayoutInflater...
MaryPopup marypopup = MaryPopup.with(context)
.cancellable(true)
.blackOverlayColor(Color.parseColor("#DD444444"))
.backgroundColor(Color.parseColor("#EFF4F5"))
.content(customView)
.from(clickedView)
.show();
MaryPopup marypopup = MaryPopup.with(context)
...
.center(true)
...
.show();
MaryPopup.with(context)
...
.draggable(true)
...
.show();
MaryPopup.with(context)
...
.draggable(true)
.scaleDownDragging(true);
...
.show();
MaryPopup.with(context)
...
.draggable(true)
.fadeOutDragging(true);
...
.show();
Don't forget to handle the activity's onBackPress
@Override
public void onBackPressed() {
if(!marypopup.close(true)){
super.onBackPressed();
}
}
Add into your build.gradle
repositories {
maven { url "http://dl.bintray.com/meetic-android/maven" }
}
compile 'com.meetic.marypopup:marypopup:(last version)'
compile 'com.meetic.dragueur:dragueur:1.0.0'
Move your views with Dragueur !
A project initiated by Meetic
This project was first developed by Meetic and has been open-sourced since. We will continue working on it. We encourage the community to contribute to the project by opening tickets and/or pull requests.
Contributor: Florent Champigny
Copyright 2016 Meetic, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.