Android listView的布局问题

Android listView的布局问题,android,listview,layout,Android,Listview,Layout,我认为对于listview的textview,即listview还有两个textview:textViewProduct和textViewPrice.,您可以使用此布局。您可以根据自己的要求,通过简单地向右填充来调整第二个textview I have two `TextView` and below `ListView` with two `TextView`. My problem is: How do I set that value from my second `TextView`

我认为对于listview的textview,即listview还有两个textview:textViewProduct和textViewPrice.,您可以使用此布局。您可以根据自己的要求,通过简单地向右填充来调整第二个textview

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]: http://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>

你能加一张照片吗?因为现在,你的意思是。。。无法理解。有点清楚。我们无法准确了解您的要求以及您的情况。请您描述一些细节。也许您需要创建一个您想要实现的草图?包括您当前拥有的图片,并更清楚地描述您想要实现的目标,请。您想在CENA正下方对齐100吗?然后你们需要在第二个文本视图上设置listview标题,我设置了padding 50dip,现在它在emulator上看起来很好。我关心的是它在电话里会是什么样子???这是我的第一个android应用程序…然后使用相对布局,将给出您的确切要求。检查此链接,这将帮助您:-
<?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>