Tab arrows now have dedicated space

Right scrolling detection finally works correctly
New task floating action button icon is now white
This commit is contained in:
2017-02-01 19:51:25 -05:00
parent a514a8ce8f
commit 34c4b27f73
6 changed files with 9 additions and 8 deletions

View File

@@ -85,9 +85,9 @@ public class MainActivity extends AppCompatActivity implements TasksFragment.Tas
tabLayout = (TabLayout) findViewById(R.id.tabs);
tabLayout.setupWithViewPager(mViewPager);
toggleTabLayoutArrows(tabLayout.getScrollX());
// Handles scroll detection (only available for SDK version >=23)
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
toggleTabLayoutArrows(tabLayout.getScrollX());
//tabLayout.setScrollIndicators(TabLayout.SCROLL_INDICATOR_LEFT | TabLayout.SCROLL_INDICATOR_RIGHT);
tabLayout.setOnScrollChangeListener(new View.OnScrollChangeListener() {
@Override