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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T12:21:04+00:00 2026-05-26T12:21:04+00:00

I have a Gallery with several items in it, and I’m trying to get

  • 0

I have a Gallery with several items in it, and I’m trying to get them positioned so that you can see the edge of the next item. Much like this:

http://imgur.com/mtQvX

Any help on how exactly I would go about positioning?

  • 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-26T12:21:05+00:00Added an answer on May 26, 2026 at 12:21 pm

    It sort of depends on how far you want to go with it. It should be possible to do with a simple ScrollView that you add a custom view that holds all the components in the picture you linked.

    Here’s what your custom layout could look like:

    <?xml version="1.0" encoding="utf-8"?>
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="340dp"
        android:layout_height="fill_parent"
        android:orientation="horizontal" >
    
        <LinearLayout
            android:layout_width="wrap_content"
            android:layout_height="fill_parent"
            android:layout_marginRight="24dp"
            android:orientation="vertical" >
    
            <TextView
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:text="29"
                android:textColor="#ffff0000"
                android:textSize="24dp"
                android:textStyle="bold" />
    
            <TextView
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:text="of 30"
                android:textSize="14dp"
                android:textStyle="italic" />
        </LinearLayout>
    
        <LinearLayout
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:orientation="vertical" >
    
            <TextView
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:text="August 24 8:01 AM"
                android:textStyle="italic" />
    
            <TextView
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:text="Bruce Pearl&apos;s Show-Cause Pentalty And What It Means For His Coaching Future"
                android:textStyle="bold" />
        </LinearLayout>
    </LinearLayout>
    

    And this looks something like

    enter image description here

    Beyond that, if you wanted to do things like make it snap to the edges of your custom views, or something like that, then you might want to look here and here.

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

Sidebar

Related Questions

I have custom gallery. Gallery represents items that are frame layout. There are one
I trying to make a simple image gallery, where I have several radio button
I have an Android Gallery widget that displays several ImageViews with pictures from the
I'm developing on iOS SDK 4.3. I have an horizontally-scrolling paged gallery that can
I am making a HTML/CSS/jQuery gallery, with several pages. I indeed have a next
I have photo gallery code that does image re-sizing and thumbnail creation. I use
I have a gallery that's loaded via a BaseAdapter . This works fine. I
Given that I have a Gallery object and Photo object. Gallery has many Photos.
I have an image gallery that I created by reading the contents inside a
I have tried this several different ways but can't seem to figure out how

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.