Hi, I'm the developer of Beaver, a tabbed browser on the android market.
MIUI users are getting force closes when trying to run my app, and I've tracked down the bug to the creation of a horizontal progress bar. Android complains that a layout height wasn't specified and therefore force closes. I'm guessing that MIUI overrides the standard android themes. Here's the code I use to create my progressbar: you can use it to replicate this issue:
You can also see this issue when running the lite version of the app:
The standard android.R.attr.progressBarStyleHorizontal specifies minheight and minwidth attributes, possibly that's what the issue is?
MIUI users are getting force closes when trying to run my app, and I've tracked down the bug to the creation of a horizontal progress bar. Android complains that a layout height wasn't specified and therefore force closes. I'm guessing that MIUI overrides the standard android themes. Here's the code I use to create my progressbar: you can use it to replicate this issue:
You can also see this issue when running the lite version of the app:
Code:
RelativeLayout mRelative = new RelativeLayout(this);
mRelative.setGravity(Gravity.FILL);
mRelative.setBackgroundColor(Color.parseColor("#000000"));
RelativeLayout.LayoutParams b = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.FILL_PARENT, 20);
loadingProgressBar = new ProgressBar(this, null, android.R.attr.progressBarStyleHorizontal);
loadingProgressBar.setId(678);
loadingProgressBar.setMax(100);
loadingProgressBar.setBackgroundColor(Color.parseColor("#696969"));
b.addRule(RelativeLayout.CENTER_HORIZONTAL);
mRelative.addView(loadingProgressBar, b);
The standard android.R.attr.progressBarStyleHorizontal specifies minheight and minwidth attributes, possibly that's what the issue is?