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 6916329
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T09:35:19+00:00 2026-05-27T09:35:19+00:00

When I execute my android application it works fine, except the view will not

  • 0

When I execute my android application it works fine, except the view will not fill up the screen. I’m using the following xml file:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 
    xmlns:android="http://schemas.android.com/apk/res/android" 
    android:layout_width="fill_parent" 
    android:layout_height="fill_parent"
    android:orientation="vertical"
    > 
    <com.project.name.SplashView
          android:id="@+id/splashView" 
          android:layout_width="fill_parent" 
          android:layout_height="fill_parent" 
    /> 
</LinearLayout>

I have a custom view defined that extends the regular view and I’m overwriting the onDraw method to display a splash screen. In code I’m setting the layout with a simple call:

setContentView(R.layout.splash);

I’m not going to post my onDraw method because it has a bunch of animation code. However, I’ve tested the view bounds by simply whiting out the background of the canvas using this function (so I know its not filling the screen):

private void drawBackground(Canvas c) 
{
    Paint p = new Paint();
    p.setColor(Color.WHITE);
    c.drawRect(0, 0, c.getWidth(), c.getHeight(), p);
}

Anyone with any ideas?

  • 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-27T09:35:20+00:00Added an answer on May 27, 2026 at 9:35 am

    I managed to fix the problem by making sure the minSDKVersion was set to at least 8.

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

Sidebar

Related Questions

I have a litle android application where i would like to execute some code
I want to execute a Java class to test pieces of an Android application's
I'm developing an application on the Android system which involves parsing some xml stuff.
I am having a Simple AutoStart Application with TimerTask implementation, that works fine in
I have an android application in which I have to execute some tasks at
When I execute the command adb logcat while running the android emulator, all of
To execute my application in iPhone first of all I have to add provisioning
This is the script that works: curl -H 'content-type:application/json' -d '{userrequest: {username: testname, status:
I am developing a library for Android applications which does not use native code
My android application sends a web service request and gets the response from web

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.