可以让布局旋转的xml属性

前端之家收集整理的这篇文章主要介绍了可以让布局旋转的xml属性前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

android:rotation 设置组件旋转的角度

@H_301_15@@H_301_15@

控件顺时针旋转@H_301_15@@H_301_15@


@H_301_15@@H_301_15@

@H_301_15@@H_301_15@

<RelativeLayout
@H_301_15@    @H_301_15@android@H_301_15@:layout_width=@H_301_15@"fill_parent"
@H_301_15@    @H_301_15@android@H_301_15@:layout_height=@H_301_15@"fill_parent"
@H_301_15@    @H_301_15@android@H_301_15@:rotation=@H_301_15@"90" @H_301_15@>
@H_301_15@
@H_301_15@    <ImageView@H_301_15@
@H_301_15@        @H_301_15@android@H_301_15@:layout_width=@H_301_15@"wrap_content"
@H_301_15@        @H_301_15@android@H_301_15@:layout_height=@H_301_15@"fill_parent"
@H_301_15@        @H_301_15@android@H_301_15@:layout_centerHorizontal=@H_301_15@"true" @H_301_15@/>@H_301_15@
@H_301_15@</RelativeLayout>@H_301_15@

其他相关属性:http://deep-fish.iteye.com/blog/2015228@H_301_15@@H_301_15@

猜你在找的XML相关文章