Bug: truncated borders when setting image later
AndroidDeveloperLB opened this issue · 2 comments
AndroidDeveloperLB commented
This is what I get for this code:
final CircularImageView imageView = (CircularImageView) findViewById(R.id.image);
new Handler().postDelayed(new Runnable() {
@Override
public void run() {
imageView.setBorderWidth(4);
imageView.setBorderColor(0xff000000);
imageView.setImageResource(R.drawable.landscape);
}
},1000);
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:orientation="vertical"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context="com.example.user.myapplication.MainActivity">
<com.github.siyamed.shapeimageview.CircularImageView
android:id="@+id/image"
android:layout_width="100dp"
android:layout_height="100dp"/>
<ImageView
android:id="@+id/original"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:background="#3300ff00"
android:src="@drawable/landscape"/>
</LinearLayout>
vajiralasantha commented
I have the same issue. Anybody has a fix?
shashvattrip commented
Anyone with a solution?