Comments (1)
Dialogs work the same way in activity as in Fragment:
SimpleDialogFragment.createBuilder(this, getSupportFragmentManager()).setMessage(R.string.message).show();
You just need to pass in the FragmentManager. Please note, that the library has android support library as dependency and you need the FragmentManager from support lib. To get callbacks into the activity, you need to do the same as in fragment - make your activity implement the callback interface, e.g. ISimpleDialogListener
and that's it.
from android-styled-dialogs.
Related Issues (20)
- Slow background black color overlay animation at API10 HOT 3
- TextAllCaps on buttons not working on API10 (with AppCompat) HOT 3
- How could I get an Object in callback HOT 1
- Support for AppCompat 22.1+
- can not perform this action after onsaveinstancestate HOT 2
- Ripple effect HOT 1
- Add support for dialog icon HOT 1
- No callback method is triggered in case that methods are called on standAlone helper HOT 1
- no listener can take some values to activity/fragment
- Big right margin of positive button
- when i change my app theme to custom theme,it has an error: HOT 2
- how to change listChoice Indicator`s color in SimpleDialogFragment? HOT 1
- When I implement the interface with my Fragment in Activity, I can't receive the Callback. HOT 7
- Design guidelines and full screen dialogs
- [Question] How To disable and enable positive button ? HOT 2
- Are you want to support diffrent textcolor between positive button and negative button? HOT 1
- Migrate to AndroidX HOT 6
- Caused by android.view.InflateException: Binary XML file line #8: Error inflating class RadioButton
- Caused by android.os.BadParcelableException Parcelable protocol requires a Parcelable.Creator object called CREATOR on class com.tw.coffinfakecall.dialogs.util.SparseBooleanArrayParcelable com.tw.coffinfakecall.dialogs.core.BaseDialogFragment.resolveTheme HOT 1
- Does work with Kotlin
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-styled-dialogs.