내 Layout
에 ListView
의 텍스트 항목을 가로로 가운데 정렬 할 수 있습니까?
솔직히, 나는 그런 기본적인 질문을하기 전에 적어도 한 시간 씩 인터넷 검색을했습니다.ListView의 가운데 텍스트 항목
감사합니다.
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context=".MainActivity" >
<EditText
android:layout_width="match_parent"
android:layout_height="50dp"
android:hint="Remind..." />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="200dp"
android:baselineAligned="false"
android:orientation="horizontal" >
<ListView
android:id="@+id/listviewTimeInterval"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:scrollbars="none" />
<-- . . . --/>
<-- more lists of the same kind--/>
<-- . . .--/>
</LinearLayout>
</LinearLayout>
'TextViews'의 '중력'을 사용자 정의 항목 XML에 설정하면 안됩니까? –