0

私は現在、この2列のレイアウトを持っています:

<?xml version="1.0" encoding="utf-8"?>

<LinearLayout
     xmlns:android="http://schemas.android.com/apk/res/android"
     android:paddingTop="4dip"
     android:paddingBottom="6dip"
     android:paddingLeft="4dip"
     android:layout_width="fill_parent"

     android:layout_height="wrap_content"
     android:orientation="horizontal">

     <TextView android:id="@+id/TRAIN_CELL"
         android:layout_width="0dip"
         android:layout_height="wrap_content"
         android:textSize="16sp"
         android:layout_weight="11"/>

     <TextView android:id="@+id/TO_CELL"
         android:layout_width="0dip"
         android:textSize="20sp"
         android:textStyle="bold" 
         android:gravity="center"
         android:textColor="@color/light_best_blue"
         android:layout_height="wrap_content"  
         android:layout_weight="1"/>

</LinearLayout>

左側はテキストで、右側は「>」という文字で、押すことができることをユーザーに知らせています。私がしなかったのは、リストをピクセル番号でハードコードすることですが、リストをより動的にして画面のパーセンテージを超えて作業する方法はありますか?

ありがとう!

編集:

上記のレイアウトを試してみたところ、左側のテキストの直後に「>」の文字が次の文字として表示されて変です。なぜそれが起こるのですか?

4

0 に答える 0