SetContentView(R.layout.activity_fragment) įragmentManager fm = getSupportFragmentManager() įragment fragment = fm.findFragmentById(R.id.fragmentContainer) įm.beginTransaction().add(R.id.fragmentContainer,fragment).commit() Protected abstract Fragment void onCreate(Bundle savedInstanceState) public abstract class SingleFragmentActivity extends FragmentActivity Public abstract class SingleFragmentActivity extends AppCompatActivity Public class CrimeListActivity extends Fragment createFragment() Recently i stuck with creation of Action Bar…in the net says need to use Tool Bar instead of Action Bar, which are now deprecated…i used my way…each time i run the app was crashed…it says recently error as like " : Attempt to invoke virtual method ‘void 7.(boolean)’ on a null object reference " in the CrimeFragment.java file…pls help me what is iam wrong…is this way i want to using…if not pls correct me…i am pasting the code what i used upto now activity_fragment.xml I am recently start using this pdf bignerd ranch for making app…gladly it says very good
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |