J'ai un onglet avec listview mais je ne vois pas le dernier élément à moins que je défiler la actionbar (qui je pense ne devrait pas être normal)Listview dans l'onglet ne représente pas le dernier élément
Voici mon xml:
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/main_content"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
tools:context="com.example.dikelito.tabs.MainActivity">
<android.support.design.widget.AppBarLayout
android:id="@+id/appbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingTop="@dimen/appbar_padding_top"
android:theme="@style/AppTheme.AppBarOverlay">
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="?attr/colorPrimary"
app:layout_scrollFlags="scroll|enterAlways"
app:popupTheme="@style/AppTheme.PopupOverlay">
</android.support.v7.widget.Toolbar>
<android.support.design.widget.TabLayout
android:id="@+id/tabs"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</android.support.design.widget.AppBarLayout>
<android.support.v4.view.ViewPager
android:id="@+id/container"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior" />
</android.support.design.widget.CoordinatorLayout>
Comment puis-je résoudre ce problème?
Le problème est que la barre d'outils ne s'effondre pas. –
Votre deuxième image montre la barre d'outils réduite. Êtes-vous en train de dire que cela ne se produit pas lorsque vous balayez ou essayez-vous également de cacher les onglets? – dshrout
Il ne s'effondre que lorsque je fais défiler la barre d'outils. Il ne s'effondre pas lorsque je fais défiler la liste. J'ai lu http://stackoverflow.com/a/17767691/4778015 mais la barre d'outils ne s'effondre pas et je ne sais pas ce que je manque –