Android fragments xml crash -


When I change my set content view to an XML layout and I'm not sure what's wrong, two pieces in the program There is a list view on the left and a web view on the right when it is in the scenario and is considered to be the only list in the picture, sorry for all the code, I have not yet figured out what is happening.

This is my main activity

  the expansion of the public class main activity activity (static final string LOGTAG = MainActivity.class.getSimpleName () + "_TAG"; static resources mRes = Faucet; Fixed fragment manager mFrgmntMngr = faucet; static main activity M itAct = null; @ override protected form to zero (bundle saved instenstate) {super.Nocrat (saved instenstate); FragmentManager.enableDebugLogging (right); setContentView (R) .layout.activity_main_1view); MRS = Miller Resource (); MFrgmntMngr = ge TFragmentManager (); MThis act = it;} Static Boolean InlandScape Orientation () {return is mRes.get configuration (). Orientation == Configuration Orientation_ LANDSCAPE;} @ Override Public Boolean On Crate Option Menu (menu menu) {// menu Spread; It adds items to the action bar if it exists GetMenuInflater () .fluo (R. menu menu, menu); back true;} @ override public boolean on option etam select (menu item) {// handle action bar Items here Click the Action bar automatically Home / up will automatically manage clicks on the button, // so long as you specify a parental activity in AndroidManifest.xml. Int id = item.getItemId (); If (id == R.id.action_settings) {return true; } Return Super.Options item selected (item); } Public zero performance world text (int mCurPosition) {// TODO stub automatically generated method (if InLandscapeOrientation ()) // Check which piece is shown, if necessary change TwainTitleWebViewFragment tTxtFrgmnt = (TwainTitleWebViewFragment) mFrgmntMngr FindFragmentById (R.id.twain_title_list); If (tTxtFrgmnt == faucet || tTxtFrgmnt.getDisplayedTwainIndex ()! = MCurPosition) // Create a new piece to show this selection. TTxtFrgmnt = TwainTitleWebViewFragment.newInstance (mCurPosition); // Execute a single transaction, in place of any existing // piece inside any existing frame. Log D. (LOGTAG, "About running frigate transaction ..."); Piece transaction frag_trans = mFrgmntMngr.beginTransaction (); Frag_trans.setCustomAnimations (R.animator.bounce_in_down, R.animator.fade_out); Frag_trans.setCustomAnimations (R.animator.bounce_in_down, R.animator.slide_out_right); Frag_trans.replace (R.id.list, tTxtFrgmnt); Frag_trans.commit (); }} Else {// Otherwise, we need to start a new activity to show the communication equivalence with the chosen text. I intent = new intent (); Intent.setClass (mThisAct, TwainTitleViewActivity.class); Intent.putExtra (mRes.getString (R.string.twain_index_key), mCurPosition); This.startActivity; }}}  

This activity has activity_man_view.xml in the folder outside

   & Lt; / LinearLayout & gt;  

This layout is one of the land

   & Lt; / LinearLayout & gt;  

This log cat Enter image details here

< / Div>

You can not have numbers or uppercase letters when giving names to your xml files.

should be activity_main1view.xml except activity_mainview.xml excluding "1" from the layout name.


Comments

Popular posts from this blog

winforms - C# Form - Property Change -

c# - NewtonSoft JArray - how to select multiple elements with LINQ -

javascript - amcharts makechart not working -