final ViewGroup decorView = (ViewGroup) getActivity().getWindow().getDecorView().findViewById(android.R.id.content);
final ImageView guideImage = new ImageView(getActivity());
// //guideImage.setAlpha(5);
FrameLayout.LayoutParams params = new FrameLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT);
guideImage.setLayoutParams(params);
guideImage.setScaleType(ImageView.ScaleType.FIT_XY);
guideImage.setImageResource(imageResource[guideIndex]);
guideImage.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
decorView.removeView(guideImage);
guideIndex++;
addGuideImage();
}
});
decorView.addView(guideImage);//添加引导图片
这个是需要美工提供图片。