android - Custom seekbar showing gap in between, on large screens? -
i made custom seekbar using 2 png images android app. 1 image background, , other bar shows progress. both of same length , width. on small screens( ~5"), displays perfectly. on larger screens( ~8"), small gap present on upper bar, , small part of lower bar visible gap, shown in picture:
i checked 2 .png files, , there no problem in them. also, gap shows on big screened devices. causing this?
edit: added xml seekbar area:
<framelayout android:layout_width="match_parent" android:layout_height="0dp" android:layout_weight="0.1333333333333333" android:scaletype="fitxy"> <imageview android:id="@+id/imageview2" android:layout_width="match_parent" android:layout_height="match_parent" android:clickable="false" android:scaletype="fitxy" android:contentdescription="@string/p" android:src="@drawable/volbar" /> <seekbar android:id="@+id/seekbar1" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignparentleft="true" android:layout_centervertical="true" android:layout_margin="10dp" android:scaletype="fitxy" android:minheight="5dip" android:maxheight="5dip" android:progressdrawable="@drawable/styled_progress" android:thumb="@drawable/thumb" android:thumboffset="13.5dp" android:paddingright="13.5dp" android:paddingleft="13.5dp" android:indeterminate="false" /> </framelayout>
there margin , padding on seekbar, can explain why there gap between images...
Comments
Post a Comment