Code example for AbsoluteLayout

0
        android.util.Log.d("TAG", "aaa");
        //final LinearLayout layout1 = (LinearLayout) findViewById(R.id.layoutCameraView); 
        //final TextView tv1 = (TextView) layout1.findViewById(R.id.tv3); 
        //tv1.setOnTouchListener(this); 
         
        mLayoutGroup = new AbsoluteLayout(this);  
        //FrameLayout.LayoutParams layoutParams = FrameLayout.LayoutParams(FrameLayout.LayoutParams.FILL_PARENT, FrameLayout.LayoutParams.WRAP_CONTENT); 
        AbsoluteLayout.LayoutParams layoutParams = new AbsoluteLayout.LayoutParams(480, 700, 0, 0);  
         
    	MyScrollView scr = new MyScrollView(this);
    	scr.addView(mLayoutGroup);
 
  //      setContentView(mLayoutGroup, layoutParams); 
        setContentView(scr);
         
        Calendar c = Calendar.getInstance();
        int year = c.get(Calendar.YEAR);
        int month = c.get(Calendar.MONTH) + 1;
        int day = c.get(Calendar.DAY_OF_MONTH);
        String date = year + "/" + month + "/" + day;
        System.out.println("date to get call log is " + date);
         
        ImageViewManager imageviewmanager = new ImageViewManager();
        imageviewmanager.InitLayout(this, mLayoutGroup, getContentResolver(), getWindowManager(), date);
         
    } 
     
    @Override 
    public boolean onTouch(View v, MotionEvent event) {