【问题标题】:How to Add Layout on the Top of another Layout如何在另一个布局的顶部添加布局
【发布时间】:2016-07-26 06:17:58
【问题描述】:

如何将布局或视图置于另一个视图或布局之上
enter image description here如图所示

【问题讨论】:

标签: java android android-layout


【解决方案1】:

你到底想要什么? 看看你可以通过两种方式做到这一点:

  1. 在里面取一个android.support.v7.widget.Toolbar 取一个Relative Layout 然后取一个TextviewRelativeLayout with an ImageView 在里面。将右侧的RelativeLayout with ImageView 和左侧的TextView 对齐。

  2. 取一个android.support.v7.widget.Toolbar,在它下面取一个RelativeLayout with ImageView并将其与Right and Top对齐

【讨论】:

    猜你喜欢
    • 2018-01-09
    • 1970-01-01
    • 2011-06-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多