【问题标题】:Toast text not fit (overflow) [duplicate]Toast 文本不合适(溢出)[重复]
【发布时间】:2015-05-24 16:34:53
【问题描述】:

我的祝酒词有问题,您可以看到 HERE 文字不合适。你知道为什么会出现这个问题吗? 在 Android 5.0 上,toasts 看起来很正常,但在 4.3 中则不然。

我的 style.xml

<style name="_SelectorParent" parent="Theme.AppCompat.Light.NoActionBar">

</style>

<style name="_mainParent" parent="@style/_SelectorParent">
    <item name="colorPrimary">@color/colorPrimary</item>
    <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
    <item name="colorAccent">@color/colorAccent</item>
    <item name="windowActionModeOverlay">false</item>
    <item name="android:fitsSystemWindows">true</item>
    <item name="windowActionBar">false</item>
    <item name="android:windowBackground">@color/white</item>
</style>

【问题讨论】:

    标签: android toast android-toast


    【解决方案1】:

    我在堆栈上找到了解决方案,您必须将android:fitsSystemWindows 更改为false。在这里解释:Simple Android toasts not aligning properly

    【讨论】:

      猜你喜欢
      • 2013-05-08
      • 1970-01-01
      • 2018-06-05
      • 1970-01-01
      • 2015-09-13
      • 1970-01-01
      • 2017-10-03
      • 2011-09-18
      相关资源
      最近更新 更多