+ 1

I need code for float windows (in android studio). i must use which code?

android window manger

26th Jul 2018, 12:54 PM
[Mohammad Sarmasti]
[Mohammad Sarmasti] - avatar
3 Respostas
+ 1
When you are in MainActivity (activity_main.xml) right now, and you want to show dialog_popup as a popup window in that Activity, you could do something like this (you have to import 'android.app.AlertDialog' and 'android.view.LayoutInflater'): AlertDialog.Builder d; d = new AlertDialog.Builder(MainActivity.this); LayoutInflater inflater = getLayoutInflater(); View dLayout = inflater.inflate(R.layout.dialog_popup, null); d.setView(dLayout); d.show();
28th Jul 2018, 10:15 AM
Azad Ad
Azad Ad - avatar
0
thank you
19th Aug 2018, 6:41 PM
[Mohammad Sarmasti]
[Mohammad Sarmasti] - avatar
0
you're welcome
19th Aug 2018, 6:42 PM
Azad Ad
Azad Ad - avatar