私は垂直方向に拡張可能な画像を持っています。ピクチャはサーバー(リンク)から取得され、ピカソを使用して表示されます。Scale ImageView from Picassoを使用してサーバーから
多くの参考文献を試しましたが、うまくいきませんでした。これは私のコードです:
<LinearLayout
android:layout_width="match_parent"
android:layout_height="fill_parent"
android:layout_weight="1"
android:background="#FCE6C0"
android:padding="10dp">
<ScrollView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:scrollbarAlwaysDrawVerticalTrack="true"
android:id="@+id/scrollView" >
<ImageView
android:id="@+id/langkah_resep"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="fitXY"
android:adjustViewBounds="true"/>
</ScrollView>
</LinearLayout>
これはピカソです:
Picasso
.with(getBaseContext())
.load(langkah_resep)
.fit()
.into(imgResep);
は私がScrollViewを削除すると、画像が表示されますが、私が入れたときにScrollViewの何も表示されません。 ScrollViewに画像をスクロール