Je possède ce TableLayout:Stretching TableLayout intérieur ScrollView
<?xml version="1.0" encoding="utf-8"?>
<ScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/layout" android:layout_height="fill_parent"
android:layout_alignParentBottom="true" android:scrollbars="horizontal|vertical"
android:layout_width="fill_parent" android:scrollbarStyle="outsideInset">
<HorizontalScrollView android:id="@+id/horizontalView" android:layout_height="fill_parent"
android:layout_width="fill_parent">
<TableLayout android:id="@+id/reportTableLayout"
android:layout_width="fill_parent" android:layout_height="fill_parent"
android:stretchColumns="1">
</TableLayout>
</HorizontalScrollView>
</ScrollView>
J'ai mis tous layout_width à fill_parent, et pourtant mes colonnes de tableau ne semblent pas étirer et remplir le reste de l'espace largeur. Il y a toujours une marge sur la gauche, mais je veux que ma table s'étire sur toute la largeur de l'écran. Des idées? Merci.
combien de colonnes sont dans votre table? –