Skip to content

Instantly share code, notes, and snippets.

@cthulhuplush
Created January 13, 2017 10:26
Show Gist options
  • Save cthulhuplush/b501b179a5c9ad06327945aec1659906 to your computer and use it in GitHub Desktop.
Save cthulhuplush/b501b179a5c9ad06327945aec1659906 to your computer and use it in GitHub Desktop.
public class MainActivity<F extends Fragment & ViewWithSharedElements> extends AppCompatActivity
{
private static final long TRANSITION_DEFAULT_TIME = 1000;
@BindView(R.id.coordinator_layout) CoordinatorLayout mCoordinatorLayout;
private FragmentManager mFragmentManager;
@Override
protected void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
ButterKnife.bind(this);
mFragmentManager = getSupportFragmentManager();
loadInitialFragment();
setDelayedLoaders();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment