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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T14:11:33+00:00 2026-06-07T14:11:33+00:00

I have been toying with a few different libraries and code snippets for the

  • 0

I have been toying with a few different libraries and code snippets for the past few days. I am trying to create a menu like the one seen in the facebook app.
Now there are many libraries and resources on building something of that kind, but I’m having major difficulties in drawing a shadow between the ‘top’ and ‘bottom’ page as to create the illusion that the ‘top’ page is actually on top.
Now the exact effect Im trying to create is displayed in this article:
http://android.cyrilmottier.com/?p=717

The author of the article I got this from is not very thorough in his explanation. This could be due to my programming-skills-under-development, or maybe I’m not the only one.
I’m using the following library and example app to test and develop with:
https://github.com/jfeinstein10/SlidingMenu

I would be very happy if anyone could help me get this to work.

PS: I’m very sorry, but since I’m a newbie here I am not allowed to post any pictures.

  • 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-07T14:11:34+00:00Added an answer on June 7, 2026 at 2:11 pm

    What I did is I’m putting a shadow at the right of my menu view (ie behindView) with a margin on the right of your above view :

    <!-- Show shadow on the right of the menu -->
        <RelativeLayout 
            android:id="@+id/menuShadow"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:focusable="false"
            android:clickable="false"
            android:background="#00000000"
            android:layout_marginRight="40dp">
            <ImageView 
                android:layout_alignParentRight="true"
                android:layout_alignParentTop="true"
                android:layout_alignParentBottom="true"
                android:layout_width="6dp"
                android:layout_height="fill_parent"
                android:background="@layout/border_menu_progressive_shadow"/>
        </RelativeLayout>
    

    With my shadow layout:

    <?xml version="1.0" encoding="utf-8"?>
    <selector xmlns:android="http://schemas.android.com/apk/res/android">
    
        <item>
            <shape>
                <gradient
                    android:startColor="#00101010"
                    android:endColor="#252525"
                    android:angle="0" />
            </shape>
        </item>
    
    </selector>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

For the past few days I have been trying to play any sound over
I have been trying to set up OpenCV for the past few days with
Over the past few days, I have been trying to find an answer to
I have been struggling for a few days trying to find out how come
I have been trying to do this for a few days now using AVFoundation
For the last few days, I have been trying to use Python for some
I have been trying for a few days to get Sonata Media Bundle working
Hey all, i have been trying for a few minutes on this problem and
I have been trying out Cassandra and need some help in understanding a few
So I have been trying and battling with this for a few hours now.

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.