【问题标题】:How to add a part of layout dynamicaly when user press a button in android?当用户在android中按下按钮时如何动态添加布局的一部分?
【发布时间】:2016-10-25 13:29:03
【问题描述】:

第一次调用fragmnet时

https://i.stack.imgur.com/dizrM.png

当用户点击 +(加号)按钮时

https://i.stack.imgur.com/TntNX.png

等等……

【问题讨论】:

    标签: android


    【解决方案1】:

    使用Inflater在父布局中添加部分布局。 按照这个链接: https://developer.android.com/reference/android/view/LayoutInflater.html

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-01-28
      • 2015-11-22
      • 2011-10-19
      • 2018-05-15
      • 2016-10-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多