the textview is not aligned correctly under the image in the watch list, see screenshot
represents the center of the show below some image, another image is shown from right to right. I want to show the center of the text below each image.
holder.txtText = (TextView) convertView.findViewById(R.id.title2); holder.imgThumb = (ImageView) convertView.findViewById(R.id.image2); androidAQuery.id(holder.imgThumb). image(fifthscreen.Category_image.get(position), false, false); <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="vertical" > <ImageView android:id="@+id/image2" android:layout_width="90dp" android:layout_height="70dp" android:layout_marginLeft="5dp" android:layout_marginRight="5dp" android:background="#000000" android:padding="5dp" android:scaleType="fitXY" android:src="@drawable/icon" /> <TextView android:id="@+id/title2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="30dp" android:gravity="center_horizontal" android:textColor="#000" /> </LinearLayout>
source share