を変更しながら、ここでブラックImageViewの活動やソフトキーボードを再開すると、私は背景画像を追加したい
は、私はロード・イメージのためのグライドを使用するXMLコード
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:id="@+id/chatroompage"
android:background="#EEEEEE"
android:layout_height="match_parent">
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/background"
android:scaleType="centerCrop"/>
</RelativeLayout>
です。
Glide.with(this).load(imageuri).into(background);
は、最初の負荷で正常に動作します。しかし、私がキーボードを使用したり活動を再開すると、イメージは黒くなります。
Thanx for the help。 manifest
ファイル内<Activity >
タグ内
android:windowSoftInputMode="stateVisible|adjustPan"
エントリ:
画像がロードされている間、プレースホルダ画像を使用しまたRelativeLayout' 'から背景を削除します。 –
私はRelativeLayoutの背景が必要です、画像の背景の使用はオプションです。設定に画像の背景がある場合は、画像の背景のコードを追加します – Kim
しかし、私はそれをやろうとします。 – Kim