imageview

    1熱度

    1回答

    如何在JavaFx中引入GIF?我必須使用ImageView才能添加GIF嗎?

    0熱度

    2回答

    我想將ImageView設置爲SweepGradient。 這裏是我的嘗試: protected void onCreate(@Nullable Bundle savedInstanceState) { ImageView colorPicker = findViewById(R.id.color_picker); colorPicker.setImageDrawable(C

    0熱度

    2回答

    我嘗試把一個imageview的頂部顯示一個標誌,但是當我運行應用程序,我有這樣的錯誤: android.view.InflateException: Binary XML file line #13: Error inflating class android.widget.ImageView ,如果我刪除的ImageView代碼運行沒有問題 我怎麼可以在這裏解決,這是activity_main

    0熱度

    1回答

    我見過很多關於向圖片添加填充的帖子變體,但沒有一個能夠幫助我。如果你不能給我一個答案,你們中的任何一個人都可以引導我走向正確的方向嗎? 我有一個圓形的imageview。我想在顯示邊框之前在圓形圖像視圖周圍添加空格,例如this 我該如何實現此目的?在此先感謝

    0熱度

    1回答

    我有一個assets文件夾,裏面裝滿了要在我創建的遊戲中實現的圖像,我希望在窗口中顯示這些圖像。這是我的代碼到目前爲止。 public class javafxtest extends Application { public void start(Stage primaryStage) throws Exception { Group root = new Group();

    0熱度

    1回答

    我有一個應用程序包含使用ImageView和ViewPager不同的圖像。我想通過ImageView將當前圖像設置爲Wallpaper。 但是,當我試圖設置爲壁紙時,它只會將第一張圖像作爲壁紙和剩餘圖像,使手機屏幕變黑(意味着它會使壁紙變黑),而不會將ImageView中的其他圖像設置爲壁紙。 XML代碼: <?xml version="1.0" encoding="utf-8"?> <Line

    0熱度

    1回答

    這是MainActivity.java。應用程序包含一個使用ImageView和Button的活動。當點擊這些按鈕時,畫廊必須打開。之後你會檢查ImageView中粘貼的圖像。當想要退出應用程序或點按時,我無法將圖像保存在活動中。 import android.content.Intent; import android.graphics.Bitmap; import android.net.

    0熱度

    2回答

    考慮: 的ImageView及其Drawable或Bitmap 任務: 需要由從左效果滑動爲ImageView作出擴大,不超過ImageView範圍。 我試圖用翻譯動畫: <set xmlns:android="http://schemas.android.com/apk/res/android" android:shareInterpolator="false"> <tran

    0熱度

    1回答

    我想在ImageView之上實現手繪功能。 這是我的佈局: <android.support.constraint.ConstraintLayout android:id="@+id/constraintLayoutEditImage" android:layout_width="match_parent" android:layout_height="matc

    -1熱度

    1回答

    我正在開發一個簡單的測驗應用程序,其中我使用圖像作爲問題和圖像作爲選擇。這裏的問題是,當我正在將ImageView類型的選擇分配給類型爲int的mAnswer時,我得到的錯誤是: 運算符'=='不能應用於'android.widget 'imageView','int' 我知道不可能將ImageView直接分配給int。我試圖獲得圖像資源的選擇,但無法找到任何方法來直接獲取圖像資源。 public