在Android Wear中使用CircledImageView [英] Using CircledImageView in android wear

查看:65
本文介绍了在Android Wear中使用CircledImageView的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用CircledImageViewListView中显示图像,但没有将图像视图显示为圆形.谁能告诉我如何实现这一目标?

I am using the CircledImageView to display the image in the ListView, but I am not getting the image view as circular. Can anyone tell me how to achieve this?

推荐答案

可以通过将高度和宽度设置为自动换行内容并提供圆弧的半径来使它醒来.

ok got it woking by setting the height and width as wrap content and also providig the radius of the cirlce.

这是为我工作的代码.

 <android.support.wearable.view.CircledImageView
        android:id="@+id/im_action_icons"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="center"
        app:circle_border_color="#FFFFFFFF"
        app:circle_border_width="2dp"
        app:circle_color="@color/blue"
        app:circle_radius="23dp" />

这篇关于在Android Wear中使用CircledImageView的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆