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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T09:50:50+00:00 2026-05-25T09:50:50+00:00

I’m looking to make a basic launcher for an application (basically a home screen

  • 0

I’m looking to make a basic launcher for an application (basically a home screen that launches other activities). Using an absolute layout, I was able to come up with a rough idea of what I’m looking for. All of the “TextView” fields would be replaced with the name of the activity to be launched.

But I don’t want to use an absolute layout, to avoid the obvious problems. I read on the forums that I could use a TableView, and each TableRow would add a row, and each ButtonImage would essentially add a column. The problem with that is I cannot seem to figure out how to get a TextView to appear underneath each image button, since that essentially inserts a new column into the table (so the image and text appear side-by-side instead of text under image).

Attached is my current XML for the example layout in absolute form. Any help would be IMMENSELY appreciated. 🙂

<?xml version="1.0" encoding="utf-8"?>
<AbsoluteLayout
android:id="@+id/widget39"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android"
>
<ImageButton
android:id="@+id/news"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/news"
android:layout_x="87px"
android:layout_y="100px"
>
</ImageButton>
<ImageButton
android:id="@+id/phone"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/phonebook"
android:layout_x="145px"
android:layout_y="100px"
>
</ImageButton>
<ImageButton
android:id="@+id/message"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/message"
android:layout_x="203px"
android:layout_y="100px"
>
</ImageButton>
<ImageButton
android:id="@+id/calendar"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/planner"
android:layout_x="86px"
android:layout_y="179px"
>
</ImageButton>
<ImageButton
android:id="@+id/help"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/panic"
android:layout_x="145px"
android:layout_y="180px"
>
</ImageButton>
<ImageButton
android:id="@+id/exit"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/exit"
android:layout_x="205px"
android:layout_y="180px"
>
</ImageButton>
<TextView
android:id="@+id/widget47"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="TextView"
android:layout_x="80px"
android:layout_y="146px"
>
</TextView>
<TextView
android:id="@+id/widget48"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="TextView"
android:layout_x="142px"
android:layout_y="147px"
>
</TextView>
<TextView
android:id="@+id/widget49"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="TextView"
android:layout_x="201px"
android:layout_y="147px"
>
</TextView>
<TextView
android:id="@+id/widget50"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="TextView"
android:layout_x="79px"
android:layout_y="227px"
>
</TextView>
<TextView
android:id="@+id/widget51"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="TextView"
android:layout_x="141px"
android:layout_y="228px"
>
</TextView>
<TextView
android:id="@+id/widget52"
android:layout_width="wrap_content"
android:layout_height="20px"
android:text="TextView"
android:layout_x="203px"
android:layout_y="228px"
>
</TextView>
</AbsoluteLayout>
  • 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-25T09:50:50+00:00Added an answer on May 25, 2026 at 9:50 am

    You should insert a LinearLayout (or any other layout) as a row cell containing other elements.

    The example code generates a TableLayout containing two TableRows, each containing three elements (as defined by the weightSum property). I used LinearLayouts as child elements (column cells) with vertical orientation, so the elements are positioned properly.

    <?xml version="1.0" encoding="utf-8"?>
    <TableLayout
        xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
    >
        <TableRow
            android:weightSum="3"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
        >
            <LinearLayout 
                android:layout_weight="1"
                android:orientation="vertical"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
            >
                <TextView 
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:text="I AM AN ICON"
                />
                <TextView 
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:text="APP NAME"
                />
            </LinearLayout>
    
            <LinearLayout 
                android:layout_weight="1"
                android:orientation="vertical"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
            >
                <TextView 
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:text="I AM AN ICON"
                />
                <TextView 
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:text="APP NAME"
                />
            </LinearLayout>
    
            <LinearLayout 
                android:layout_weight="1"
                android:orientation="vertical"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
            >
                <TextView 
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:text="I AM AN ICON"
                />
                <TextView 
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:text="APP NAME"
                />
            </LinearLayout>
        </TableRow>
    
            <TableRow
            android:weightSum="3"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
        >
            <LinearLayout 
                android:layout_weight="1"
                android:orientation="vertical"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
            >
                <TextView 
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:text="I AM AN ICON"
                />
                <TextView 
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:text="APP NAME"
                />
            </LinearLayout>
    
            <LinearLayout 
                android:layout_weight="1"
                android:orientation="vertical"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
            >
                <TextView 
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:text="I AM AN ICON"
                />
                <TextView 
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:text="APP NAME"
                />
            </LinearLayout>
    
            <LinearLayout 
                android:layout_weight="1"
                android:orientation="vertical"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
            >
                <TextView 
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:text="I AM AN ICON"
                />
                <TextView 
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:text="APP NAME"
                />
            </LinearLayout>
        </TableRow>
    </TableLayout>
    

    And, as ryandlf pointed out, avoid using static dimensions if possible.

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

Sidebar

Related Questions

That's pretty much it. I'm using Nokogiri to scrape a web page what has
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I have a jquery bug and I've been looking for hours now, I can't
link Im having trouble converting the html entites into html characters, (&# 8217;) i
Basically, what I'm trying to create is a page of div tags, each has
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
I've got a string that has curly quotes in it. I'd like to replace
I have a French site that I want to parse, but am running into
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
We're building an app, our first using Rails 3, and we're having to build

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.