1
This commit is contained in:
@@ -11,6 +11,7 @@ import android.widget.RadioButton;
|
||||
import android.widget.RadioGroup;
|
||||
|
||||
import com.sl.house_property.databinding.ActivityMainTabBinding;
|
||||
import com.sl.house_property.discovery.DiscoveryFragment;
|
||||
|
||||
import tools.Config;
|
||||
|
||||
@@ -27,13 +28,13 @@ implements View.OnClickListener,MainFragment.OnFragmentInteractionListener,
|
||||
*/
|
||||
|
||||
public static final int RESUlT_CODE_0 = 201;//首页
|
||||
public static final int RESUlT_CODE_1 = 202;//商城
|
||||
public static final int RESUlT_CODE_2 = 203;//缴费
|
||||
public static final int RESUlT_CODE_3 = 204;//家政
|
||||
public static final int RESUlT_CODE_1 = 202;//发现
|
||||
public static final int RESUlT_CODE_2 = 203;//购物车
|
||||
// public static final int RESUlT_CODE_3 = 204;//
|
||||
public static final int RESUlT_CODE_4 = 205;//我的
|
||||
private RadioGroup radioGroup;
|
||||
private MainFragment fragment0;
|
||||
private Main1Fragment fragment1;
|
||||
private DiscoveryFragment fragment1;
|
||||
private Main3Fragment fragment2;
|
||||
private Main2Fragment fragment3;
|
||||
private Main4Fragment fragment4;
|
||||
@@ -106,7 +107,7 @@ implements View.OnClickListener,MainFragment.OnFragmentInteractionListener,
|
||||
// mDataBinding.getRoot().setBackground(getResources().getDrawable(R.drawable.background_slowly));
|
||||
if (fragment1 == null) {
|
||||
|
||||
fragment1 = Main1Fragment.newInstance("", "");
|
||||
fragment1 = DiscoveryFragment.newInstance("", "");
|
||||
fragmentTransaction.add(R.id.mycontent, fragment1, "fragment1");
|
||||
} else {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user