Skip to content

Instantly share code, notes, and snippets.

@sockeqwe
Last active September 28, 2015 15:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sockeqwe/4521a049f7fe64c4fc7d to your computer and use it in GitHub Desktop.
Save sockeqwe/4521a049f7fe64c4fc7d to your computer and use it in GitHub Desktop.
FragmentArgs with Kotlin
kapt {
generateStubs = true
}
dependencies {
compile 'com.hannesdorfmann.fragmentargs:annotation:2.1.2'
kapt 'com.hannesdorfmann.fragmentargs:processor:2.1.2'
}
import android.support.v4.app.Fragment
import com.hannesdorfmann.fragmentargs.annotation.Arg
public class TestFragment : Fragment() {
@Arg lateinit val foo: String
}
@dalewking
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment