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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T18:37:28+00:00 2026-06-07T18:37:28+00:00

In my application i have a table layout with 4 rows.In 1 row i

  • 0

In my application i have a table layout with 4 rows.In 1 row i displayed 2 data with some space in-between them which will look like having 2 columns.Now what i want is i have to start different intent by clicking this data.When i click 1st column it should start an intent and by clicking 2nd should start another intent.Is it possible to define region in table layout.Please help me.

Here is my table layout code:

<LinearLayout
     xmlns:android="http://schemas.android.com/apk/res/android"
     android:paddingTop="4dip"
     android:paddingBottom="6dip"
     android:layout_width="fill_parent"
     android:layout_height="fill_parent"
     android:orientation="vertical">    
<TableLayout 
        android:id="@+id/tablelayout"
        android:layout_height="wrap_content"
        android:layout_width="fill_parent"
        android:paddingRight="2dip"
        android:stretchColumns="0,1">

    <TableRow  >
 <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Income">
     </TextView>      

        <TextView             
            android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Expense" android:layout_marginLeft="-150dp">
     </TextView>                     

    </TableRow>    
        <TableRow
            android:layout_width="wrap_content"
            android:layout_height="wrap_content" >

            <View
                android:id="@+id/line1"
                android:layout_width="wrap_content"
                android:layout_height="1dip"
                android:layout_weight="1"
                android:background="#FF909090"
                android:padding="2dip" />
        </TableRow>


    <TableRow android:id="@+id/tablerowhouse"   android:layout_marginTop="30px">
 <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Household:" >
     </TextView>            
        <TextView             
            android:id="@+id/text50" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Household:" android:layout_marginLeft="-250dp" >
     </TextView>   

          <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Household:" android:layout_marginLeft="-150dp" >
     </TextView>            
        <TextView             
            android:id="@+id/text53" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Household:" android:layout_marginLeft="-70dp" >
     </TextView>    

    </TableRow>



        <TableRow
            android:layout_width="wrap_content"
            android:layout_height="wrap_content" >

            <View
                android:id="@+id/line1"
                android:layout_width="wrap_content"
                android:layout_height="1dip"
                android:layout_weight="1"
                android:background="#FF909090"
                android:padding="2dip" />
        </TableRow>


 <TableRow  android:layout_marginTop="40px">
 <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Travel:" android:layout_span="3">
     </TextView>     
      <TextView
           android:id="@+id/text51"
           android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Travel" android:layout_marginLeft="-250dp">
     </TextView>     

           <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Travel:" android:layout_marginLeft="-150dp" >
     </TextView>            
        <TextView             
            android:id="@+id/text54" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Travel:" android:layout_marginLeft="-70dp">
     </TextView>    
 </TableRow>


     <TableRow
            android:layout_width="wrap_content"
            android:layout_height="wrap_content" >

            <View
                android:id="@+id/line1"
                android:layout_width="wrap_content"
                android:layout_height="1dip"
                android:layout_weight="1"
                android:background="#FF909090"
                android:padding="2dip" />
        </TableRow>


     <TableRow  android:layout_marginTop="40px">
 <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Education:" android:layout_span="4">
     </TextView>     
      <TextView
           android:id="@+id/text52"
           android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Education" android:layout_marginLeft="-250dp">
     </TextView>  

           <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Education:" android:layout_marginLeft="-150dp" >
     </TextView>            
        <TextView             
            android:id="@+id/text55" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Education:"  android:layout_marginLeft="-70dp">
     </TextView>    
 </TableRow>


          <TableRow
            android:layout_width="wrap_content"
            android:layout_height="wrap_content" >

            <View
                android:id="@+id/line1"
                android:layout_width="wrap_content"
                android:layout_height="1dip"
                android:layout_weight="1"
                android:background="#FF909090"
                android:padding="2dip" />
        </TableRow>


          <TableRow  android:layout_marginTop="40px">
 <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Total:" android:layout_span="5">
     </TextView>     
      <TextView
           android:id="@+id/totincome" 
           android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Total" android:layout_marginLeft="-250dp">
     </TextView>  

           <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Total:" android:layout_marginLeft="-150dp" >
     </TextView>            
        <TextView             
            android:id="@+id/totexpense" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Total:"  android:layout_marginLeft="-10dp">
     </TextView>    
 </TableRow>

               <TableRow  android:layout_marginTop="40px">
 <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Balance:" android:layout_span="6"  android:layout_marginLeft="100dp" >
     </TextView>     
      <TextView
           android:id="@+id/balance"
           android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="balance" android:layout_marginLeft="-150dp" >
     </TextView>  


 </TableRow>



</TableLayout>
</LinearLayout>
  • 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-07T18:37:30+00:00Added an answer on June 7, 2026 at 6:37 pm

    Simply add click event to individual text after initializing like

     Text1.setOnClickListener(new View.OnClickListener() {
    
                    @Override
                    public void onClick(View v) {
                        // TODO Auto-generated method stub
    
    
      Intent  i = new Intent(this, MainMenu.class);
            startActivity(i);
                    }
                });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a table from a vendor application that stores some xml data into
I have two questions regarding to html table layout. First I will provide some
i am creating a new android application.i am using the table layout. I have
I have a table like this: Application,Program,UsedObject It can have data like this: A,P1,ZZ
I'm writing an application on qooxdoo. I have a class, which should return table
I have application working with SQLite DB(table with two rows) I need to recieve
I have problem with my application. I have table report, there are 2 column
I have a table created in sql. but in my application I am using
I'm working on rails application with postgres db.I have a table called merchant_review_votes where
My application is in ASP.net MVC3. I have a table of elements. An element

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.