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

The Archive Base Latest Questions

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

I would like to put a gradient on the bottom layout, but it seems

  • 0

I would like to put a gradient on the bottom layout, but it seems to work only with the top layout.

Here is the code of the main layout (test.xml) :

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="#FFF">
    <RelativeLayout android:id="@+id/relativeLayout1" android:layout_alignParentTop="true" android:layout_height="60sp" android:layout_width="fill_parent" android:background="@drawable/tool_bar_gradient"></RelativeLayout>
    <RelativeLayout android:id="@+id/relativeLayout2" android:layout_alignParentBottom="true" android:layout_height="60sp" android:layout_width="fill_parent" android:background="@drawable/tool_bar_gradient"></RelativeLayout>
</RelativeLayout>

The code of the gradient (tool_bar_gradient) :

<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
    <gradient xmlns:android="http://schemas.android.com/apk/res/android" android:startColor="#257aa1" android:endColor="#6fb7d9" android:angle="90" android:bottom="450sp">
    </gradient>
</shape>

The result : the gradient is effective on the top bar, but not on the bottom bar…

What is wrong ?

PS : The target is Android 2.1-update1 or Android 2.2.

  • 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-24T09:19:06+00:00Added an answer on May 24, 2026 at 9:19 am

    I am getting this

    screen i am getting

    is anything that you didn’t get it

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

Sidebar

Related Questions

I would like to put jQuery at the bottom of the body tag but
I would like to put a string into a byte array, but the string
I would like to put a button on top of a Google Map next
I would like to put a line All Rights Reserved... at the bottom of
I would like to put a progressBar on the action bar but setting requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
I would like to put in a background gradient using the NetBeans GUI Builder.
I am currently parsing some HTML code and I would like to put in
I would like to put some logging statements within test function to examine some
I would like to put a Git project on GitHub but it contains certain
In a bash script, I would like to put the following code that assigns

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.