android imageloader and imageview scaletype -


this imagei have imageview element relativelayout textview this

<relativelayout> <imageview     android:id="@+id/image"     android:layout_width="fill_parent"     android:layout_height="fill_parent"     android:adjustviewbounds="true"    android:background="@color/darkblue"     android:scaletype="fitxy"/>    <textview     android:id="@+id/title"     android:layout_width="fill_parent"     android:layout_height="wrap_content"  android:layout_alignbottom="@+id/image" android:paddingbottom="2dp" android:gravity="bottom"   android:paddingleft="2dp"   android:paddingright="2dp"    android:textsize="13sp"    android:background="@drawable/gradient"     android:textcolor="@color/white"      />   </relativelayout> 

i want load image using imageloader, when load image height of image not fill relative layout, try use scaletype: fitcenter , still not working, try change height of image pro grammatically still not showing height,

    image.getlayoutparams().height=(int) (screenwidth/2); 

try android:scaletype="centercrop" here u can read more this


Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

php - Find a regex to take part of Email -