imagebutton

    0熱度

    4回答

    所以1有2個ImageButtons,clothesButton1,圖像聲明爲xml,而imageButton2爲空。兩者都在分開的活動。 單擊clothesButton1後,我想使用位圖將圖像在clothesButton1中移動到imageButton2。 clothesButton1將在之後變爲空白。 這是我在Java代碼clothesButton1: final ImageButton cl

    0熱度

    1回答

    我的ImageButton正在水平移動。但我想移動水平和垂直。 然後重複。 move.xml <?xml version="1.0" encoding="utf-8"?> <set xmlns:android="http://schemas.android.com/apk/res/android" android:interpolator="@android:anim/linear_inte

    0熱度

    4回答

    我正在使用Xcode 8和Swift 3,並試圖創建一個在單擊它時更改顏色的按鈕。 該按鈕是黑色的,但點擊時應該變成藍色。該按鈕是儲錢罐的圖像。 我繼續添加黑豬和藍豬的圖像,分別名稱爲money_off和money_on。 我現在正在編寫代碼以點擊時將黑色圖像變成藍色。代碼本身沒有顯示錯誤,但是仿真沒有成功。點擊黑色儲錢罐什麼都不做。 有沒有人有線索可能發生什麼? import UIKit c

    0熱度

    2回答

    我曾經在一個LinearLayout中有3 ImageButton的,問題是,點擊後,「@ ID /黃」調用第二個按鈕的功能,「@ ID /綠」調用第三個按鈕功能和「@ id/brown」來調用它自己的功能(它應該是這樣做的)。 這裏是XML: <LinearLayout android:layout_width="match_parent" android:layou

    0熱度

    2回答

    我的設置有什麼問題?我想填寫ImageButton中的所有內容。試圖將所有邊距設置爲0,但沒有幫助。 scaleType:centerCrop cropToPadding:真 adjustViewBound:真 我需要說些什麼?

    0熱度

    1回答

    我已經在vba中編寫了一個偵聽器,在我的Outlook中,當我收到郵件時執行操作。 我希望能夠使用我的Outlook功能區上的按鈕打開和關閉此功能。 要知道當前狀態(開/關),我想在按鈕上的兩個圖像(綠色/紅色)之間切換。 有沒有人知道如何改變按鈕上的圖像時,它已被點擊?

    -2熱度

    3回答

    我不知道如何啓動ImageButton 上nav_header_main。我必須添加新的Java類,或者我只是使用MainActivity.java 請幫助我。謝謝

    0熱度

    1回答

    我有兩個ImageButtons,onClick將導致webview。但我不能添加第二個Imagebutton。我不知道如何添加它。誰能幫我這個? 我的主要活動 public class main extends AppCompatActivity { ImageButton imageButton1; ImageButton imageButton2; @Ove

    0熱度

    1回答

    我有兩個ImageButton的兩個不同的URL。當我點擊圖片時,它會返回一個白色的屏幕。我不知道是什麼問題。歡迎任何編輯或建議。 謝謝! 主要活動 public class main extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) {

    0熱度

    1回答

    我創建了一個彩色背景動畫,它在按鈕單擊時開始(它平滑地更改背景顏色)。 我的問題是,我無法停止動畫(如果我再次點擊按鈕,它會提高動畫速度)。我已經嘗試創建一個while循環,但動畫不再工作。我的目標是,如果我按下圖像Btn,動畫就會開始,如果再次按下它,它應該停止。 代碼: imageButton_info.setOnClickListener(new View.OnClickListener()