私は自分のカメラアプリを展開しています。そのために、横向きのSurfaceViewを標準で使用しています。
私がやろうとしているのは、SurfaceView を膨らませてボタンを持たせることです。しかし、ほとんどのストックカメラアプリのように、ボタンを縦向きの下部の中央に表示したい. 膨らませているボタンのレイアウトは次のとおりです。コントロールのどの組み合わせで目的の結果が得られるかわかりません。
私のレイアウト:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:gravity="right"
>
<Button
android:id="@+id/takepicture"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=" * Take Picture "
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_margin="10px"
/>
</LinearLayout>
ご協力いただきありがとうございます!=]