imageview

    2熱度

    2回答

    活動1:我有一個imageview,其中從相機和畫廊拍攝的圖像被設置,它工作正常。在這個活動中有一個右鍵點擊按鈕,將您重定向到第二個活動。 活動2:在這個活動我有四個選項 保存 分享 分享通過Instagram的 分享通過Facebook 活動3:從上述四第三項活動的選擇相應地運作。 現在我不知道如何將第一個活動中拍攝的圖像傳遞給第三個活動。 我的努力:在從相機拍攝的第一活動圖像: Intent

    0熱度

    1回答

    在我的Android應用程序的活動之一,我有一個ViewFlipper裏面坐了3個ImageViews,建這樣的: <?xml version="1.0" encoding="utf-8"?> <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.

    0熱度

    1回答

    首先我們產生一個隨機數(例如從比如0〜10): If randomNumber = 0 Animate imageSet0 [here we create an ImageArray and an animate function – please see code below) Else if randomNumber = 1 Animate imageSet1 Else

    2熱度

    2回答

    如何讓我的背景圖像填滿整個屏幕?我嘗試了幾個不同的建議,似乎沒有任何工作。 下面是我activity_main.xml中的代碼: <?xml version="1.0" encoding="utf-8"?> <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/

    0熱度

    1回答

    是否有可能發揮時,圖像-5被稱爲在下面的圖像陣列 下面是完整的代碼,包括建立AVAudioPlayer ImageArray和你建議的代碼聲音: import UIKit import AVFoundation class ViewController: UIViewController { var player:AVAudioPlayer = AVAudioPlayer()

    0熱度

    2回答

    如何在圖像右下角和左下角的圖像上實現角邊緣?不是我已經實現的圓角,而是圖像左下角和右下角的對角線切割,我只談論上面的圖像而不是白色的圖像。我嘗試了一些庫,但沒有工作。我想要實現的部分是黑色的。我使用滑行加載圖像。謝謝。 這是圖像。 這裏是我的XML: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="htt

    0熱度

    1回答

    我正在做一個Tap遊戲的原型。 當玩家破壞怪物時,我會處理動畫。 怪物只是一個ImageView的,我用這行來的ImageView色調更改爲紅色(在color.xml定義) imageView.setColorFilter(this.getResources().getColor(R.color.damage)); 我的目標是讓ImageView的「閃爍」在原始ImageView和帶有紅色色調

    -2熱度

    1回答

    Here the vector of what i'm trying to do 會有2個標籤和這兩個標籤頁之間的一個imageview的什麼的,標誌應該是不可點擊。 我已經嘗試了幾乎所有的方法,但都失敗了。 任何人知道如何做到這一點? 代碼: TabLayout tabLayout = (TabLayout) view.findViewById(R.id.tabs2); tabLa

    0熱度

    4回答

    我有一個圖像的大小519px X 420px,我想放在我的android屏幕的頂部。現在,我的圖片和我想要移除的標題之間有一些空的空白區域。 XML代碼: <ImageView android:src="@drawable/sitemakers_laptops" android:layout_width="match_parent" android:layout_height="wrap_c

    0熱度

    2回答

    所以我需要創建一個簡單的棋盤遊戲。它基於一個片段內的Gridview(10x10)。該活動還顯示了帶有控件的另一個片段(從左下方向右上方)。 當我按下控件片段上的一個按鈕時,我需要移動GridView中的圖像。到目前爲止,我設法填充GridView,但我無法弄清楚如何移動圖像。 這是網格片段 public class Grid extends Fragment{ GridView g