[2.12.0] local code style change
This commit is contained in:
@@ -2,14 +2,8 @@ package com.mogo.service;
|
||||
|
||||
|
||||
import com.alibaba.android.arouter.facade.template.IProvider;
|
||||
import com.mogo.service.analytics.IMogoAnalytics;
|
||||
import com.mogo.service.fragmentmanager.IMogoFragmentManager;
|
||||
import com.mogo.service.imageloader.IMogoImageloader;
|
||||
import com.mogo.service.intent.IMogoIntentManager;
|
||||
import com.mogo.service.module.IMogoRegisterCenter;
|
||||
import com.mogo.service.statusmanager.IMogoStatusManager;
|
||||
import com.mogo.service.v2x.DisplayEffectsInterface;
|
||||
import com.mogo.service.windowview.IMogoTopViewManager;
|
||||
import com.mogo.service.windowview.IMogoWindowManager;
|
||||
|
||||
/**
|
||||
@@ -21,33 +15,6 @@ import com.mogo.service.windowview.IMogoWindowManager;
|
||||
|
||||
public interface IMogoServiceApis extends IProvider {
|
||||
|
||||
/**
|
||||
* 获取埋点接口实例
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
IMogoAnalytics getAnalyticsApi();
|
||||
|
||||
/**
|
||||
* fragment 管理接口
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
IMogoFragmentManager getFragmentManagerApi();
|
||||
|
||||
/**
|
||||
* 图片加载
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
IMogoImageloader getImageLoaderApi();
|
||||
|
||||
/**
|
||||
* 广播、语音指令分发
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
IMogoIntentManager getIntentManagerApi();
|
||||
|
||||
/**
|
||||
* 各业务回调接口注册接口
|
||||
@@ -70,19 +37,4 @@ public interface IMogoServiceApis extends IProvider {
|
||||
*/
|
||||
IMogoWindowManager getWindowManagerApi();
|
||||
|
||||
|
||||
/**
|
||||
* 获取顶部1/2屏界面管理类
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
IMogoTopViewManager getTopViewManager();
|
||||
|
||||
/**
|
||||
* 浓雾等极端事件特殊效果管理类
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
DisplayEffectsInterface getDisplayEffectsManager();
|
||||
|
||||
}
|
||||
|
||||
@@ -1,27 +0,0 @@
|
||||
package com.mogo.service.analytics;
|
||||
|
||||
import androidx.annotation.Keep;
|
||||
|
||||
import com.alibaba.android.arouter.facade.template.IProvider;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @author congtaowang
|
||||
* @since 2019-12-23
|
||||
* <p>
|
||||
* 埋点业务接口
|
||||
*/
|
||||
@Keep
|
||||
public interface IMogoAnalytics extends IProvider {
|
||||
|
||||
/**
|
||||
* 埋点
|
||||
*
|
||||
* @param event 事件名称
|
||||
* @param properties 埋点参数
|
||||
*/
|
||||
@Keep
|
||||
@Deprecated
|
||||
void track( String event, Map< String, Object > properties );
|
||||
}
|
||||
@@ -1,77 +0,0 @@
|
||||
package com.mogo.service.fragmentmanager;
|
||||
|
||||
import androidx.fragment.app.Fragment;
|
||||
|
||||
/**
|
||||
* @author congtaowang
|
||||
* @since 2020-01-08
|
||||
* <p>
|
||||
* 加入栈中的fragment
|
||||
*/
|
||||
public class FragmentDescriptor {
|
||||
|
||||
private Fragment mFragment;
|
||||
|
||||
private String mTag;
|
||||
/**
|
||||
* 是否需要主页面的UI联动
|
||||
*/
|
||||
private boolean mNotifyMainModule = true;
|
||||
|
||||
/**
|
||||
* 是否有进入动画
|
||||
*/
|
||||
private boolean mHasTransition = false;
|
||||
|
||||
public FragmentDescriptor() {
|
||||
}
|
||||
|
||||
public Fragment getFragment() {
|
||||
return mFragment;
|
||||
}
|
||||
|
||||
public String getTag() {
|
||||
return mTag;
|
||||
}
|
||||
|
||||
public boolean isNotifyMainModule() {
|
||||
return mNotifyMainModule;
|
||||
}
|
||||
|
||||
public boolean hasTransition() {
|
||||
return mHasTransition;
|
||||
}
|
||||
|
||||
public static class Builder {
|
||||
|
||||
private FragmentDescriptor descriptor;
|
||||
|
||||
public Builder() {
|
||||
descriptor = new FragmentDescriptor();
|
||||
}
|
||||
|
||||
public Builder fragment( Fragment fragment ) {
|
||||
descriptor.mFragment = fragment;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder tag( String tag ) {
|
||||
descriptor.mTag = tag;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder notifyMainModule( boolean notify ) {
|
||||
descriptor.mNotifyMainModule = notify;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder hasTransition( boolean hasTransition ) {
|
||||
descriptor.mHasTransition = hasTransition;
|
||||
return this;
|
||||
}
|
||||
|
||||
public FragmentDescriptor build() {
|
||||
return descriptor;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
package com.mogo.service.fragmentmanager;
|
||||
|
||||
/**
|
||||
* @author congtaowang
|
||||
* @since 2020-01-08
|
||||
* <p>
|
||||
* fragment 栈发生变化
|
||||
*/
|
||||
public interface FragmentStackTransactionListener {
|
||||
|
||||
/**
|
||||
* @param size 栈内的fragment数量
|
||||
*/
|
||||
void onTransaction( int size );
|
||||
}
|
||||
@@ -1,22 +0,0 @@
|
||||
package com.mogo.service.fragmentmanager;
|
||||
|
||||
import android.os.Bundle;
|
||||
|
||||
import androidx.fragment.app.Fragment;
|
||||
import androidx.fragment.app.FragmentActivity;
|
||||
|
||||
import com.alibaba.android.arouter.facade.template.IProvider;
|
||||
|
||||
public
|
||||
/**
|
||||
* @author congtaowang
|
||||
* @since 2020/9/1
|
||||
*
|
||||
* 描述
|
||||
*/
|
||||
interface IFragmentProvider extends IProvider {
|
||||
|
||||
Fragment createFragment( FragmentActivity activity, int containerId, Bundle date );
|
||||
|
||||
public void onDestroy();
|
||||
}
|
||||
@@ -1,83 +0,0 @@
|
||||
package com.mogo.service.fragmentmanager;
|
||||
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
|
||||
import com.alibaba.android.arouter.facade.template.IProvider;
|
||||
|
||||
/**
|
||||
* @author congtaowang
|
||||
* @since 2020-01-08
|
||||
* <p>
|
||||
* fragment 管理接口
|
||||
*/
|
||||
public interface IMogoFragmentManager extends IProvider {
|
||||
|
||||
/**
|
||||
* 显示fragment并加入回退栈
|
||||
*
|
||||
* @param descriptor fragment描述
|
||||
*/
|
||||
void push( FragmentDescriptor descriptor );
|
||||
|
||||
/**
|
||||
* 将当前 fragment 出栈
|
||||
*/
|
||||
void pop();
|
||||
|
||||
/**
|
||||
* 栈大小
|
||||
*
|
||||
* @return 栈内的 fragment 数量
|
||||
*/
|
||||
int getStackSize();
|
||||
|
||||
/**
|
||||
* 退出栈中所有fragment
|
||||
*/
|
||||
void clearAll();
|
||||
|
||||
/**
|
||||
* 主页注册栈变化监听
|
||||
*
|
||||
* @param listener
|
||||
*/
|
||||
void registerMainFragmentStackTransactionListener( FragmentStackTransactionListener listener );
|
||||
|
||||
/**
|
||||
* 主页移除栈变化监听
|
||||
*/
|
||||
void unregisterMainFragmentStackTransactionListener();
|
||||
|
||||
/**
|
||||
* 其他注册栈变化监听
|
||||
*
|
||||
* @param listener
|
||||
*/
|
||||
void addMainFragmentStackTransactionListener( FragmentStackTransactionListener listener );
|
||||
|
||||
/**
|
||||
* 移除其他注册栈变化监听
|
||||
*
|
||||
* @param listener
|
||||
*/
|
||||
void removeMainFragmentStackTransactionListener( FragmentStackTransactionListener listener );
|
||||
|
||||
/**
|
||||
* 初始化
|
||||
*
|
||||
* @param activity
|
||||
* @param containerId
|
||||
*/
|
||||
void init( AppCompatActivity activity, int containerId );
|
||||
|
||||
/**
|
||||
* 缓存历史消息
|
||||
*
|
||||
* @param layoutId
|
||||
*/
|
||||
void initMessageHistoryContainerId( int layoutId );
|
||||
|
||||
int getMessageHistoryContainerId();
|
||||
|
||||
void destroy();
|
||||
}
|
||||
@@ -1,33 +0,0 @@
|
||||
package com.mogo.service.imageloader;
|
||||
|
||||
import android.graphics.Bitmap;
|
||||
|
||||
import androidx.annotation.Keep;
|
||||
|
||||
/**
|
||||
* @author congtaowang
|
||||
* @since 2019-12-23
|
||||
* <p>
|
||||
* 图片加载接口
|
||||
*/
|
||||
@Keep
|
||||
public interface IMogoImageLoaderListener {
|
||||
|
||||
/**
|
||||
* 开始加载
|
||||
*/
|
||||
@Keep
|
||||
void onStart();
|
||||
|
||||
/**
|
||||
* 加载完成
|
||||
*/
|
||||
@Keep
|
||||
void onCompleted( Bitmap bitmap );
|
||||
|
||||
/**
|
||||
* 加载失败
|
||||
*/
|
||||
@Keep
|
||||
void onFailure( Exception e );
|
||||
}
|
||||
@@ -1,75 +0,0 @@
|
||||
package com.mogo.service.imageloader;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
import androidx.annotation.Keep;
|
||||
|
||||
import com.alibaba.android.arouter.facade.template.IProvider;
|
||||
|
||||
/**
|
||||
* @author congtaowang
|
||||
* @since 2019-12-23
|
||||
* <p>
|
||||
* 图片接口,使用
|
||||
*/
|
||||
@Keep
|
||||
public interface IMogoImageloader extends IProvider {
|
||||
|
||||
/**
|
||||
* 加载图片
|
||||
*
|
||||
* @param url 图片地址
|
||||
* @param imageView 特定的图片控件
|
||||
*/
|
||||
@Keep
|
||||
void displayImage( String url, MogoImageView imageView );
|
||||
|
||||
/**
|
||||
* 加载图片
|
||||
*
|
||||
* @param url 图片地址
|
||||
* @param imageView 图片控件
|
||||
* @param width 图片宽度
|
||||
* @param height 图片高度
|
||||
*/
|
||||
@Keep
|
||||
void displayImage( String url, MogoImageView imageView, int width, int height );
|
||||
|
||||
/**
|
||||
* 加载图片
|
||||
*
|
||||
* @param url 图片地址
|
||||
* @param imageView 图片控件
|
||||
* @param width 图片宽度
|
||||
* @param height 图片高度
|
||||
* @param listener 加载回调
|
||||
*/
|
||||
@Keep
|
||||
void displayImage( String url, MogoImageView imageView, int width, int height, final IMogoImageLoaderListener listener );
|
||||
|
||||
/**
|
||||
* 加载图片
|
||||
*
|
||||
* @param url 图片地址
|
||||
* @param imageView 图片控件
|
||||
* @param listener 加载回调
|
||||
*/
|
||||
@Keep
|
||||
void displayImage( String url, MogoImageView imageView, final IMogoImageLoaderListener listener );
|
||||
|
||||
/**
|
||||
* 下载图片
|
||||
*
|
||||
* @param context
|
||||
* @param url 图片地址
|
||||
* @param listener 下载回调
|
||||
*/
|
||||
@Keep
|
||||
void downloadImage( Context context, String url, IMogoImageLoaderListener listener );
|
||||
|
||||
/**
|
||||
* 请勿调用
|
||||
*/
|
||||
@Keep
|
||||
void destroy();
|
||||
}
|
||||
@@ -1,178 +0,0 @@
|
||||
package com.mogo.service.imageloader;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.res.TypedArray;
|
||||
import android.graphics.Color;
|
||||
import android.graphics.Matrix;
|
||||
import android.util.AttributeSet;
|
||||
|
||||
import androidx.annotation.DrawableRes;
|
||||
import androidx.annotation.Keep;
|
||||
|
||||
import com.facebook.drawee.view.GenericDraweeView;
|
||||
import com.mogo.service.R;
|
||||
|
||||
/**
|
||||
* @author congtaowang
|
||||
* @since 2019-12-23
|
||||
* <p>
|
||||
* 封装 facebook GenericDraweeView,实现占位图、失败占位图、形状、边框、模糊等效果
|
||||
*/
|
||||
@Keep
|
||||
public class MogoImageView extends GenericDraweeView {
|
||||
|
||||
private int mPlaceHolder;
|
||||
private int mFailureHolder;
|
||||
private int mOverlayImageId;
|
||||
private int mShape;
|
||||
private int mRadius;
|
||||
private int mTopLeftRadius;
|
||||
private int mTopRightRadius;
|
||||
private int mBottomLeftRadius;
|
||||
private int mBottomRightRadius;
|
||||
private int mBorderWidth;
|
||||
private int mBorderColor;
|
||||
private int mBlurRadius;
|
||||
private boolean mIsBlur;
|
||||
|
||||
public static final int SHAPE_NORMAL = 0;
|
||||
public static final int SHAPE_CIRCLE = 1;
|
||||
public static final int SHAPE_ROUND = 2;
|
||||
|
||||
public MogoImageView(Context context) {
|
||||
this(context, null, 0);
|
||||
}
|
||||
|
||||
public MogoImageView(Context context, AttributeSet attrs) {
|
||||
this(context, attrs, 0);
|
||||
}
|
||||
|
||||
public MogoImageView(Context context, AttributeSet attrs, int theme) {
|
||||
super(context, attrs, theme);
|
||||
TypedArray arrays = context.obtainStyledAttributes(attrs, R.styleable.MogoImageView);
|
||||
mPlaceHolder = arrays.getResourceId(R.styleable.MogoImageView_miv_placeHolder, 0);
|
||||
mFailureHolder = arrays.getResourceId(R.styleable.MogoImageView_miv_failureHolder, 0);
|
||||
mOverlayImageId = arrays.getResourceId(R.styleable.MogoImageView_miv_overlayImageId, 0);
|
||||
mShape = arrays.getInt(R.styleable.MogoImageView_miv_shape, SHAPE_NORMAL);
|
||||
mRadius = arrays.getDimensionPixelSize(R.styleable.MogoImageView_miv_radius, 0);
|
||||
mTopLeftRadius = arrays.getDimensionPixelSize(R.styleable.MogoImageView_miv_topLeftRadius, 0);
|
||||
mTopRightRadius = arrays.getDimensionPixelSize(R.styleable.MogoImageView_miv_topRightRadius, 0);
|
||||
mBottomLeftRadius = arrays.getDimensionPixelSize(R.styleable.MogoImageView_miv_bottomLeftRadius, 0);
|
||||
mBottomRightRadius = arrays.getDimensionPixelSize(R.styleable.MogoImageView_miv_bottomRightRadius, 0);
|
||||
mBorderWidth = arrays.getDimensionPixelSize(R.styleable.MogoImageView_miv_shapeBorderWidth, 0);
|
||||
mBorderColor = arrays.getColor(R.styleable.MogoImageView_miv_borderColor, Color.WHITE);
|
||||
mIsBlur = arrays.getBoolean(R.styleable.MogoImageView_miv_isBlur, false);
|
||||
mBlurRadius = arrays.getInt(R.styleable.MogoImageView_miv_blurRadius, 25);
|
||||
arrays.recycle();
|
||||
setImageResource(mPlaceHolder);
|
||||
}
|
||||
|
||||
public void setRadius(float radius) {
|
||||
this.mRadius = (int) radius;
|
||||
}
|
||||
|
||||
public void setRadius(int[] radius) {
|
||||
if (radius != null && radius.length == 8) {
|
||||
mTopLeftRadius = radius[0] >= radius[1] ? radius[0] : radius[1];
|
||||
mTopRightRadius = radius[2] >= radius[3] ? radius[2] : radius[3];
|
||||
mBottomRightRadius = radius[4] >= radius[5] ? radius[4] : radius[5];
|
||||
mBottomLeftRadius = radius[6] >= radius[7] ? radius[6] : radius[7];
|
||||
}
|
||||
}
|
||||
|
||||
public void setShape(int shape) {
|
||||
this.mShape = shape;
|
||||
}
|
||||
|
||||
public void setBorderWidth(int width) {
|
||||
this.mBorderWidth = width;
|
||||
}
|
||||
|
||||
public void setBorderColor(int color) {
|
||||
this.mBorderColor = color;
|
||||
}
|
||||
|
||||
public void setPlaceHolder(int placeHolder) {
|
||||
this.mPlaceHolder = placeHolder;
|
||||
}
|
||||
|
||||
public void setFailureHolder(int failureHolder) {
|
||||
this.mFailureHolder = failureHolder;
|
||||
}
|
||||
|
||||
public void setOverlayImageId(@DrawableRes int overlayImageId) {
|
||||
this.mOverlayImageId = overlayImageId;
|
||||
}
|
||||
|
||||
public void setBlur(boolean isBlur) {
|
||||
this.mIsBlur = isBlur;
|
||||
}
|
||||
|
||||
public void setBlurRadius(int blurRadius) {
|
||||
this.mBlurRadius = blurRadius;
|
||||
}
|
||||
|
||||
public int getPlaceHolder() {
|
||||
return mPlaceHolder;
|
||||
}
|
||||
|
||||
public int getFailureHolder() {
|
||||
return mFailureHolder;
|
||||
}
|
||||
|
||||
public int getOverlayImageId() {
|
||||
return mOverlayImageId;
|
||||
}
|
||||
|
||||
public int getShape() {
|
||||
return mShape;
|
||||
}
|
||||
|
||||
public float[] getRadii() {
|
||||
if (mTopLeftRadius != 0 || mTopRightRadius != 0 || mBottomRightRadius != 0 || mBottomLeftRadius != 0) {
|
||||
float[] radii = {mTopLeftRadius, mTopLeftRadius, mTopRightRadius, mTopRightRadius,
|
||||
mBottomRightRadius, mBottomRightRadius, mBottomLeftRadius, mBottomLeftRadius};
|
||||
return radii;
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public int getRadius() {
|
||||
return mRadius;
|
||||
}
|
||||
|
||||
public int getBorderWidth() {
|
||||
return mBorderWidth;
|
||||
}
|
||||
|
||||
public int getBorderColor() {
|
||||
return mBorderColor;
|
||||
}
|
||||
|
||||
public boolean isBlur() {
|
||||
return mIsBlur;
|
||||
}
|
||||
|
||||
public int getBlurRadius() {
|
||||
return mBlurRadius;
|
||||
}
|
||||
|
||||
public String getParams() {
|
||||
StringBuilder builder = new StringBuilder();
|
||||
builder.append(mIsBlur).append(mBlurRadius)
|
||||
.append(mShape).append(mRadius)
|
||||
.append(mBorderWidth).append(mBorderColor);
|
||||
return builder.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* 解决共享动画无效的问题
|
||||
*
|
||||
* @param matrix
|
||||
*/
|
||||
public void animateTransform(Matrix matrix) {
|
||||
invalidate();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,18 +0,0 @@
|
||||
package com.mogo.service.intent;
|
||||
|
||||
import android.content.Intent;
|
||||
|
||||
/**
|
||||
* @author congtaowang
|
||||
* @since 2020-01-09
|
||||
* <p>
|
||||
* 免唤醒语音监听
|
||||
*/
|
||||
public interface IMogoIntentListener {
|
||||
|
||||
/**
|
||||
* @param intentStr 广播action、语音 command
|
||||
* @param intent 意图
|
||||
*/
|
||||
void onIntentReceived( String intentStr, Intent intent );
|
||||
}
|
||||
@@ -1,36 +0,0 @@
|
||||
package com.mogo.service.intent;
|
||||
|
||||
import android.content.Intent;
|
||||
|
||||
import com.alibaba.android.arouter.facade.template.IProvider;
|
||||
|
||||
/**
|
||||
* @author congtaowang
|
||||
* @since 2020-01-09
|
||||
* <p>
|
||||
* 唤醒语音控制
|
||||
*/
|
||||
public interface IMogoIntentManager extends IProvider {
|
||||
|
||||
/**
|
||||
* 注册意图接收者
|
||||
*
|
||||
* @param intent
|
||||
*/
|
||||
public void registerIntentListener( String intent, IMogoIntentListener listener );
|
||||
|
||||
/**
|
||||
* 注册意图接收者
|
||||
*
|
||||
* @param intent
|
||||
*/
|
||||
public void unregisterIntentListener( String intent, IMogoIntentListener listener );
|
||||
|
||||
/**
|
||||
* 触发意图回调,各业务不用关心
|
||||
*
|
||||
* @param intentStr
|
||||
* @param intent
|
||||
*/
|
||||
public void invoke( String intentStr, Intent intent );
|
||||
}
|
||||
@@ -47,8 +47,6 @@ public interface IMogoModuleProvider extends IProvider {
|
||||
/**
|
||||
* 是哪种类型的提供者
|
||||
* <p>
|
||||
* {@link ModuleType}
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
int getType();
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
package com.mogo.service.module;
|
||||
|
||||
/**
|
||||
* @author congtaowang
|
||||
* @since 2020-01-03
|
||||
* <p>
|
||||
* 模块类型
|
||||
*/
|
||||
public interface ModuleType {
|
||||
/**
|
||||
* 服务类型的模块
|
||||
*/
|
||||
int TYPE_SERVICE = 3;
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
package com.mogo.service.v2x;
|
||||
|
||||
import com.alibaba.android.arouter.facade.template.IProvider;
|
||||
|
||||
/**
|
||||
* created by wujifei on 2021/3/30 15:41
|
||||
* describe:
|
||||
*/
|
||||
public interface DisplayEffectsInterface extends IProvider {
|
||||
/**
|
||||
* 展示浓雾等极端事件特殊效果
|
||||
* @param type 效果类型
|
||||
*/
|
||||
void displayEffects(String type);
|
||||
}
|
||||
@@ -1,54 +0,0 @@
|
||||
package com.mogo.service.windowview;
|
||||
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
|
||||
import com.alibaba.android.arouter.facade.template.IProvider;
|
||||
|
||||
/**
|
||||
* 管理1/2屏界面的增添,为了配合导航展示新增接口
|
||||
*/
|
||||
public interface IMogoTopViewManager extends IProvider {
|
||||
/**
|
||||
* 在1/2屏添加一个view,如果没显示,会有动画
|
||||
* 给了一个默认的LayoutParams(MatchParent,dp_350)
|
||||
*
|
||||
* @param view 增加的view
|
||||
*/
|
||||
void addView(View view);
|
||||
|
||||
/**
|
||||
* 在1/2屏添加一个view,如果没显示,会有动画,可通过设置监听,来监听增加的view的状态
|
||||
* 给了一个默认的LayoutParams(MatchParent,dp_350)
|
||||
*
|
||||
* @param statusListener 状态监听
|
||||
* @param view 增加的view
|
||||
*/
|
||||
void addView(View view, IMogoTopViewStatusListener statusListener);
|
||||
|
||||
/**
|
||||
* 在1/2屏添加一个view,如果没显示,会有动画
|
||||
*
|
||||
* @param view 增加的view
|
||||
* @param params 相关参数
|
||||
*/
|
||||
void addView(View view, ViewGroup.LayoutParams params);
|
||||
|
||||
/**
|
||||
* 在1/2屏添加一个view,如果没显示,会有动画,可通过设置监听,来监听增加的view的状态
|
||||
*
|
||||
* @param view 增加的view
|
||||
* @param params 相关参数
|
||||
* @param statusListener 状态监听
|
||||
*/
|
||||
void addView(View view, ViewGroup.LayoutParams params,
|
||||
IMogoTopViewStatusListener statusListener);
|
||||
|
||||
/**
|
||||
* 移除view,如果是最后一个view,会有移除动画
|
||||
*
|
||||
* @param view 待移除的 view
|
||||
*/
|
||||
void removeView(View view);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user