hi ,
u can use this .
in this method m displaying a Alert Bulier with a custom view. you have to
do the same with ur context menu. use LayoutInflater as i do.
thanks:
i hope it will help u :)

*

public

*

*void* AlertDisplay()

{

LayoutInflater factory = LayoutInflater.*from*(*this*);

*final* View textEntryView = factory.inflate(R.layout.*homescreen*, *null*);


AlertDialog.Builder alert = *new* AlertDialog.Builder(*this*);

alert.setInverseBackgroundForced(*true*);

alert.setView(textEntryView);

AlertDialog *loginPrompt* = alert.create();

username = (EditText) textEntryView.findViewById(R.id.*username_edittext*);

password = (EditText) textEntryView.findViewById(R.id.*password_editText*);

email = (EditText) textEntryView.findViewById(R.id.*email_editText*);

alert.setPositiveButton("Submit", *new* DialogInterface.OnClickListener()

{

*public* *void* onClick(DialogInterface dialog, *int* whichButton) {

 /*

* code for sending response to the server

*

* */

         }

});

 alert.show();

}

   }


On Mon, May 9, 2011 at 2:11 PM, srihari babu <[email protected]>wrote:

> develop your own layout and set that layout as view for context menu
> by using layout inflater.
>
>
> On May 9, 12:04 pm, Hitendrasinh Gohil <[email protected]>
> wrote:
> > hi,
> >
> > I want to make a custom layout for context menu?
> > how i can set this layout to context menu?
> > can anybody give me reference link or tell me how to do it?
> >
> > regards,
> > hitendrasinh gohil
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to