Lollipop Android ListView 被截断

Lollipop Android ListView getting clipped

我正在显示一些信息。在具有自定义 adapter.But 的 listView 中,在 ListView 中截取最后一行。问题仅出现在 lollipop devices 中,例如 Moto Glollipop 等 on.With 其他设备完美。

<ListView
        android:id="@+id/playerList"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_below="@id/upperContainer"
        android:divider="@color/white"
        android:dividerHeight="10dp"
        android:scrollbars="none"

        />

主题:

<style name="AppBaseTheme" parent="@style/Theme.AppCompat.Light"/>

  <style name="MyTheme" parent="AppTheme">
        <item name="actionBarStyle">@style/MyActionBar</item>
        <item name="android:actionBarStyle">@style/MyActionBar</item>
 </style>

问题出现在 Api 21 或更高版本之后,SystemUiVisibility 是 visible.Sliding 菜单没有包含到 hide.So 我使用下面 snippet.Added 将其隐藏到滑动中菜单初始化 construtor.That 就这样了:-)

if(Build.VERSION.SDK_INT >= 21)
        setSystemUiVisibility(SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION);