Last active
May 4, 2017 13:47
-
-
Save smaugho/60aa3a45b2f6e3ca6eb571d310584238 to your computer and use it in GitHub Desktop.
Passing Parameters when Navigating
This file contains 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
@EActivity(R.id.activity_settings) | |
public class SettingsActivity extends Activity { | |
@Extra | |
String userName; | |
@Click | |
void showProfile() { | |
$ProfileFragment().userName(userName); | |
} | |
@Click | |
void showNotifications() { | |
$NotificationsFragment().userName(userName); | |
} | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment