How to do the new PlayStore parallax effect

Google has recently announced Design support library and with this it has support for implementing Collapsing Toolbar. In addition to pinning a view, you can use app:layout_collapseMode=”parallax” (and optionally app:layout_collapseParallaxMultiplier=”0.7″ to set the parallax multiplier) to implement parallax scrolling (say of a sibling ImageView within the CollapsingToolbarLayout) Example: <android.support.design.widget.AppBarLayout android:layout_height=”192dp” android:layout_width=”match_parent”> <android.support.design.widget.CollapsingToolbarLayout android:layout_width=”match_parent” android:layout_height=”match_parent” app:layout_scrollFlags=”scroll|exitUntilCollapsed”> … Read more

Disable scrolling in webview?

Here is my code for disabling all scrolling in webview: // disable scroll on touch webview.setOnTouchListener(new View.OnTouchListener() { @Override public boolean onTouch(View v, MotionEvent event) { return (event.getAction() == MotionEvent.ACTION_MOVE); } }); To only hide the scrollbars, but not disable scrolling: WebView.setVerticalScrollBarEnabled(false); WebView.setHorizontalScrollBarEnabled(false); or you can try using single column layout but this only works … Read more

Recyclerview inside ScrollView not scrolling smoothly

Try doing: RecyclerView v = (RecyclerView) findViewById(…); v.setNestedScrollingEnabled(false); As an alternative, you can modify your layout using the support design library. I guess your current layout is something like: <ScrollView > <LinearLayout > <View > <!– upper content –> <RecyclerView > <!– with custom layoutmanager –> </LinearLayout > </ScrollView > You can modify that to: … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)