我原来是想用relativelayout去做的,做了一下午也没做出来。
下面那三个带颜色的条条不是图片,我把他放在linearlayout里面了。“个人中心”字样放在了TextView里面。就是无法让linearlayout的三个带颜色的条条放在个人中心TextView的下面

解决方案 »

  1.   

    实例化linearlayout,然后在代码中
    linearlayout.setY(linearlayout.getY()-50);
    具体数值你进去自己微调,前提是textview要在linearlayout上面,要不会反过来覆盖。
    这是我想的办法,看看其他大神怎么看。
      

  2.   

    附上一张效果图
    <Button
            android:id="@+id/send1"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentLeft="true"
            android:layout_alignParentTop="true"
            android:text="发送普通广播" />    <Button
            android:id="@+id/send2"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentLeft="true"
            android:layout_below="@+id/send1"
            android:text="发送顺序广播" />
      

  3.   

    自己解决了,是因为父控件设置了center属性,导致怎么调都调不出来,还是谢谢你拉