Skip to content

Commit

Permalink
[UPDATE] Update color tab
Browse files Browse the repository at this point in the history
  • Loading branch information
adrie4mac committed Oct 9, 2018
1 parent d5c3ec9 commit 747943b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ class MovieActivity : BaseActivity<MovieViewModelType>() {
adapter.addFragment(MovieFragment.newInstance(CATEGORY_TOP_RATED), CATEGORY_TOP_RATED)
viewPager_movie.adapter = adapter
tabs_movie.setupWithViewPager(viewPager_movie)
tabs_movie.setTabTextColors(Color.parseColor("#333333"), Color.parseColor("#74206F"));
tabs_movie.setTabTextColors(Color.parseColor("#66ffffff"), Color.parseColor("#FFFFFF"));
}
}

This file was deleted.

2 changes: 1 addition & 1 deletion app/src/main/res/layout/activity_movie.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
android:id="@+id/tabs_movie"
style="@style/home_tab_layout"
android:layout_width="match_parent"
android:layout_height="45dp"
android:layout_height="55dp"
app:tabMode="fixed" />

<android.support.v4.view.ViewPager
Expand Down
12 changes: 6 additions & 6 deletions app/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,26 @@
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@android:color/transparent</item>
<item name="colorPrimaryDark">@android:color/transparent</item>
<item name="colorAccent">#0585FF</item>
<item name="colorPrimary">#1A549B</item>
<item name="colorPrimaryDark">#1A549B</item>
<item name="colorAccent">#1A549B</item>
</style>

<!--Custom tab view pager home-->
<style name="home_tab_layout" parent="Widget.Design.TabLayout">
<item name="tabIndicatorColor">@color/white</item>
<item name="tabSelectedTextColor">@color/white</item>
<item name="android:textColor">@color/black_26</item>
<item name="tabIndicatorHeight">4dp</item>
<item name="tabIndicatorHeight">5dp</item>
<item name="tabPaddingStart">12dp</item>
<item name="tabPaddingEnd">12dp</item>
<item name="tabBackground">?attr/selectableItemBackground</item>
<item name="tabTextAppearance">@style/homeTabTextAppearance</item>
<item name="android:background">#0585FF</item>
<item name="android:background">#2479BC</item>
</style>

<style name="homeTabTextAppearance" parent="TextAppearance.Design.Tab">
<item name="android:textSize">15sp</item>
<item name="android:textSize">16sp</item>
<item name="android:textColor">@color/white_66</item>
<item name="textAllCaps">false</item>
<item name="android:textStyle">normal</item>
Expand Down

0 comments on commit 747943b

Please sign in to comment.