تماشای ویدئو Edittext field in Dialog Box in Sketchware Android Project از آی-ویدئو

This video describes how to create an Edittext field inside a Dialog Box in Sketchware Android App, and how to get the contents of the Edittext field to a string. The code used is: final EditText input = new EditText(MainActivity.this); LinearLayout.LayoutParams lpar = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT); input.setLayoutParams(lpar); dialog.setView(input);
26 آذر 1397
آی-ویدئو