I have a progress bar defined thanks to this code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent">
<ProgressBar
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
style="?android:attr/progressBarStyleHorizontal"
android:indeterminate="true"
android:paddingTop="0dp"
android:paddingBottom="0dp"
android:id="@+id/fragment_article_progressBar"
android:visibility="visible"
/>
<WebView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/fragment_article_content"/>
</LinearLayout>
But when I run it, some padding is added above and below the ProgressBar
It doesn't seem very natural.
Is it the normal style of a horizontal ProgressBar
? If no, how can I fix it?
Cheers