0
텍스트를 가운데 맞추기가 잘되었지만 가운데에 맞추지 않으면 표의 내용을 가운데에 맞출 때 사용합니다. 나는TableLayout의 내용을 중앙에 맞 춥니 다
layout_gravity="center"
와 모두 작동하지 않습니다
gravity="center"
을 시도했다. 내가 무엇을 할 수 있을지? layout_centerInParent = "true"또는 안드로이드 : layout_centerHorizontal = "진정한 정확한 출력이 레이아웃에서 기대하고 있지만,이 테이블의 폭을 설정하려고 할 수 있습니다에 대한 확실하지
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<TextView
android:id="@+id/date"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:padding="20dp" />
<TableLayout
android:id="@+id/table"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/date" />
</RelativeLayout>
'TableLayout' 자체 또는 테이블 내의 요소에서 사용해 보셨습니까? – Szymon
TableLayout 자체. 프로그래밍 방식으로 TableRows를 만듭니다. – Nfear
가운데에 놓습니다. – Szymon