ボタンを中心点=タッチポイントで膨らませたい。膨らませるとき、m は次のようにします。
control = inflater.inflate(R.layout.button,
(ViewGroup) target_layout, false);
targetContainer.addView(control);
x = x - (control.getWidth()/2); // control not inflating exactly @ center of
y = y - (control.getHeight()/2); // the touch left.
absoluteLayoutParams = new AbsoluteLayout.LayoutParams(LayoutParams.WRAP_CONTENT,
LayoutParams.WRAP_CONTENT, x, y);
control.setLayoutParams(absoluteLayoutParams);
button.xmlには、高さと幅 = ラップ コンテンツのボタンが含まれています。 ここのx & yは、ドラッグをリリースしたときのタッチ座標です。
これは、タッチポイントから膨らむ方法です。
タッチポイントからこのように膨らむと思います。
よろしくお願いします、カピル。