Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6854173
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T01:36:03+00:00 2026-05-27T01:36:03+00:00

I’ve seem to run into some kind of weird issue with tiling backgrounds getting

  • 0

I’ve seem to run into some kind of weird issue with tiling backgrounds getting stretched under certain conditions.

My application has a welcome screen (with sign in / sign out) as it’s main activity. If the the user is already signed in, s/he gets automatically redirected to another activity from the onCreate method.

The problem is that the tiling background of the application window gets stretched whenever this happens.

Now, the tiling works perfectly for all backgrounds as long as I’ve “seen” the main activity. That is, if I remove the call to startIntent from onCreate – or – if i go “back” to the welcome screen and continue from there.

I’ve tried “jumping” from onResume as well, but the issue remains.

Setting the background via themes.xml

<item name="android:windowBackground">@drawable/application_background</item>

drawable/application_background.xml (which also includes a subtle gradient)

<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
  <item>
    <bitmap android:src="@drawable/noise" android:tileMode="repeat" />
  </item>
  <item>
    <shape android:shape="rectangle">
      <gradient android:angle="90"
                android:startColor="#3000"
                android:endColor="#0000" />
    </shape>
  </item>
</layer-list>

The relevant code from WelcomeActivity.java

public void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  setContentView(R.layout.welcome);

  // ... init buttons etc

  // Jump directly to the reading list user already has valid credentials
  if(hasValidCredentials()) {
    startActivity(new Intent(this, ActivityReadingList.class));
  }
}

A crude Gimp illustration of the issue:

Tiling Issue Android

Any help would be appreciated.

Thanks,
/C

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T01:36:04+00:00Added an answer on May 27, 2026 at 1:36 am

    I also ran into this problem and its so annoying as there’s NO help available on the net to fix this. So, i assume its a bug in the SDK.

    Anyhow, to overcome this issue, here’s my hack:


    make another copy of your application_background.xml for example:

    original: application_background.xml

    copy: copy_application_background.xml

    now associate one of your activity with original background and the second with the copy

    for activity one:

    <item name="android:windowBackground">@drawable/application_background</item>
    

    for activity two:

    <item name="android:windowBackground">@drawable/copy_application_background</item>
    

    hope it should work for you as it certainly did for me.

    I guess the problem is something with the caching on background as both activities are using the same source and it causes to mess up with the tiling when an activity make calls to another one before being shown itself

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I would like to run a str_replace or preg_replace which looks for certain words
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but
For some reason, after submitting a string like this Jack’s Spindle from a text
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
this is what i have right now Drawing an RSS feed into the php,
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I am currently running into a problem where an element is coming back from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.