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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T22:26:08+00:00 2026-06-08T22:26:08+00:00

I have made a design that looks like this: The problem is the creation

  • 0

I have made a design that looks like this:

enter image description here

The problem is the creation of the little triangle that should point to the currently selected category.
In essence, without background and stuff it looks like this:

enter image description here

Below the category texts, there is a transparent blue rectangle placed and to the right of it the ‘pointer’ should be made.
I imagined that this pointer is placed in a relative layout which contains the following imageview elements:

  1. a transparent rectangle which fills the space from the top till imageview 2

  2. the imageview containing the pointer. This is just a square image with the completely transparent pointer rectangle. Which has a fixed width and height and is position on a fixed/different location using the Top and Left margins.

  3. a transparent rectangle which fills the space from 2 till the bottom

I tried creating this with the relative layout, but I can’t get it to work. It seems like only 1 element with a variable height can be used at a time.
I also tried to use a vertical layout, but that didn’t do it at all.

What is the best method to accomplish my design goal?

  • 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-08T22:26:10+00:00Added an answer on June 8, 2026 at 10:26 pm

    Create a 9patch png version of your image. This is an image where only certain areas can stretch. There is a tool in the android SDK have a look.
    (You need to make the area to the left of the arrow the only part that stretches).

    Then use a frame layout with two Layouts inside; One for the bright blue background and one for the pointer. Eg:

    <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
                 android:layout_width/height/ect...>
    
        <LinearLayout android:id="BlueBackground"
                      android:background="brightblue"
                      android:layout_width/height/ect.../>
    
        <LinearLayout android:id="Pointer"
                      android:background="pointer9patch"
                      android:layout_width/height/ect...>
        //The List
        </LinearLayout>
    
     </FrameLayout>
    

    EDIT:

    If you want to the pointer menu to only take up a certain portion of the screen you can use a horizontal linearlayout to split the screen in two:

     <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
                 android:layout_width/height/ect...>
    
        <ImageView android:id="BlueBackground"
                   android:layout_width/height/ect...>
        <LinearLayout android:id="HSplitLayout"
                      orientation="horizontal">
    
            <LinearLayout android:id="Pointer"
                       android:layout_width/height/ect...>
            //The List
            </LinearLayout>
    
            <ContentOnRight...>
    
        </LinearLayout>
    
    
     </FrameLayout>     
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a simple Window that looks like this: <Window x:Class=StackOverflowExample.MainWindow xmlns=http://schemas.microsoft.com/winfx/2006/xaml/presentation xmlns:x=http://schemas.microsoft.com/winfx/2006/xaml Title=MainWindow
I am reviewing this technology but have a few design concerns that made me
I have a repository pattern setup using NHibernate. The base class looks like this:
I have made a design with a fixed header and footer, with a liquid
More of a design/conceptual question. At work the decision was made to have our
I have made a jQuery toggle for a menu that I had in mind.
I have made an application for IPad in objective C. In this I am
I have made a code that read data from flash Nand (without filesystem). fd
In one of our project, we would like to have a calendar control that
well i have little knowledge in JavaScript. My idea is to design a grid

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.