+ 1
I need code for float windows (in android studio). i must use which code?
android window manger
3 odpowiedzi
+ 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();
0
thank you
0
you're welcome