Skip to content

Instantly share code, notes, and snippets.

@smaugho
Last active May 4, 2017 13:47
Show Gist options
  • Save smaugho/60aa3a45b2f6e3ca6eb571d310584238 to your computer and use it in GitHub Desktop.
Save smaugho/60aa3a45b2f6e3ca6eb571d310584238 to your computer and use it in GitHub Desktop.
Passing Parameters when Navigating
@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