picasso

    7熱度

    2回答

    我知道畢加索是一個很棒的圖書館。 Picasso.with(context).load("http://i.imgur.com/DvpvklR.png").into(imageView); 使用此代碼我可以將圖像加載到圖像視圖。 但是可以使用畢加索設置背景資源嗎?

    0熱度

    1回答

    我似乎無法得到這些圖像視圖的工作。我不想動態地創建一些圖片視圖,但我希望他們有一個從XML模板左右。 我的循環看起來像這樣: LinearLayout layout = (LinearLayout) findViewById(R.id.mainLinearLayout); for (int i=0; i<10; i++){ ImageView imgView = new

    29熱度

    4回答

    我必須將drawable加載到ImgeView中。在這個應用程序中,我出於其他原因使用畢加索。 在這種情況下,我需要使用它的uri加載drawable而不是它的id。 要做到這一點,這裏是我的代碼: uri = Uri.parse(ContentResolver.SCHEME_ANDROID_RESOURCE + "://"+context.getPackageName()+"/drawable/

    2熱度

    1回答

    我讀過關於畢加索圖像下載庫,但有一個問題,我無法解決它。它是大圖像下載。當我有大的圖像,即2000 x 1920的時候,它會被粉碎(內存不足)。 我該如何解決這個問題? Picasso.with(context).load(myUrl).into(imageView);

    1熱度

    1回答

    我使用這個URL被加載到ImageView的畢加索 Intent intent = getIntent(); sceneUrl = intent.getStringExtra("url"); image = (ImageView)findViewById(R.id.imageView1); Picasso.with(this).load(sceneUrl).into(

    1熱度

    2回答

    我想將ImageView放在ListView行中,以便它適合設備屏幕的邊緣。 這是我目前的佈局: <RelativeLayout android:layout_width="fill_parent" android:layout_height="fill_parent" xmlns:android="http://schemas.android.com/apk/res

    2熱度

    1回答

    在我的Android應用程序中,我使用Picasso加載圖像。這通常工作得很好。 今天我試圖從谷歌地圖API加載靜態圖像,但這似乎並不奏效。當我打開their info page提供的example link時,我可以很好地看到靜態地圖圖像。當我使用下面的代碼將它加載到我的Android應用程序中時,我一無所獲。 Picasso.with(getContext()).load("http://ma

    1熱度

    1回答

    有人能向我解釋了comment here: 調用時,畢加索作爲可能 獲得垃圾回收不創建匿名類的目標。保持一個成員字段作爲強引用 防止它被gc'ed 每line 30 of ImageViewAction.java,該回調是一個有力的參考。 ImageViewAction(Picasso picasso, ImageView imageView, Request data, boolean skip

    1熱度

    1回答

    我在我的項目中使用Android的Picasso圖像加載庫。當我看到它將錯誤的圖像加載到使用ViewHolder模式的ArrayAdapter中的ImageView中時,我注意到了這個錯誤。 這是bug的癥結所在,我現在可以在我創建的測試活動中一致地復現。我在onCreate中調用此方法: private void refreshImageView() { ImageView image

    5熱度

    1回答

    我使用畢加索從URL Picasso.with(getApplicationContext()).load(product.getImageUrl()).into(imageView); 加載圖像從我所看到的,這是要去的網址,每次和不緩存到磁盤。我需要的磁盤緩存啓用 我有權 <uses-permission android:name="android.permission.INTERNET"