32 lines
1004 B
Java
32 lines
1004 B
Java
package com.img.rabbit.uni;
|
|
|
|
import android.content.Context;
|
|
import android.view.View;
|
|
import android.view.ViewGroup;
|
|
import android.widget.FrameLayout;
|
|
import android.widget.ImageView;
|
|
|
|
import com.img.rabbit.R;
|
|
|
|
import io.dcloud.feature.sdk.Interface.IDCUniMPAppSplashView;
|
|
|
|
public class UniMPAlipaySplashView implements IDCUniMPAppSplashView {
|
|
FrameLayout splashView;
|
|
|
|
@Override
|
|
public View getSplashView(Context context, String appid, String s1, String s2) {
|
|
splashView = new FrameLayout(context);
|
|
ImageView imageView = new ImageView(context);
|
|
imageView.setScaleType(ImageView.ScaleType.CENTER_CROP);
|
|
imageView.setImageResource(R.mipmap.ic_launch_alipay_unimp);
|
|
splashView.addView(imageView, ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT);
|
|
return splashView;
|
|
}
|
|
|
|
@Override
|
|
public void onCloseSplash(ViewGroup rootView) {
|
|
if(rootView != null)
|
|
rootView.removeView(splashView);
|
|
}
|
|
}
|