我一直在使用Android ProgressBar。
这里唯一的事情是针对特定的应用程序,我需要ProgressBar不能具有半透明的背景。我的意思是,进度条是半透明的,您仍然可以看到其后的视图。
实际上,我需要完整的背景不透明度(黑色,白色,无所谓)。只要后面的面板可以使用进度条隐藏即可。
我不能只使用Panel本身并为其设置背景,因为它是Web Panel(正在发生JS事务)。
感谢您的回覆
问候
最佳答案
尝试这个:
TextView tv = (TextView) progressDialog.findViewById(android.R.id.message);
tv.setTextColor(Portlet.MessageFontColor);
View v = (View) tv.getParent();
((ScrollView) v).setBackgroundColor(Portlet.messageBackColor);
v = (View) v.getParent();
v.setBackgroundColor(Portlet.messageBackColor);
LinearLayout ll = (LinearLayout) v.getParent();
ll.setBackgroundColor(Portlet.messageBackColor);