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

  • Home
  • SEARCH
  • 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 6254779
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T14:14:34+00:00 2026-05-24T14:14:34+00:00

I have two `TextView` and below `ListView` with two `TextView`. My problem is: How

  • 0
I have two `TextView` and below `ListView` with two `TextView`.  
My problem is: How do I set that value from my second `TextView` from `ListView`  be right under second `TextView` which is above `ListView`.  
Can anyone help?

I have 2 tableRows. In first I have 2 textView's: TextViewNameOfProduct and TextViewPriceOfProduct. In second tableRow i have a listView. ListView have also 2 textView's:textViewProduct and textViewPrice.
My problem is that the textViewPrice is not right below TextViewPriceOfProduct...it isn't aligned with TextViewPriceOfProduct. My english is bad and i I'm not sure if I was clear enough...

http://imageupload.org/?d=2ABFEE041

OPIS PROIZVODA is first textView, second is CENA. Under that are elements from listView. How to put 100 below CENA??? How to align that...if you need my xml i will put it here...


  [1]: https://i.stack.imgur.com/ODWyj.jpg


<LinearLayout
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:orientation="vertical"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent">
  <TableLayout android:id="@+id/tableLayout1" android:layout_height="wrap_content"              android:layout_width="fill_parent">
      <TableRow android:layout_height="wrap_content" android:layout_width="fill_parent" android:id="@+id/tableRow7">
            <LinearLayout 
            xmlns:android="http://schemas.android.com/apk/res/android"
            android:layout_width="fill_parent" 
            android:layout_height="fill_parent"
            android:orientation="horizontal" 
            android:layout_weight="1">
            <TextView   android:text="OPIS PROIZVODA" 
                        android:id="@+id/textViewOpisProizvoda" 
                        android:layout_width="wrap_content" 
                        android:layout_height="wrap_content"
                        android:textSize="14sp"
                        android:layout_weight="1">
            </TextView> 
            <TextView   android:text="CENA" 
                        android:id="@+id/textViewCena" 
                        android:layout_width="wrap_content" 
                        android:layout_height="wrap_content"
                        android:textSize="14sp"
                        android:layout_gravity="center"
                        android:gravity="center"
                        android:layout_weight="1">
            </TextView> 
            </LinearLayout>
      </TableRow>
<TableRow android:layout_height="wrap_content" android:layout_width="fill_parent" android:id="@+id/tableRow8">
             <LinearLayout 
            android:layout_width="wrap_content"
            android:layout_height="wrap_content">
             <ListView               
                android:id="@+id/listViewPonuda" 
                android:layout_width="fill_parent"
                android:smoothScrollbar="true"
                android:visibility="visible"                                
                android:layout_height="wrap_content"
                android:textSize="14sp"
                >
              </ListView>
              </LinearLayout>         
      </TableRow>
  </TableLayout>
  • 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-24T14:14:35+00:00Added an answer on May 24, 2026 at 2:14 pm

    I think for listview’s textview i.e (ListView have also 2 textView’s:textViewProduct and textViewPrice.), you can use this layout. You can adjust the second textview by simply padding right as per your requirement.

    <?xml version="1.0" encoding="utf-8"?>
    <LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="horizontal"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content">
    
    
    <TextView
        android:id="@+id/country_name"
        android:text="textViewProduct"
        android:paddingLeft="10dip"
        android:layout_weight="0.5"
        android:layout_gravity="center"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" />
    <TextView
        android:id="@+id/country_abbrev"
        android:text="textViewPrice"
        android:layout_gravity="right"
        android:paddingRight="30dip"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" />
    </LinearLayout>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to create a ListView with items that have two lines of text,
Right now, I have two TextView 's. One is aligned to the left of
I have a problem with a RelativeLayout containing two TextView s and a ImageView
I have a Listview that originally listed items from a menu item with one
here in above screen, i have two linear layouts, one for two TextView and
I have two relative layouts that are currently displayed one below the other. I
My ListView (two TextView , one Icon) have more than 4000 rows and It
I have two screens the one which list the records in a listview ListView
I have two questions, I took the below code from a tutorial website in
I have a problem with two Textviews on the same height in a RelativeLayout

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.