【问题标题】:Android Consumed Memory Size LimitAndroid 消耗内存大小限制
【发布时间】:2017-10-07 12:17:52
【问题描述】:

我的应用程序有选项卡视图,它有 4 个选项卡,这些选项卡有很多事情要做,因为“选项卡视图 - 选项卡更改动画”它会加载此活动的每个选项卡。

所以应用程序消耗大约 170-250 Mb 内存。 使用 android:largeHeap="true""minSdkVersion 14";

  • 这可能是低内存设备的问题吗?
  • 是否有适用于所有 android 设备的内存分布图,例如 %70 大于 790MB 和 vs...
  • 如果有人对此问题有经验,请您建议最大堆大小没有问题。

PS:在这个应用程序中:我不是在处理大位图或其他文件。

提前谢谢...

【问题讨论】:

    标签: android memory out-of-memory heap-memory


    【解决方案1】:
    you can try for XML layout also see bellow link for more info....I hope you will get solutions from this link....
    <android.support.design.widget.TabLayout>
    and try it for tablet
    <android.support.design.widget.TabLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    app:tabMaxWidth="0dp"
    app:tabGravity="fill"
    app:tabMode="fixed"/>
    .
    http://www.truiton.com/2015/06/android-tabs-example-fragments-viewpager/
    http://www.androidhive.info/2015/09/android-material-design-working-with-tabs/
    

    【讨论】:

    • 感谢您对 Nakum 的评论,我会尽快通知您有关更改的信息。但我的问题实际上是关于这个尺寸是否合适?
    猜你喜欢
    • 2015-11-30
    • 1970-01-01
    • 1970-01-01
    • 2015-04-04
    • 1970-01-01
    • 1970-01-01
    • 2014-12-25
    • 2013-10-30
    • 2018-04-27
    相关资源
    最近更新 更多