android - Adding text view in horizontal pager -


 <framelayout  android:id="@+id/frame_after_gallery" android:layout_width="fill_parent" android:layout_height="wrap_content">       <com.sb.layouts.horizontalpager          xmlns:android="http://schemas.android.com/apk/res/android"          android:id="@+id/imageviewswitcher"         android:layout_width="fill_parent"          android:layout_height="280dp"         android:gravity="center"         >     </com.sb.layouts.horizontalpager>      <button           android:id="@+id/btn_previous"          android:layout_width="wrap_content"          android:layout_height="wrap_content"         android:layout_gravity="center_vertical|left"         android:layout_marginbottom="5dp"         android:padding="10dp"         android:background="@drawable/grayleftarrow">     </button>         <button           android:id="@+id/btn_next"          android:layout_width="wrap_content"          android:layout_height="wrap_content"         android:layout_gravity="center_vertical|right"         android:padding="10dp"         android:layout_marginbottom="5dp"         android:background="@drawable/grayrightarrow">     </button> </framelayout> 

this xml, loading image view in horizontal pager, want add text view below image view subtitle, moves image.how bring text view below image view. have keep both image , text in same view moving image moves text.

horizontalpager imagepagingcontroller;   private void loadpagingimages() throws malformedurlexception   {    int totalcount = appdelegate.sportsentries.allentries.size();     (int j = 0; j < totalcount; j++)    {        imageview view  = new imageview(this);         view.setid(j);        imagepagingcontroller.addview(view);        setimagedownloader(appdelegate.sportsentries.allentries.get(j), view);    }     currentpage =  imagepagingcontroller.getcurrentscreen();  } 

i loading image in view. want add text view in pager below image view.


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -