خرید بک لینک

Vote count: -3

i am using xaamarin i want to get edit text text

String us= ((EditText)findViewById(Resource.id.usr)).getText().toString();
String pw = ((EditText)findViewById(Resource.id.psw)).getText().toString();
String value1=us;
String value2=pw

when i use GetText() << it is erroring me 'Android.Widget.EditText' does not contain a definition for 'getText' and no extension method 'getText' accepting a first argument of type 'Android.Widget.EditText'

asked 3 mins ago

1 Answer

Vote count: 1

There is problem in defining resource id (Resource.id.usr). It should be like this:

String us= ((EditText)findViewById(R.id.usr)).getText().toString();

answered 1 min ago

برچسب: نویسنده: استخدام کار تاريخ: سه شنبه 24 فروردين 1395 ساعت: 14:39

صفحه بندی