View 使线性布局内的视图(图像)可绘制(android)

View 使线性布局内的视图(图像)可绘制(android),view,draggable,View,Draggable,我以线性布局添加了视图(图像),并以以下方式以线性布局显示: public void displayCard(ArrayList<Integer> aContent) { Point pnt = new Point(); for(int i=0;i<13;i++) { pnt = Suffle.getCoOrdinate(aContent.get(i)); imge=new ImageView(getApplicationContext

我以线性布局添加了视图(图像),并以以下方式以线性布局显示:

 public void displayCard(ArrayList<Integer> aContent) {
    Point pnt = new Point();
 for(int i=0;i<13;i++)
     {
     pnt = Suffle.getCoOrdinate(aContent.get(i));
     imge=new ImageView(getApplicationContext());
     LinearLayout bottomLinearLayout=(LinearLayout) findViewById(R.id.bottomlinear);
     Bitmap orgbmp=BitmapFactory.decodeResource(getResources(), R.drawable.cards);
     Bitmap corp=Bitmap.createBitmap(orgbmp,Integer.valueOf(1+(2 + 144) *pnt.x),1+Integer.valueOf((2 + 194) * pnt.y), 144, 194);
     imge.setImageBitmap(corp);
     bottomLinearLayout.addView(imge, 60, 80);
     //bottomLinearLayout.addView(imge,i));
     }
公共作废显示卡(ArrayList aContent){
点pnt=新点();
对于(int i=0;i