私は3列のリストビューを持っています。 私は3つの部分で等しくそれらを区切るには、ディバイダを使用したいと思います。
たとえば、Android ListViewデバイダを均等に分割する
TEXT |テキスト| TEXT
FACE | GFRt | FOEE
しかし、私はそれがこの
ABCのように見ている分圧器を使用します| efef | fkejfe
dffewf |フェフェ| efie
私は遠く離れてアンドロイドから遠く離れているので、助けがあれば大いに感謝します。
私のXMLコードは以下の通りです:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:id="@+id/txtLabel1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toLeftOf="@+id/divider1"
android:textAppearance="?attr/textAppearanceListItem" />
<View
android:id="@+id/divider1"
android:layout_width="1dp"
android:layout_height="match_parent"
android:background="@android:color/black" />
<TextView
android:id="@+id/txtLabel2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="@dimen/text_margin"
android:textAppearance="?attr/textAppearanceListItem" />
<View
android:id="@+id/divider2"
android:layout_width="1dp"
android:layout_height="match_parent"
android:layout_toLeftOf="@+id/divider1"
android:background="@android:color/black" />
<TextView
android:id="@+id/txtLabel3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="@dimen/text_margin"
android:textAppearance="?attr/textAppearanceListItem" />
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"></RelativeLayout>
</LinearLayout>
あなたのxmlファイルをここに追加してください –
ヘルプは常にhogwarts.Butで最初に投稿されます。 –
ok sir pls wait a second –