ratingbar - Android rating bar scrambled view -
i have been trying fix long time couldn't find thing useful.
i have simple xml layout file looks like:
<?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="wrap_content" android:background="@drawable/bg_with_shadow" android:orientation="horizontal" android:padding="5dip" > <linearlayout android:id="@+id/llthumbnail" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignparentleft="true" android:layout_marginright="5dip" android:background="@drawable/list_image_bg" android:padding="3dip" > <imageview android:id="@+id/imageviewappicon" android:layout_width="50dip" android:layout_height="50dip" /> </linearlayout> <textview android:id="@+id/textviewappname" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_aligntop="@+id/llthumbnail" android:layout_torightof="@+id/llthumbnail" android:text="app name here" android:textcolor="#000000" android:textsize="15dip" android:textstyle="bold" android:typeface="sans" /> <ratingbar android:id="@+id/ratingbar" style="?android:attr/ratingbarstylesmall" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_margintop="5dp" android:layout_below="@+id/llthumbnail" android:isindicator="true" android:numstars="5" android:stepsize="0.5" android:rating="4" /> </relativelayout> the problem rating bar looks expected on 1 device looks scrambled on other (htc one, android version: 4.2.2). above xml (a row) shown inside listview.
here snapshot:

Comments
Post a Comment