-5
我只是想創建MEME Generator應用程序。如何在Java中的圖像上寫文本?
爲此,我需要一個custom View
其中包括一個EditText
。
輸入數據後,它將變爲TextView或EditText變爲不可修改。
然後它可以寫出所需的圖像。
並讓我將合併結果保存爲JPEG。
我只是想創建MEME Generator應用程序。如何在Java中的圖像上寫文本?
爲此,我需要一個custom View
其中包括一個EditText
。
輸入數據後,它將變爲TextView或EditText變爲不可修改。
然後它可以寫出所需的圖像。
並讓我將合併結果保存爲JPEG。
只需使用的FrameLayout爲overlaping兩種觀點
<FrameLayout
android:id="@+id/frmImageContainer"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginBottom="10dp">
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"/>
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"/>
</FrameLayout>
請說明您的需求,並向我們證明你已經嘗試過的東西。 – Riad
你的問題沒有意義。我想你已經使用了一些翻譯,對嗎? – adalPaRi
請向您解釋一些細節問題 –