htulipe
htulipe

Reputation: 1585

ProgressBar in ActionBar padding is wrong

In my application I request a determinate progress bar using:

this.requestWindowFeature(Window.FEATURE_PROGRESS);

It works well but the bar does not span to the edges of the screen (see below picture). What could I do to fix this?

I compile against API v22 and I am not using appcompat.

enter image description here

Upvotes: 0

Views: 45

Answers (1)

Msk
Msk

Reputation: 857

I do not know for sure if this will resolve it or if it does, it is the perfect way to do it. I had a similar problem and i had used a negative layout_margin like below

android:layout_marginLeft="-22dp"
android:layout_marginRight="-22dp"

for the progress bar
You could try and see if this helps;-)

Upvotes: 1

Related Questions