我有一個活動在landscape mode
中設置,並且必須保持這種方式(所以作爲我的問題的答案不要告訴我在PORTRAIT mode
原因中設置我的活動這不是一個解決方案)。在橫向模式下設置一個按鈕的問題
而且我想提出一個按鈕在屏幕的像這樣的底部:
http://i52.tinypic.com/30n9o5t.png
但我可以做我的it.All嘗試讓我只有這個:
http://i53.tinypic.com/54acjs.png
這是我的xml
文件:
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:gravity="center"
>
<SurfaceView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@+id/surface_camera"
/>
<Button android:id="@+id/btnPhoto"
android:layout_gravity="right"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Take Photo !!"></Button>
</FrameLayout>
不要忘記我的活動是在LANDSCAPE
模式。 謝謝!
我感到困惑。您有隻在橫向模式下顯示的活動?或者是什麼 ? –
我的活動在LANDSCAPE模式下設置,我想在屏幕底部設置一個按鈕(不在活動的底部) – adrian