Я искал тонну в Интернете о том, как сделать фоновое изображение полным на моем приложении для Android и, по-видимому, оно все еще меньше. Я надеялся, если вы, ребята, знаете какое-нибудь решение для этого?Как сделать изображение полным как фоновое изображение?
Большая часть изображения, которое я загрузил, находится в папке @mipmap и, по-видимому, я не могу найти способ вставить изображение в папку @drawable. Я попробовал открыть папку с возможностью копирования и скопировать вставку картинки, чтобы поместить ее внутрь, но когда она запустила его, наткнулась на пару ошибок.
Error:(12, 25) No resource found that matches the given name (at 'background' with value '@drawable/images').
This a picture of is how it looks like
Я также прилагается мое содержание XML-файла:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="fill_parent"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:paddingBottom="@dimen/activity_vertical_margin"
app:layout_behavior="@string/appbar_scrolling_view_behavior"
tools:showIn="@layout/activity_sad"
tools:context="com.example.chadymaebarinan.emojiexpress.Sad">
<ImageView
android:layout_width="150dp"
android:layout_height="150dp"
android:src="@mipmap/ic_launchersad"
android:gravity="center"
android:id="@+id/imageView"
android:scaleType="fitXY"
android:layout_marginTop="43dp"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="''I am SAD''"
android:textColor="#FFFF00"
android:textSize="50dp"
android:textStyle="bold"
android:gravity="center"
android:id="@+id/textView4"
android:layout_below="@+id/imageView"
android:layout_alignParentStart="true" />
<ImageButton
android:layout_width="111dp"
android:layout_height="111dp"
android:src="@mipmap/ic_launcherspeak"
android:background="@null"
android:scaleType="fitXY"
android:id="@+id/imageButton"
android:layout_below="@+id/textView4"
android:layout_centerHorizontal="true" />
<ImageButton android:id="@+id/back"
android:layout_width="111dp"
android:layout_height="111dp"
android:src="@mipmap/ic_launcherback"
android:background="@null"
android:scaleType="fitXY"
android:layout_below="@+id/imageButton"
android:layout_alignStart="@+id/imageButton" />
</RelativeLayout>
и вот моя деятельность XML-файл:
<?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
tools:context="com.example.chadymaebarinan.emojiexpress.Sad"
android:background="@drawable/ic_launcherimage">
<android.support.design.widget.AppBarLayout
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:theme="@style/AppTheme.AppBarOverlay">
</android.support.design.widget.AppBarLayout>
<include layout="@layout/content_sad" />
</android.support.design.widget.CoordinatorLayout>
'mipmap' только значок ** приложения **. Больше ничего туда не пойдет. –
@ FrankN.Stein Ohh Я понимаю. Я просто не знаю, почему, когда я использую drawable, он всегда дает мне ошибку после того, как я запустил его. – ChuddyWagogo