Back to project page PrettyBundle.
The source code is released under:
Apache License
If you think the Android project PrettyBundle listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.tale.prettybundle.sample; //w ww . j a va 2s . co m import android.os.Bundle; import android.support.v7.app.ActionBarActivity; import android.widget.TextView; import com.tale.prettybundle.Extra; import com.tale.prettybundle.PrettyBundle; import com.tale.prettybundle.sample.data.Person; import butterknife.ButterKnife; import butterknife.InjectView; public class TestParcelableActivity extends ActionBarActivity { @Extra Person person; @InjectView(R.id.tvName) TextView tvName; @InjectView(R.id.tvAge) TextView tvAge; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_test_parcelable); ButterKnife.inject(this); PrettyBundle.inject(this); if (person != null) { tvAge.setText(String.valueOf(person.age)); tvName.setText(person.name); } } }