I have a 1080x1920px
image that I want to use as background image in my app.
On my Galaxy S6 i
t works fine, but as I go down to a smaller screen size (S4 i.e) I receive this:
W/OpenGLRenderer﹕ Bitmap too large to be uploaded into a texture (3240x5760, max=4096x4096)
in addition of the image not being displayed at all.
This is my layout:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:orientation="vertical"
android:layout_height="match_parent"
tools:context="${relativePackage}.${activityClass}"
android:background="@drawable/bg">
<EditText android:id="@+id/username_textfield"
android:layout_width="270dp"
android:layout_height="40dp"
android:hint="Username"
android:textColorHint="#ffffff"
android:textColor="#ffffff"
android:ellipsize="start"
android:gravity="center_horizontal"
android:singleLine="true"
android:layout_marginTop="50dp"
android:layout_marginLeft="60dp"
android:background="@drawable/textfield_bg"/>
<EditText android:id="@+id/password_textfield"
android:layout_width="270dp"
android:layout_height="40dp"
android:hint="Password"
android:textColorHint="#ffffff"
android:textColor="#ffffff"
android:ellipsize="start"
android:gravity="center_horizontal"
android:singleLine="true"
android:layout_marginTop="10dp"
android:layout_marginLeft="60dp"
android:background="@drawable/textfield_bg"/>
And my MainActivity is empty except for the onCreate. I have read the other posts about this issue, but none has provided any real solution for me.