forked from mirrors/Fedilab
Fix tablayout color for scheduled
This commit is contained in:
parent
7c4ed90de8
commit
d7564cb293
2 changed files with 5 additions and 1 deletions
|
@ -62,6 +62,10 @@ public class ScheduledActivity extends BaseActivity {
|
|||
binding.scheduleViewpager.setAdapter(new FedilabScheduledPageAdapter(getSupportFragmentManager()));
|
||||
binding.scheduleViewpager.setOffscreenPageLimit(3);
|
||||
binding.scheduleViewpager.addOnPageChangeListener(new TabLayout.TabLayoutOnPageChangeListener(binding.scheduleTablayout));
|
||||
|
||||
binding.scheduleTablayout.setTabTextColors(ThemeHelper.getAttColor(ScheduledActivity.this, R.attr.mTextColor), ContextCompat.getColor(ScheduledActivity.this, R.color.cyanea_accent_dark_reference));
|
||||
binding.scheduleTablayout.setTabIconTint(ThemeHelper.getColorStateList(ScheduledActivity.this));
|
||||
|
||||
binding.scheduleTablayout.addOnTabSelectedListener(new TabLayout.OnTabSelectedListener() {
|
||||
@Override
|
||||
public void onTabSelected(TabLayout.Tab tab) {
|
||||
|
|
|
@ -57,7 +57,7 @@
|
|||
android:id="@+id/schedule_tablayout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@color/cyanea_primary_reference"
|
||||
android:background="?backgroundColorLight"
|
||||
app:tabGravity="fill"
|
||||
app:tabMode="scrollable" />
|
||||
</com.google.android.material.appbar.AppBarLayout>
|
||||
|
|
Loading…
Reference in a new issue