Created
July 18, 2018 10:23
-
-
Save sajjadyousefnia/42aab8f7b39667e8e5e1cf65c15b6ea1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// روش معمول | |
fun createInstance(args: Bundle) : MyFragment { | |
val fragment = MyFragment() | |
fragment.arguments = args | |
return fragment | |
} | |
// روش پیشرفته | |
fun createInstance(args: Bundle) | |
= MyFragment().apply { arguments = args } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment