android - Fragment Default View Wont Change -


I need help

How does this look like my application? I get two (2) pieces Where the left side is for the button and on the right is for my details.

The bigger piece is a display display that I said splash, an image is seen here, a large image that can take the height of the device.

Then my case happens when I press the Click / button 1, it will display that piece, but the image still exists.
My question is now, how can I get rid of 'splash display'?

Here is my code

  / ** * Override public null on the main listener * / @MainListener (string keypress) {piece fr = null; If (whatpress.equals ("button1") fr = new fragmentation (); If (whatpress.equals ("button2") fr = new piece (); If (whatpress.equals ("button3") fr = new piece (); Fragment Manager FM = Faculty Manager (); Piece transaction piece transaction = FM. BBT transactions (); Piece transaction. Rale (RD Distragment, FR, Whitpress); FragmentTransaction.commit (); }  

The above code is a handle that presses the button.

  & lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; LinearLayout xmlns: Android = "http://schemas.android.com/apk/res/android" Android: layout_width = "match_parent" Android: layout_height = "match_parent" Android: orientation = "horizontal" & gt; & Lt; Android: layout_width = "0dp" Android: layout_weight = "1" Android: layout_height = "match_parent" class = "com.mizsh.fragment_Menu" / slice Android: id = "@ + id / menuFragment" Android: name = "FragmentMenu" & Gt; & Lt; Android: layout_heid = "match_parent" /> & Lt; / LinearLayout & gt;  

The above code is my main one. Xml

Figure 1

You should replace the detailfragment framelayout

    

with onCreate activity in

FragmentTransaction fragmentTransaction = FM .beginTransaction ( ); Section transaction Replay (RIDDitalFragment, FragmentSpace, Blank); FragmentTransaction.commit ();

then replace with the selected piece of

  Fragment Transaction Fragment Transaction = FM. BBT transactions (); Section Transaction. Relyst (RIDDitalFragment, Selected Fragment, Blank); FragmentTransaction.commit ();  

Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -