테이블 레이아웃으로 목록보기를 사용하는 하나의 활동을 개발 중입니다. ...의 속성에 대한 그래서 어떤 생각을 그 목록보기 (MySQL의 데이터베이스 값에서) 3 텍스트를 표시하려면,하지만 문제는 텍스트가 약간Tableviewout with listview
Text1 Text1 Text1 Text1 Text1 Text1
Text2 Text2 Text2 and i want this Text2 Text2 Text2
Text3 Text3 Text3 Text3 Text3 Text3
이런 식으로 같은 목록의 순서가 표시 있다는 것입니다 목록보기 또는 텍스트보기를 올바르게 설정하려면 어떻게해야합니까? 다음 PLZ
List_row.xml ... 코멘트
<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:stretchColumns="1">
<TableRow
android:background="@drawable/table_row_bg"
>
<TextView
android:id="@+id/adapter_text_estate"
android:text="estate"
android:gravity="center"
android:textSize="8dp"
android:layout_marginRight="10sp"
android:padding="3dip" />
<TextView
android:id="@+id/adapter_text_division"
android:text="division"
android:gravity="left"
android:textSize="8dp"
android:padding="3dip" />
<TextView
android:id="@+id/adapter_text_id"
android:text="id"
android:textSize="8dp"
android:gravity="right"
android:padding="3dip" />
</TableRow>
</TableLayout>
main.xml에
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#E0FFFF"
android:orientation="vertical" >
<TextView
android:id="@+id/cources_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="ESTATE NAME"
android:textColor="#429ed7"
android:textSize="12sp"
android:textStyle="bold" />
<ListView
android:id="@+id/listCollege"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:visibility="gone"
android:layout_marginTop="8dp" >
</ListView>
</LinearLayout>
감사 @ Dileep .. 그 작업 ... – Sasya
아주 대단히 환영 Sasya ... –