添加EntranceFragment底层view增加方法

This commit is contained in:
tongchenfei
2020-08-11 19:05:50 +08:00
parent cdb48ea0d8
commit a11f74e334
6 changed files with 222 additions and 22 deletions

View File

@@ -1,5 +1,6 @@
package com.mogo.service.entrance;
import android.view.View;
import android.widget.TextView;
import com.alibaba.android.arouter.facade.template.IProvider;
@@ -19,4 +20,25 @@ public interface IMogoEntranceButtonController extends IProvider {
* @return
*/
TextView getButton( ButtonIndex index );
/**
* 添加低层级view使用ViewGroup.addView(v,0)实现
* @param view 将要添加的view
*/
void addBottomLayerView(View view);
/**
* 添加低层级view使用ViewGroup.addView(v,0)实现
* 可指定x,y位置
* @param view 将要添加的view
* @param x leftMargin
* @param y topMargin
*/
void addBottomLayerView(View view, int x, int y);
/**
* 移除对应的底层view
* @param view 待移除view
*/
void removeBottomLayerView(View view);
}