2 | You can do this by using the following xml With this style To use this, you must hide your UI elements by setting the visiblity value to GONE and whenever the data is loaded, call setVisiblity(View.VISIBLE) on all your views to restore them. Don't forget to callfindViewByID(R.id.loadingPanel).setVisiblity(View.GONE) to hide the loading animation.If you dont have a loading event/function but just want the loading panel to disappear after x seconds use a Handle to trigger the hiding/showing. From http://stackoverflow.com/questions/5442183/using-the-animated-circle-in-an-imageview-while-loading-stuff |
วันอังคารที่ 21 กุมภาพันธ์ พ.ศ. 2555
“animated circle” in an ImageView while loading stuff
สมัครสมาชิก:
ส่งความคิดเห็น (Atom)
ไม่มีความคิดเห็น:
แสดงความคิดเห็น