Back to Browse

Edittext field in Dialog Box in Sketchware Android Project

8.1K views
Nov 8, 2017
8:30

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);

Download

0 formats

No download links available.

Edittext field in Dialog Box in Sketchware Android Project | NatokHD