如何以圆圈方式查看图像

时间:2014-02-04 10:15:53

标签: android

我在Vshape中查看图像如何明智地查看圆圈。

public void vShape(LinearLayout lv, ArrayList<MyLinearLayout> st) {
        LinearLayout table = new LinearLayout(getApplicationContext());
        table.setOrientation(LinearLayout.VERTICAL);
       LinearLayout row=null;
        for (int i = 0; i < st.size(); i++) {
            if((i%NO_OF_ROWS==0)&&(i+3<=st.size())){

             row = new LinearLayout(getApplicationContext());
             row.setOrientation(LinearLayout.HORIZONTAL);
             row.addView(st.get(i).getLv());

                LinearLayout row1 = new LinearLayout(getApplicationContext());
                row1.setOrientation(LinearLayout.VERTICAL);


                ImageView im1 = new ImageView(getApplicationContext());
                im1.setMinimumHeight(50);
                im1.setMinimumWidth(50);
                row1.addView(im1);
                row1.addView(st.get(i+1).getLv());
                row.addView(row1);


                row.addView(st.get(i+2).getLv());

                table.addView(row);
            }

        }

        lv.addView(table);      

    }

http://pasteboard.co/qeavamO.png

我以这种形状查看图像

1     3
   2

但我希望像

一样明智
   4
1     3
   2

如何更改代码请帮助。

1 个答案:

答案 0 :(得分:0)

使用CircleLayout在此处查找视图

https://github.com/dmitry-zaitsev/CircleLayout