zoukankan      html  css  js  c++  java
  • android 弹出全局加载等待动画

       /**
         * 弹出loading动画
         */
        public static void showLoading(Activity activity) {
            View popView = activity.getLayoutInflater().inflate(R.layout.pop_loading_layout, null, false);
            //运行动画
            ((AnimationDrawable) (popView.findViewById(R.id.carAnim)).getBackground()).start();
    
            loading = new PopupWindow(popView,
                    ViewGroup.LayoutParams.MATCH_PARENT,
                    ViewGroup.LayoutParams.MATCH_PARENT);
            loading.setTouchable(true);
            loading.setOutsideTouchable(false);
            loading.setBackgroundDrawable(null);
         //获取Activity的内容页        
         loading.showAtLocation(activity.getWindow().getDecorView().findViewById(android.R.id.content), Gravity.START | Gravity.TOP, 0, 0); loading.update(); }

      

  • 相关阅读:
    C++防止头文件反复包括
    yppasswd, ypchfn, ypchsh
    yes
    Yacc
    xxd
    xpdf -Portable Document Format(PDF)文件阅读器
    xinetd
    xargs
    x25, PF_X25
    write -在一个文件描述符上执行写操作
  • 原文地址:https://www.cnblogs.com/sun-yang-/p/5166800.html
Copyright © 2011-2022 走看看