I have a ProgressDialog that looks like this on a Galaxy Tab 10.1"
and like this on a Galaxy Tab 7"
I want both Dialogs to look the same:
The closest that I get is by using the following style
<style name="popupStyle" parent="android:Theme.Dialog">
<item name="android:textColor">#FFFFFFFF</item>
<item name="android:background">#FF000000</item>
<item name="android:windowBackground">@android:color/transparent</item>
</style>
which results in this
So my questions are:
- How can I remove the border around the "Please wait" title?
- How can I change the overall border from blue to white?
- How can I adjust/reduce the width?
progressDialog = new ProgressDialog(context):
progressDialog.show();
TextView tv1 = (TextView) progressDialog.findViewById(android.R.id.message);
tv1.setTextSize(20);
tv1.setTypeface(yourCustomTF);
tv1.setText("your msg");
By doing it this way, you can change the message text and also customize the entire view by getting their components from the ProgressDialog
that is shown. Remember, you can get the view Id by using findViewById()
after progressDialog.show() because the view is generated after show().
This article may give you some hints on styling your dialogs and they will look the same on both targets.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With