increase images sizes loads in carousel view android -


i created app display images internet in carousel view. loaded images carousel view using imageview. following way.

public view getview(int position, view convertview, viewgroup parent) {         view vi=convertview;         if(convertview==null)             vi = inflater.inflate(r.layout.showsmain, null);          imageview image=(imageview)vi.findviewbyid(r.id.imageview1);        // relativelayout rlayout=(relativelayout)vi.findviewbyid(r.id.rlayouts);        image.setimageresource(r.drawable.black);         orgwidth = image.getdrawable().getintrinsicwidth();         orgheight = image.getdrawable().getintrinsicheight();         imageloader.displayimage(data[position], image);         imageloader.getdimension(widthscreen, heightscreen);         relativelayout.layoutparams params = new relativelayout.layoutparams(                 widthscreen, heightscreen/3);         params.width=widthscreen;             image.setlayoutparams(params);             image.setscaletype(imageview.scaletype.fit_xy);             //rlayout.addview(image);         return vi;     } 

and carousel layout xml file is,

<com.touchmenotapps.carousel.simple.horizontalcarousellayout         android:id="@+id/carousel_layout_event"         android:layout_width="600dp"         android:layout_height="500dp"         android:layout_above="@+id/relativelayout1"         android:layout_aligntop="@+id/carousel_layout" >      </com.touchmenotapps.carousel.simple.horizontalcarousellayout> 

then image show following way in carousel,

![enter image description here][1]

here want increase image width & height. means 1 images must load fill in screen

 public view getview(int position, view convertview, viewgroup parent) {         view vi=convertview;         if(convertview==null)             vi = inflater.inflate(r.layout.showimage, null);         imageview image=(imageview)vi.findviewbyid(r.id.imageview1);         //linearlayout rlayout=(linearlayout)vi.findviewbyid(r.id.layout);        image.setimageresource(r.drawable.black);         orgwidth = image.getdrawable().getintrinsicwidth();         orgheight = image.getdrawable().getintrinsicheight();         imageloader.displayimage(data[position], image);         imageloader.getdimension(widthscreen, heightscreen);         relativelayout.layoutparams params = new relativelayout.layoutparams(                 widthscreen,heightscreen/3);         params.width=widthscreen/2;             image.setlayoutparams(params);             image.setscaletype(imageview.scaletype.fit_xy);             //rlayout.addview(image);         return vi;     } 

this way add imageview carousel view.

how that. asked question similer one. didn't answer. pls me someone. pls.....

my imageview xml layout file..

<?xml version="1.0" encoding="utf-8"?> <relativelayout xmlns:android="http://schemas.android.com/apk/res/android"     android:layout_width="fill_parent"     android:layout_height="fill_parent"      android:id="@+id/rlayouts">      <imageview         android:id="@+id/imageview1"         android:layout_width="fill_parent"         android:layout_height="fill_parent"         android:layout_alignparentbottom="true"         android:layout_alignparentleft="true"         android:layout_alignparentright="true"         android:scaletype="fitxy"         android:layout_alignparenttop="true" />  </relativelayout> 

i think should use horizontal oriented linear layout inside horizontal scrollview should add imageviews fillparent height , width in linear layout.

it great if elaborate question bit more.


Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

c# - must be a non-abstract type with a public parameterless constructor in redis -

ajax - PHP/JSON Login script (Twitter style) not setting sessions -