我已成立了啓動相機,讓我可以預覽活動,但我需要一個按鈕添加到屏幕上,但我可以在屏幕上顯示的唯一途徑是通過使用以下佈局:創建與按鈕相機視圖爲Android
<android.view.SurfaceView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/myview"
android:layout_width="match_parent"
android:layout_height="match_parent">
</android.view.SurfaceView>
有沒有辦法給我添加一個按鈕的視圖?
我想這之前佈局在我目前的一個安頓和相對佈局難道不工作 –