android - need viewflipper also to be scrolled vertically in this layout -


at moment gridview scrollable, need viewflipper scrollable well. need making viewflipper scroll vertically

here layout @ moment:

<relativelayout xmlns:android="http://schemas.android.com/apk/res/android"     xmlns:tools="http://schemas.android.com/tools"     android:id="@+id/activity_grids"     android:layout_width="match_parent"     android:overscrollmode="always"     android:layout_height="match_parent">      <viewflipper         android:layout_margintop="56dp"         android:layout_width="match_parent"         android:layout_height="150dp"         android:autostart="true"         android:id="@+id/vf1z"         android:flipinterval="3000">          <imageview             android:layout_width="match_parent"             android:layout_height="match_parent"             android:scaletype="fitxy"             android:background="@drawable/front"             android:id="@+id/imageviewz"/>      </viewflipper>      <gridview         android:numcolumns="3"         android:layout_width="fill_parent"         android:layout_height="match_parent"         android:id="@+id/grid"         android:layout_margintop="208dp"/>  <include layout="@layout/search"     android:layout_height="wrap_content"     android:layout_width="match_parent"     android:id="@+id/include"> </include>  </relativelayout> 

you can add elements in layout in scrollview this.

<relativelayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/activity_grids" android:layout_width="match_parent" android:overscrollmode="always" android:layout_height="match_parent">  <scrollview     android:id="@+id/scrollview1"     android:layout_width="match_parent"     android:layout_height="match_parent"     >  <viewflipper     android:layout_margintop="56dp"     android:layout_width="match_parent"     android:layout_height="150dp"     android:autostart="true"     android:id="@+id/vf1z"     android:flipinterval="3000">      <imageview         android:layout_width="match_parent"         android:layout_height="match_parent"         android:scaletype="fitxy"         android:background="@drawable/front"         android:id="@+id/imageviewz"         />  </viewflipper>  <gridview     android:numcolumns="3"     android:layout_width="fill_parent"     android:layout_height="match_parent"     android:id="@+id/grid"     android:layout_margintop="208dp"     />  </scrollview>      <include layout="@layout/search"         android:layout_height="wrap_content"         android:layout_width="match_parent"         android:id="@+id/include">     </include>  </relativelayout> 

or if want viewflipper scrollable can add viewflipper in scrollview


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -