I am beginner in android. I am creating a Custom Dialog box, it is working fine. But this dialog box does not moved. How to move this custom dialog box. For example in windo
Dialog doesn't have any Touch event listeners so you might possibly create an Activity, implement onTouchListener on it, and in manifest file
<activity android:theme="@android:style/Theme.Dialog">
Now your Activity will look like a DialogBox, and you can implement the view's setOnTouchListener()
and write the required code in that listener.