when I upgrade support for Android support from 23.0.1 to 23.1.0, I find that SeekBar is no longer full width.
This is a test XML file:
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content" android:divider="@drawable/space_divider" android:orientation="vertical" android:padding="8dp" android:showDividers="middle"> <View android:layout_width="match_parent" android:layout_height="20dp" android:background="@android:color/black"/> <SeekBar android:layout_width="match_parent" android:layout_height="10dp" android:progress="50" android:progressTint="@android:color/holo_red_dark"/> <SeekBar android:layout_width="match_parent" android:layout_height="10dp" android:padding="0dp" android:progress="50" android:progressTint="@android:color/holo_red_dark"/> <SeekBar android:layout_width="match_parent" android:layout_height="10dp" android:padding="40dp" android:progress="50" android:progressTint="@android:color/holo_red_dark"/> <android.support.v7.widget.AppCompatSeekBar android:layout_width="match_parent" android:layout_height="10dp" android:padding="0dp" android:progress="50"/> </LinearLayout>
It works well under lib 23.0.1 support, like the following screenshot. SeekBar has a default padding, when I set padding = 0 manual, it can be full width. and AppCompatSeekBar does not exist yet.

but under lib 23.1.0 support, regardless of whether the fill size is set, SeekBar and AppCompatSeekBar do not have any changes, for example, the following screenshot.

So, is this a lib support bug, is any authority responding to this problem and how to solve it?
thanks ~!
update:
This completely confused me, I just have one more test, I create a new project, regardless of whether I use AppCompat 23.0.1 or 23.1.0, SeekBar cannot be full width after setting padding = 0 (compileSdkVersion is 23, buildToolsVersion - 23.0.1 ", targetSdkVersion - 23). Anyway, I want to know how to make the SeekBar full width when set padding = 0 does not work.
build.gradle:
apply plugin: 'com.android.application' android { compileSdkVersion 23 buildToolsVersion "23.0.1" defaultConfig { applicationId "com.test.seekbar" minSdkVersion 14 targetSdkVersion 23 versionCode 1 versionName "1.0" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) testCompile 'junit:junit:4.12' compile 'com.android.support:appcompat-v7:23.0.1' }
source share