इस नमूना कोड का प्रयास करें। यह आपकी आवश्यकता फिट बैठता है।
PopupWindow pw = new PopupWindow(
this.getViewInflate().inflate(R.layout.pw_layout,
null, true, null),
100,100,true);
// display the popup in the center
pw.showAtLocation(layout, Gravity.CENTER, 0, 0);
pw.update(20,20,100,100);
EditText
हिस्से के अंदर विचारों के लिए, आप 'EditText
विस्तार करने के लिए होगा। इस प्रकार का अवलोकन इस प्रकार दिखना चाहिए।
class emailEditText extends EditText {
List<NamePhotoView> ViewlistOfSelectedContacts; // create new
void addContact(String name, Bitmap photo) {
// create a new 'NamePhotoView' and add to the ViewlistOfSelectedContacts
}
@Override
void onDraw(Canvas canvas) {
for (....) {
// draw all views from the list. left to right.
}
// you have to some how offset the text start coordinate. then call super
super.onDraw(canvas);
}
}
कि does not एक edittext .. यह एक 'दृश्य – Ronnie