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

  • Home
  • SEARCH
  • 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 8475583
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T17:55:58+00:00 2026-06-10T17:55:58+00:00

bg_repeat.xml: <?xml version=1.0 encoding=UTF-8?> <bitmap xmlns:android=http://schemas.android.com/apk/res/android android:src=@drawable/bg_pattern android:tileMode=repeat /> bg_pattern.jpg: if i launch app

  • 0

bg_repeat.xml:

<?xml version="1.0" encoding="UTF-8"?>
<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
android:src="@drawable/bg_pattern"
android:tileMode="repeat" />

bg_pattern.jpg:
bg_pattern.jpg
if i launch app in portrait mode:
portrait
and output is okey.

and if launch app in landscape mode,sometimes output(in splashScreen BG and Main BG) is like:
landscape
and second problem in this mode(LandS): i change orientation to portrait,and press back button to close app,its refresh current activity(1,2,or even 4 time via each pressing Back btn)(refresh means go back to current activity from current! )

whats wrong? is this a bug?(each two question).
bytheway its my splashScreen.java code:

public class SplashScreen extends Activity {
private int _splashTime = 2000;

/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
    this.requestWindowFeature(Window.FEATURE_NO_TITLE);
    getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
             WindowManager.LayoutParams.FLAG_FULLSCREEN);
    setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);

    super.onCreate(savedInstanceState);
    setContentView(R.layout.splashscreen);

    new Handler().postDelayed(new Thread(){
       @Override
       public void run(){
         Intent mainMenu = new Intent(SplashScreen.this, NextAct.class);
         SplashScreen.this.startActivity(mainMenu);
         SplashScreen.this.finish();
         overridePendingTransition(R.anim.fadein, R.anim.fadeout);
       }
    }, _splashTime);
 }
}

after all i said,i use customTheme.
this is manifest xml code:

<activity android:theme="@style/CustomTheme"
        android:label="@string/app_name"
        android:name=".SplashScreen">

and this is part of styles.xml code:

<style name="CustomTheme" parent="@android:style/Theme.Light">
    <item name="android:windowNoTitle">true</item>
    <item name="android:windowBackground">@drawable/bg_repeat</item>
</style>

but don’t test this new app,that has problem or not.

  • 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-06-10T17:56:00+00:00Added an answer on June 10, 2026 at 5:56 pm

    Not repeating background is a known bug which was partially fixed in ICS and fully in JB. There’s a workaround, you have to wrap bitmap in layout and then set repeating in code in onCreate like this :

        parent = (RelativeLayout) findViewById(R.id.parent);
        Bitmap bg = BitmapFactory.decodeResource(this.getResources(), R.drawable.bg_pattern);
        BitmapDrawable patternRepeat = new BitmapDrawable(bg);
        patternRepeat.setTileModeX(Shader.TileMode.REPEAT);
        patternRepeat.setTileModeY(Shader.TileMode.REPEAT);
        parent.setBackgroundDrawable(patternRepeat);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got following drawable set as LinearLayout background: <?xml version=1.0 encoding=utf-8?> <layer-list xmlns:android=http://schemas.android.com/apk/res/android> <item>
project have 4 drawable and layout folder(xh,h,m,l). this is part of manifest: <uses-sdk android:minSdkVersion=8
I've properly configured the CSS file using the http://www.fontsquirrel.com/fontface/generator kit generator and css codes,
I am using a shape XML drawable as a background of a LinearLayout. File:
Here's the navigation image in question: http://img.skitch.com/20090807-t8e6d9ymrtpdifqy88xpu6x36.png What I want to do is pretty
please check this URL. http://works.ebexsoft.com/destin/ There is an unexpected margin/padding in the bottom. I
I have a tiled bitmap that I'm using as the View background. This View
I need to customize a seekbar. To achieve this I'm using a layer-list XML
Let's say I have the below XML <root> <element class=Page style=background: url(/images/RlEguQY3_ghsdr.png?1324483033) repeat left
body { background: #f6f6f6 url(http://path.to.image/body-bg.gif) repeat-x; font-family: Helvetica Neue, Helvetica, Arial, sans-serif; line-height: 1.5;

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.