Open baohexin opened 6 years ago
设置view 在dialog中,其中RotatingPlane,Pulse,RotatingCircle,Pulse_Ring这几种style不能显示,其它的style都可以显示。 ` View view = LayoutInflater.from(context).inflate(R.layout.loading_dialog, null);
TextView loadingText = (TextView) view.findViewById(R.id.loading_dialog_text); SpinKitView spinKitView = (SpinKitView) view.findViewById(R.id.spin_kit); Style style = Style.values()[position]; Sprite drawable = SpriteFactory.create(style); loadingText.setText(msg); final Dialog mLoadingDialog = new Dialog(context, R.style.loading_dialog_style); mLoadingDialog.setCancelable(false); mLoadingDialog.setContentView(view, new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.MATCH_PARENT));
`
这个问题我也遇到了。请问你解决了吗
设置view 在dialog中,其中RotatingPlane,Pulse,RotatingCircle,Pulse_Ring这几种style不能显示,其它的style都可以显示。 ` View view = LayoutInflater.from(context).inflate(R.layout.loading_dialog, null);
`