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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T20:57:41+00:00 2026-05-23T20:57:41+00:00

I am developing an android application and have created a tabbed layout for my

  • 0

I am developing an android application and have created a tabbed layout for my application. I want to be able to create a layout on the first tab that looks like this:
I want to be able to evaluate certain products

I am just working on Tab 1 for now and the part with the A+ is supposed to just be a random pic that gets uploaded.
How would I go about making a layout like this?
What layout type should I use?
What would be the most efficient way of making this layout.

  • 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-23T20:57:42+00:00Added an answer on May 23, 2026 at 8:57 pm

    Use RelativeLayout. Set ImageView that will be below the TabWidget. Then set the TextView for Description to be toRight of your ImageView and below TabWidget, and the Evaluation TextView to be below the ImageView. Hope the words helped 🙂

    <?xml version="1.0" encoding="utf-8"?>
    <TabHost xmlns:android="http://schemas.android.com/apk/res/android"
        android:id="@android:id/tabhost" android:layout_width="fill_parent"
        android:layout_height="fill_parent">
        <LinearLayout android:orientation="vertical"
            android:layout_width="fill_parent" android:layout_height="fill_parent">
            <TabWidget android:id="@android:id/tabs"
                android:layout_width="wrap_content" android:layout_height="wrap_content" />
            <FrameLayout android:id="@android:id/tabcontent"
                android:layout_width="fill_parent" android:layout_height="fill_parent">
                <RelativeLayout android:orientation="vertical"
                    android:layout_width="fill_parent" android:layout_height="fill_parent"
                    android:id="@+id/main2">
                ///here you make the positioning of imageview and textviews
    
                </RelativeLayout>
    
            </FrameLayout>
        </LinearLayout>
    </TabHost>
    

    Note that this will apply for both of your tabs, if you want to have different views per each tab, then try inflating.

    Edit:

       Intent intent = new Intent(this, Activty4TheSecondTab.class);
         spec = tabHost.newTabSpec("2ndtab").setIndicator("MySecondTab",
                              res.getDrawable(R.drawable.something))
                          .setContent(intent);
    

    So in the Activty4TheSecondTab.class you set content layout like usual. Do this for both tabs.

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

Sidebar

Related Questions

I'm developing my first Android application, and I'd like to create a settings screen.
I am developing my first Android application. I have created a relativelayout with two
I am developing an android application. Now i have created one function which create
I'm developing Android application using third party libraries (Twitter4j). I want to be able
I want to start android tablet application development. i have created a new avd
I am developing an android game application,I have implemented all the screens.Now i want
I'm developing and Android application. I have a model on Blender and I want
I am developing an android application in which I have created a database named
I have an Android app that I am currently developing. I have created icons
I'm currently developing an Android application that fetches images using http requests. It would

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.