Skip to content

Commit 61a694d

Browse files
committed
兼容最低sdk版本为8
1 parent 42c2d25 commit 61a694d

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

app/src/main/java/com/androidkun/xtablayout/MainActivity.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ private void initViewPager() {
3232
if(i%2==0){
3333
fragments.add(new Fragment2());
3434
}else{
35-
3635
fragments.add(new Fragment1());
3736
}
3837
}

app/src/main/res/layout/activity_main.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@
2626
app:xTabDividerWidth="2dp"
2727
app:xTabDividerHeight="15dp"
2828
app:xTabDividerColor="#000"
29-
app:xTabTextSelectedBold="true"/>
29+
app:xTabTextSelectedBold="true"
30+
app:xTabTextBold="true"/>
3031

3132

3233
<android.support.v4.view.ViewPager

xtablayoutlibrary/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ android {
44
buildToolsVersion "23.0.3"
55

66
defaultConfig {
7-
minSdkVersion 16
7+
minSdkVersion 8
88
targetSdkVersion 23
99
versionCode 1
1010
versionName "1.0"

xtablayoutlibrary/src/main/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
22
package="com.androidkun.xtablayoutlibrary">
33

4-
<application android:allowBackup="true" android:label="@string/app_name"
4+
<application android:label="@string/app_name"
55
android:supportsRtl="true">
66

77
</application>

0 commit comments

Comments
 (0)