This commit is contained in:
wangcongtao
2020-01-09 21:10:02 +08:00
parent 37046ecf05
commit 37c9477041
9 changed files with 34 additions and 13 deletions

View File

@@ -2,6 +2,7 @@ package com.mogo.module.extensions.entrance;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
@@ -22,6 +23,8 @@ import com.mogo.service.fragmentmanager.FragmentDescriptor;
import com.mogo.service.fragmentmanager.IMogoFragmentManager;
import com.mogo.service.map.IMogoMapService;
import com.mogo.service.module.IMogoModuleProvider;
import com.mogo.service.windowview.IMogoWindowManager;
import com.mogo.utils.TipToast;
/**
* @author congtaowang
@@ -78,6 +81,12 @@ public class EntranceFragment extends MvpFragment< EntranceView, EntrancePresent
mHome = findViewById( R.id.module_entrance_id_home );
mHome.setOnClickListener( view -> {
TextView textView = new TextView(getActivity());
textView.setText("我是window");
textView.setOnClickListener(c -> {
TipToast.shortTip("我是window");
});
( ( IMogoWindowManager ) ARouter.getInstance().build( MogoServicePaths.PATH_WINDOW_MANAGER ).navigation( getContext() ) ).addView(100,textView,200,200,false);
} );
mCompany = findViewById( R.id.module_entrance_id_company );