{"action":"closed","issue":{"url":"https://api.github.com/repos/ogaclejapan/SmartTabLayout/issues/133","repository_url":"https://api.github.com/repos/ogaclejapan/SmartTabLayout","labels_url":"https://api.github.com/repos/ogaclejapan/SmartTabLayout/issues/133/labels{/name}","comments_url":"https://api.github.com/repos/ogaclejapan/SmartTabLayout/issues/133/comments","events_url":"https://api.github.com/repos/ogaclejapan/SmartTabLayout/issues/133/events","html_url":"https://github.com/ogaclejapan/SmartTabLayout/issues/133","id":131965066,"number":133,"title":"Strange behavior","user":{"login":"MasterzYuri","id":9827473,"avatar_url":"https://avatars.githubusercontent.com/u/9827473?v=3","gravatar_id":"","url":"https://api.github.com/users/MasterzYuri","html_url":"https://github.com/MasterzYuri","followers_url":"https://api.github.com/users/MasterzYuri/followers","following_url":"https://api.github.com/users/MasterzYuri/following{/other_user}","gists_url":"https://api.github.com/users/MasterzYuri/gists{/gist_id}","starred_url":"https://api.github.com/users/MasterzYuri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MasterzYuri/subscriptions","organizations_url":"https://api.github.com/users/MasterzYuri/orgs","repos_url":"https://api.github.com/users/MasterzYuri/repos","events_url":"https://api.github.com/users/MasterzYuri/events{/privacy}","received_events_url":"https://api.github.com/users/MasterzYuri/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-07T12:47:11Z","updated_at":"2016-03-13T14:42:39Z","closed_at":"2016-03-13T14:42:39Z","body":"This is what happens when I scroll down: https://vid.me/e/WiHa\r\nIt only happens on Lollipop devices ( api 21 and 22 ).\r\n\r\n    public class DrawerFrag5 extends Fragment {\r\n\r\n    private static final String KEY_TITLE = \"title\";\r\n\r\n    public static DrawerFrag5 newInstance(String title) {\r\n        DrawerFrag5 fragment = new DrawerFrag5();\r\n\r\n        Bundle args = new Bundle();\r\n\r\n        args.putString(KEY_TITLE, title);\r\n        fragment.setArguments(args);\r\n\r\n        return (fragment);\r\n    }\r\n\r\n    public DrawerFrag5() {\r\n        // Required empty public constructor\r\n    }\r\n\r\n    @Override\r\n    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\r\n        return inflater.inflate(R.layout.tabs_layout, container, false);\r\n    }\r\n\r\n    @Override\r\n    public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {\r\n        super.onViewCreated(view, savedInstanceState);\r\n\r\n        FragmentPagerItemAdapter adapter = new FragmentPagerItemAdapter(\r\n                getChildFragmentManager(), FragmentPagerItems.with(getActivity())\r\n                .add(\"Tab1\", Tab1.class)\r\n                .add(\"Tab2\", Tab2.class)\r\n                .add(\"Tab3\", Tab3.class)\r\n                .add(\"Tab4\", Tab4.class)\r\n                .create());\r\n\r\n        ViewPager viewPager = (ViewPager) view.findViewById(R.id.viewpager);      \r\n        viewPager.setAdapter(adapter);\r\n\r\n        SmartTabLayout viewPagerTab = (SmartTabLayout) view.findViewById(R.id.viewpagertab);\r\n        viewPagerTab.setViewPager(viewPager);\r\n      }\r\n    }\r\n\r\nThe layout:\r\n\r\n    ?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n    <LinearLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\r\n       android:layout_width=\"match_parent\"\r\n       android:layout_height=\"match_parent\"\r\n       android:orientation=\"vertical\"\r\n       xmlns:app=\"http://schemas.android.com/apk/res-auto\">\r\n\r\n    <com.ogaclejapan.smarttablayout.SmartTabLayout\r\n        xmlns:app=\"http://schemas.android.com/apk/res-auto\"\r\n        android:id=\"@+id/viewpagertab\"\r\n        android:layout_width=\"match_parent\"\r\n        android:layout_height=\"50dp\"\r\n        android:clipToPadding=\"false\"\r\n        android:paddingLeft=\"4dp\"\r\n        android:paddingRight=\"4dp\"\r\n        android:background=\"@color/colorPrimary\"\r\n        app:stl_defaultTabTextColor=\"@color/md_white_1000\"\r\n        app:stl_defaultTabTextHorizontalPadding=\"18dp\"\r\n        app:stl_dividerColor=\"#00000000\"\r\n        app:stl_dividerThickness=\"5dp\"\r\n        app:stl_indicatorColor=\"#33000000\"\r\n        app:stl_indicatorCornerRadius=\"18dp\"\r\n        app:stl_indicatorInterpolation=\"smart\"\r\n        app:stl_indicatorGravity=\"center\"\r\n        app:stl_indicatorThickness=\"36dp\"\r\n        app:stl_underlineColor=\"#00000000\"\r\n        app:stl_underlineThickness=\"0dp\"\r\n        />\r\n\r\n    <android.support.v4.view.ViewPager\r\n        android:id=\"@+id/viewpager\"\r\n        android:layout_width=\"match_parent\"\r\n        android:layout_height=\"match_parent\"\r\n        />\r\n    </LinearLayout>\r\n\r\nThe MainActivity layout:\r\n    \r\n    <android.support.design.widget.CoordinatorLayout\r\n        xmlns:android=\"http://schemas.android.com/apk/res/android\"\r\n        xmlns:app=\"http://schemas.android.com/apk/res-auto\"\r\n        android:id=\"@+id/main_content\"\r\n        android:layout_width=\"match_parent\"\r\n        android:layout_height=\"match_parent\"\r\n        android:fitsSystemWindows=\"true\">    // I added this line but the same thing happens....\r\n\r\n        <android.support.design.widget.AppBarLayout\r\n            android:id=\"@+id/appbar\"\r\n            android:layout_width=\"match_parent\"\r\n            android:layout_height=\"wrap_content\"\r\n            android:theme=\"@style/ThemeOverlay.AppCompat.Dark.ActionBar\">\r\n\r\n            <android.support.v7.widget.Toolbar\r\n                android:id=\"@+id/toolbar\"\r\n                android:layout_width=\"match_parent\"\r\n                android:layout_height=\"wrap_content\"\r\n                android:background=\"?attr/colorPrimary\"\r\n                android:paddingTop=\"@dimen/status_bar_padding\"   // 24dp padding for Lillipop devices, the rest 0dp\r\n                app:popupTheme=\"@style/ThemeOverlay.AppCompat.Light\"\r\n                app:layout_scrollFlags=\"scroll|enterAlways\"/>\r\n\r\n        </android.support.design.widget.AppBarLayout>\r\n\r\n        <FrameLayout\r\n            android:id=\"@+id/frame_container\"\r\n            android:layout_width=\"match_parent\"\r\n            app:layout_behavior=\"@string/appbar_scrolling_view_behavior\"\r\n            android:layout_height=\"match_parent\"/>\r\n\r\n    </android.support.design.widget.CoordinatorLayout>\r\n\r\nAlso, how can I get rid of that line between the Toolbar and Sliding Tabs?\r\nI tried this:  `getSupportActionBar().setElevation(0);` but it's not working.\r\nThanks!"}}