开发者

android:Can we use XML layout for popup window insted of dynamic?

开发者 https://www.devze.com 2023-03-01 05:03 出处:网络
开发者_StackOverflow中文版Can we use XML layout for popup window insted of dynamic? please give me a example
开发者_StackOverflow中文版

Can we use XML layout for popup window insted of dynamic? please give me a example

Thanks a lot...


Give this a try:

   public class MyLoadingDialog extends Dialog {

    public MyLoadingDialog(Context context) {
        super(context);
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        setContentView(R.layout.mylayoutfile);
    } 
}
0

精彩评论

暂无评论...
验证码 换一张
取 消