ピカソのjavadocによると、コンストラクタresizeDimen()
は次のとおりです。
public RequestCreator resizeDimen(int targetWidthResId,
int targetHeightResId)
したがって、コードでシステム属性を使用します。
Picasso.with(context).load(URL)
.resizeDimen(android.R.attr.listPreferredItemHeightLarge,
android.R.attr.listPreferredItemHeightLarge)
.centerCrop()
.into(holder.Logo);
しかし、私は得る:
E/AndroidRuntime(7588): android.content.res.Resources$NotFoundException: Resource ID #0x1010386
System.out.println(android.R.attr.listPreferredItemHeightLarge);
典型的なものは実際にはオブジェクトのIDを返すので、私は理解していません:
I/System.out(7588): 16843654
ここでエラーが発生するのはなぜですか?