相对布局有个below,above, rightOf ,leftOf 等属性,你查一下文档。

解决方案 »

  1.   

     android:layout_toRightOf,android:layout_toLeftOf,android:layout_below,android:layout_above,用这些试试
      

  2.   

    RelativeLayout 类有一个 LayoutParams 内部类 , 可以设置各种 xml 属性给这个内部类, 然后设置给对应的组件;
    RelativeLayout.LayoutParams(Context c, AttributeSet attrs)
    RelativeLayout.LayoutParams(int w, int h)
    RelativeLayout.LayoutParams(ViewGroup.LayoutParams source)
    RelativeLayout.LayoutParams(ViewGroup.MarginLayoutParams source)
    RelativeLayout.LayoutParams(RelativeLayout.LayoutParams source)
    Copy constructor.
      

  3.   

    如果没有要求特殊排列的话, 可以先把图片按照设定的顺序放在 LinearLayout里面, 然后设置到 RelativeLayout 中