【发布时间】:2015-02-08 22:38:21
【问题描述】:
如何将布局文件中的自定义 SurfaceView 旋转 180 度?
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<package.CustomSurfaceView
android:layout_width="fill_parent"
android:layout_height="0dp"
android:rotation="180"
/>
</LinearLayout>
不用说上面的代码不起作用。
【问题讨论】:
-
你找到旋转surfaceview的方法了吗?我坚持这一点,我不知道怎么做。
标签: android xml rotation surfaceview