Value in EditText is set on second click only
I have an adapter where there is dynamic form generated using switch case. all the case are working but in case of CASE:"NepaliDate", the date is set only in second click. The following is my case:
case "NEPALI_DATE":
holder.et = new EditText(context);
list.add(holder.et);
holder.et.setInputType(InputType.TYPE_CLASS_DATETIME);
holder.sifarismainLayout.addView(holder.et);
holder.et.setFocusable(false);
holder.et.setCursorVisible(false);
holder.et.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Calendar now = Calendar.getInstance();
int current_month = now.get(Calendar.MONTH) +1;
Log.e("currMonth", String.valueOf(current_month));
if(current_month == 4 || current_month == 5 || current_month == 6 || current_month == 7 ||
current_month == 8 || current_month == 9 || current_month == 10 ||
current_month == 11 || current_month == 12) {
com.hornet.dateconverter.DatePicker.DatePickerDialog dpd = com.hornet.dateconverter.DatePicker.DatePickerDialog.newInstance(chooseSifarisAdapter.this, now.get(Calendar.YEAR) + 57, now.get(Calendar.MONTH) - 3,
now.get(Calendar.DAY_OF_MONTH));
dpd.show(manager, "Datepickerdialog");
}
else {
com.hornet.dateconverter.DatePicker.DatePickerDialog dpd = com.hornet.dateconverter.DatePicker.DatePickerDialog.newInstance(
chooseSifarisAdapter.this,
now.get(Calendar.YEAR) + 57,
now.get(Calendar.MONTH) + 9,
now.get(Calendar.DAY_OF_MONTH)
);
dpd.show(manager, "Datepickerdialog");
}
holder.et.setText(nepaliDate);
});
break;
To use com.hornet.dateconverter.DatePicker.DatePickerDialog i have to implement a method which contains an override method as follows:
@Override
public void onDateSet(com.hornet.dateconverter.DatePicker.DatePickerDialog datePickerDialog, int i, int i1, int i2) {
i1 = i1 + 1;
String startdate;
startdate = (i + "/" + i1 + "/" + i2);
DateConverter dc = new DateConverter();
Model outputOfConversion = dc.getEnglishDate(i, i1, i2);
int year = outputOfConversion.getYear();
int month = outputOfConversion.getMonth();
int day = outputOfConversion.getDay();
month = month + 1;
startDate = (year + "-" + month + "-" + day);
nepaliDate = i + "-" + i1 + "-" + i2;
Using above code the value is set only on second click. Suppose I choose a date, this date wont be visible at EditText at exact time rather the date will be clicked on second time i click the EditText. Since i have used holder, the exact EditText should be used. please help me?
add a comment |
I have an adapter where there is dynamic form generated using switch case. all the case are working but in case of CASE:"NepaliDate", the date is set only in second click. The following is my case:
case "NEPALI_DATE":
holder.et = new EditText(context);
list.add(holder.et);
holder.et.setInputType(InputType.TYPE_CLASS_DATETIME);
holder.sifarismainLayout.addView(holder.et);
holder.et.setFocusable(false);
holder.et.setCursorVisible(false);
holder.et.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Calendar now = Calendar.getInstance();
int current_month = now.get(Calendar.MONTH) +1;
Log.e("currMonth", String.valueOf(current_month));
if(current_month == 4 || current_month == 5 || current_month == 6 || current_month == 7 ||
current_month == 8 || current_month == 9 || current_month == 10 ||
current_month == 11 || current_month == 12) {
com.hornet.dateconverter.DatePicker.DatePickerDialog dpd = com.hornet.dateconverter.DatePicker.DatePickerDialog.newInstance(chooseSifarisAdapter.this, now.get(Calendar.YEAR) + 57, now.get(Calendar.MONTH) - 3,
now.get(Calendar.DAY_OF_MONTH));
dpd.show(manager, "Datepickerdialog");
}
else {
com.hornet.dateconverter.DatePicker.DatePickerDialog dpd = com.hornet.dateconverter.DatePicker.DatePickerDialog.newInstance(
chooseSifarisAdapter.this,
now.get(Calendar.YEAR) + 57,
now.get(Calendar.MONTH) + 9,
now.get(Calendar.DAY_OF_MONTH)
);
dpd.show(manager, "Datepickerdialog");
}
holder.et.setText(nepaliDate);
});
break;
To use com.hornet.dateconverter.DatePicker.DatePickerDialog i have to implement a method which contains an override method as follows:
@Override
public void onDateSet(com.hornet.dateconverter.DatePicker.DatePickerDialog datePickerDialog, int i, int i1, int i2) {
i1 = i1 + 1;
String startdate;
startdate = (i + "/" + i1 + "/" + i2);
DateConverter dc = new DateConverter();
Model outputOfConversion = dc.getEnglishDate(i, i1, i2);
int year = outputOfConversion.getYear();
int month = outputOfConversion.getMonth();
int day = outputOfConversion.getDay();
month = month + 1;
startDate = (year + "-" + month + "-" + day);
nepaliDate = i + "-" + i1 + "-" + i2;
Using above code the value is set only on second click. Suppose I choose a date, this date wont be visible at EditText at exact time rather the date will be clicked on second time i click the EditText. Since i have used holder, the exact EditText should be used. please help me?
try to remove focus if it is there in xml
– Shylendra Madda
Nov 26 '18 at 9:39
@ShylendraMadda xml only consists of a linear layout bro.
– Sudeep
Nov 26 '18 at 9:46
no focus is used
– Sudeep
Nov 26 '18 at 9:56
an EditText may gain focus on click
– gratien asimbahwe
Nov 26 '18 at 9:57
add a comment |
I have an adapter where there is dynamic form generated using switch case. all the case are working but in case of CASE:"NepaliDate", the date is set only in second click. The following is my case:
case "NEPALI_DATE":
holder.et = new EditText(context);
list.add(holder.et);
holder.et.setInputType(InputType.TYPE_CLASS_DATETIME);
holder.sifarismainLayout.addView(holder.et);
holder.et.setFocusable(false);
holder.et.setCursorVisible(false);
holder.et.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Calendar now = Calendar.getInstance();
int current_month = now.get(Calendar.MONTH) +1;
Log.e("currMonth", String.valueOf(current_month));
if(current_month == 4 || current_month == 5 || current_month == 6 || current_month == 7 ||
current_month == 8 || current_month == 9 || current_month == 10 ||
current_month == 11 || current_month == 12) {
com.hornet.dateconverter.DatePicker.DatePickerDialog dpd = com.hornet.dateconverter.DatePicker.DatePickerDialog.newInstance(chooseSifarisAdapter.this, now.get(Calendar.YEAR) + 57, now.get(Calendar.MONTH) - 3,
now.get(Calendar.DAY_OF_MONTH));
dpd.show(manager, "Datepickerdialog");
}
else {
com.hornet.dateconverter.DatePicker.DatePickerDialog dpd = com.hornet.dateconverter.DatePicker.DatePickerDialog.newInstance(
chooseSifarisAdapter.this,
now.get(Calendar.YEAR) + 57,
now.get(Calendar.MONTH) + 9,
now.get(Calendar.DAY_OF_MONTH)
);
dpd.show(manager, "Datepickerdialog");
}
holder.et.setText(nepaliDate);
});
break;
To use com.hornet.dateconverter.DatePicker.DatePickerDialog i have to implement a method which contains an override method as follows:
@Override
public void onDateSet(com.hornet.dateconverter.DatePicker.DatePickerDialog datePickerDialog, int i, int i1, int i2) {
i1 = i1 + 1;
String startdate;
startdate = (i + "/" + i1 + "/" + i2);
DateConverter dc = new DateConverter();
Model outputOfConversion = dc.getEnglishDate(i, i1, i2);
int year = outputOfConversion.getYear();
int month = outputOfConversion.getMonth();
int day = outputOfConversion.getDay();
month = month + 1;
startDate = (year + "-" + month + "-" + day);
nepaliDate = i + "-" + i1 + "-" + i2;
Using above code the value is set only on second click. Suppose I choose a date, this date wont be visible at EditText at exact time rather the date will be clicked on second time i click the EditText. Since i have used holder, the exact EditText should be used. please help me?
I have an adapter where there is dynamic form generated using switch case. all the case are working but in case of CASE:"NepaliDate", the date is set only in second click. The following is my case:
case "NEPALI_DATE":
holder.et = new EditText(context);
list.add(holder.et);
holder.et.setInputType(InputType.TYPE_CLASS_DATETIME);
holder.sifarismainLayout.addView(holder.et);
holder.et.setFocusable(false);
holder.et.setCursorVisible(false);
holder.et.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Calendar now = Calendar.getInstance();
int current_month = now.get(Calendar.MONTH) +1;
Log.e("currMonth", String.valueOf(current_month));
if(current_month == 4 || current_month == 5 || current_month == 6 || current_month == 7 ||
current_month == 8 || current_month == 9 || current_month == 10 ||
current_month == 11 || current_month == 12) {
com.hornet.dateconverter.DatePicker.DatePickerDialog dpd = com.hornet.dateconverter.DatePicker.DatePickerDialog.newInstance(chooseSifarisAdapter.this, now.get(Calendar.YEAR) + 57, now.get(Calendar.MONTH) - 3,
now.get(Calendar.DAY_OF_MONTH));
dpd.show(manager, "Datepickerdialog");
}
else {
com.hornet.dateconverter.DatePicker.DatePickerDialog dpd = com.hornet.dateconverter.DatePicker.DatePickerDialog.newInstance(
chooseSifarisAdapter.this,
now.get(Calendar.YEAR) + 57,
now.get(Calendar.MONTH) + 9,
now.get(Calendar.DAY_OF_MONTH)
);
dpd.show(manager, "Datepickerdialog");
}
holder.et.setText(nepaliDate);
});
break;
To use com.hornet.dateconverter.DatePicker.DatePickerDialog i have to implement a method which contains an override method as follows:
@Override
public void onDateSet(com.hornet.dateconverter.DatePicker.DatePickerDialog datePickerDialog, int i, int i1, int i2) {
i1 = i1 + 1;
String startdate;
startdate = (i + "/" + i1 + "/" + i2);
DateConverter dc = new DateConverter();
Model outputOfConversion = dc.getEnglishDate(i, i1, i2);
int year = outputOfConversion.getYear();
int month = outputOfConversion.getMonth();
int day = outputOfConversion.getDay();
month = month + 1;
startDate = (year + "-" + month + "-" + day);
nepaliDate = i + "-" + i1 + "-" + i2;
Using above code the value is set only on second click. Suppose I choose a date, this date wont be visible at EditText at exact time rather the date will be clicked on second time i click the EditText. Since i have used holder, the exact EditText should be used. please help me?
edited Nov 26 '18 at 10:23
Sudeep
asked Nov 26 '18 at 9:25
SudeepSudeep
125
125
try to remove focus if it is there in xml
– Shylendra Madda
Nov 26 '18 at 9:39
@ShylendraMadda xml only consists of a linear layout bro.
– Sudeep
Nov 26 '18 at 9:46
no focus is used
– Sudeep
Nov 26 '18 at 9:56
an EditText may gain focus on click
– gratien asimbahwe
Nov 26 '18 at 9:57
add a comment |
try to remove focus if it is there in xml
– Shylendra Madda
Nov 26 '18 at 9:39
@ShylendraMadda xml only consists of a linear layout bro.
– Sudeep
Nov 26 '18 at 9:46
no focus is used
– Sudeep
Nov 26 '18 at 9:56
an EditText may gain focus on click
– gratien asimbahwe
Nov 26 '18 at 9:57
try to remove focus if it is there in xml
– Shylendra Madda
Nov 26 '18 at 9:39
try to remove focus if it is there in xml
– Shylendra Madda
Nov 26 '18 at 9:39
@ShylendraMadda xml only consists of a linear layout bro.
– Sudeep
Nov 26 '18 at 9:46
@ShylendraMadda xml only consists of a linear layout bro.
– Sudeep
Nov 26 '18 at 9:46
no focus is used
– Sudeep
Nov 26 '18 at 9:56
no focus is used
– Sudeep
Nov 26 '18 at 9:56
an EditText may gain focus on click
– gratien asimbahwe
Nov 26 '18 at 9:57
an EditText may gain focus on click
– gratien asimbahwe
Nov 26 '18 at 9:57
add a comment |
1 Answer
1
active
oldest
votes
After this line holder.et = new EditText(context); you can set the et to be not focusable. Because the first click can be to turn the focus to your EditText so to avoid that, since it will not be editable change it's focusable property to false this way: holder.et.setFocusable(false).
EDIT:
According to what I see with your code:
On the first click your nepaliDate is empty and when you set the text to your edittext you set an empty string.
After the first click, when the DatePicker pops up and you choose the date, your nepaliDate has now a value because it's attributed inside onDateSet() callback.
But this time, you are not setting the value of nepaliDate to holder.et,
So when you click for the second time, I guess, your nepaliDate still has the last value.
I think, it should be better to call holder.et.setText(nepaliDate) inside onDateSet() callback. You can create a reference of holder.et on click, that will be accessible inside onDateSet().
That's my point of view
@gratein it is not working sir..
– Sudeep
Nov 26 '18 at 9:54
did you add the line? is it still focusable?
– gratien asimbahwe
Nov 26 '18 at 9:56
i added the line. actually a calender is to be poped up when that EditText is clicked. It is still being poped up
– Sudeep
Nov 26 '18 at 10:00
Does it popup at first click? If yes you are in a good way. But my simple test question is, after popup what did you want to achieve according to your code above.
– gratien asimbahwe
Nov 26 '18 at 10:05
yes after first click it pops up. After the date picker pops up whenever i chose any date i want it to be set on that EditText. but the date is set there on second click only.
– Sudeep
Nov 26 '18 at 10:08
|
show 3 more comments
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53478038%2fvalue-in-edittext-is-set-on-second-click-only%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
After this line holder.et = new EditText(context); you can set the et to be not focusable. Because the first click can be to turn the focus to your EditText so to avoid that, since it will not be editable change it's focusable property to false this way: holder.et.setFocusable(false).
EDIT:
According to what I see with your code:
On the first click your nepaliDate is empty and when you set the text to your edittext you set an empty string.
After the first click, when the DatePicker pops up and you choose the date, your nepaliDate has now a value because it's attributed inside onDateSet() callback.
But this time, you are not setting the value of nepaliDate to holder.et,
So when you click for the second time, I guess, your nepaliDate still has the last value.
I think, it should be better to call holder.et.setText(nepaliDate) inside onDateSet() callback. You can create a reference of holder.et on click, that will be accessible inside onDateSet().
That's my point of view
@gratein it is not working sir..
– Sudeep
Nov 26 '18 at 9:54
did you add the line? is it still focusable?
– gratien asimbahwe
Nov 26 '18 at 9:56
i added the line. actually a calender is to be poped up when that EditText is clicked. It is still being poped up
– Sudeep
Nov 26 '18 at 10:00
Does it popup at first click? If yes you are in a good way. But my simple test question is, after popup what did you want to achieve according to your code above.
– gratien asimbahwe
Nov 26 '18 at 10:05
yes after first click it pops up. After the date picker pops up whenever i chose any date i want it to be set on that EditText. but the date is set there on second click only.
– Sudeep
Nov 26 '18 at 10:08
|
show 3 more comments
After this line holder.et = new EditText(context); you can set the et to be not focusable. Because the first click can be to turn the focus to your EditText so to avoid that, since it will not be editable change it's focusable property to false this way: holder.et.setFocusable(false).
EDIT:
According to what I see with your code:
On the first click your nepaliDate is empty and when you set the text to your edittext you set an empty string.
After the first click, when the DatePicker pops up and you choose the date, your nepaliDate has now a value because it's attributed inside onDateSet() callback.
But this time, you are not setting the value of nepaliDate to holder.et,
So when you click for the second time, I guess, your nepaliDate still has the last value.
I think, it should be better to call holder.et.setText(nepaliDate) inside onDateSet() callback. You can create a reference of holder.et on click, that will be accessible inside onDateSet().
That's my point of view
@gratein it is not working sir..
– Sudeep
Nov 26 '18 at 9:54
did you add the line? is it still focusable?
– gratien asimbahwe
Nov 26 '18 at 9:56
i added the line. actually a calender is to be poped up when that EditText is clicked. It is still being poped up
– Sudeep
Nov 26 '18 at 10:00
Does it popup at first click? If yes you are in a good way. But my simple test question is, after popup what did you want to achieve according to your code above.
– gratien asimbahwe
Nov 26 '18 at 10:05
yes after first click it pops up. After the date picker pops up whenever i chose any date i want it to be set on that EditText. but the date is set there on second click only.
– Sudeep
Nov 26 '18 at 10:08
|
show 3 more comments
After this line holder.et = new EditText(context); you can set the et to be not focusable. Because the first click can be to turn the focus to your EditText so to avoid that, since it will not be editable change it's focusable property to false this way: holder.et.setFocusable(false).
EDIT:
According to what I see with your code:
On the first click your nepaliDate is empty and when you set the text to your edittext you set an empty string.
After the first click, when the DatePicker pops up and you choose the date, your nepaliDate has now a value because it's attributed inside onDateSet() callback.
But this time, you are not setting the value of nepaliDate to holder.et,
So when you click for the second time, I guess, your nepaliDate still has the last value.
I think, it should be better to call holder.et.setText(nepaliDate) inside onDateSet() callback. You can create a reference of holder.et on click, that will be accessible inside onDateSet().
That's my point of view
After this line holder.et = new EditText(context); you can set the et to be not focusable. Because the first click can be to turn the focus to your EditText so to avoid that, since it will not be editable change it's focusable property to false this way: holder.et.setFocusable(false).
EDIT:
According to what I see with your code:
On the first click your nepaliDate is empty and when you set the text to your edittext you set an empty string.
After the first click, when the DatePicker pops up and you choose the date, your nepaliDate has now a value because it's attributed inside onDateSet() callback.
But this time, you are not setting the value of nepaliDate to holder.et,
So when you click for the second time, I guess, your nepaliDate still has the last value.
I think, it should be better to call holder.et.setText(nepaliDate) inside onDateSet() callback. You can create a reference of holder.et on click, that will be accessible inside onDateSet().
That's my point of view
edited Nov 26 '18 at 10:38
answered Nov 26 '18 at 9:47
gratien asimbahwegratien asimbahwe
1,12631223
1,12631223
@gratein it is not working sir..
– Sudeep
Nov 26 '18 at 9:54
did you add the line? is it still focusable?
– gratien asimbahwe
Nov 26 '18 at 9:56
i added the line. actually a calender is to be poped up when that EditText is clicked. It is still being poped up
– Sudeep
Nov 26 '18 at 10:00
Does it popup at first click? If yes you are in a good way. But my simple test question is, after popup what did you want to achieve according to your code above.
– gratien asimbahwe
Nov 26 '18 at 10:05
yes after first click it pops up. After the date picker pops up whenever i chose any date i want it to be set on that EditText. but the date is set there on second click only.
– Sudeep
Nov 26 '18 at 10:08
|
show 3 more comments
@gratein it is not working sir..
– Sudeep
Nov 26 '18 at 9:54
did you add the line? is it still focusable?
– gratien asimbahwe
Nov 26 '18 at 9:56
i added the line. actually a calender is to be poped up when that EditText is clicked. It is still being poped up
– Sudeep
Nov 26 '18 at 10:00
Does it popup at first click? If yes you are in a good way. But my simple test question is, after popup what did you want to achieve according to your code above.
– gratien asimbahwe
Nov 26 '18 at 10:05
yes after first click it pops up. After the date picker pops up whenever i chose any date i want it to be set on that EditText. but the date is set there on second click only.
– Sudeep
Nov 26 '18 at 10:08
@gratein it is not working sir..
– Sudeep
Nov 26 '18 at 9:54
@gratein it is not working sir..
– Sudeep
Nov 26 '18 at 9:54
did you add the line? is it still focusable?
– gratien asimbahwe
Nov 26 '18 at 9:56
did you add the line? is it still focusable?
– gratien asimbahwe
Nov 26 '18 at 9:56
i added the line. actually a calender is to be poped up when that EditText is clicked. It is still being poped up
– Sudeep
Nov 26 '18 at 10:00
i added the line. actually a calender is to be poped up when that EditText is clicked. It is still being poped up
– Sudeep
Nov 26 '18 at 10:00
Does it popup at first click? If yes you are in a good way. But my simple test question is, after popup what did you want to achieve according to your code above.
– gratien asimbahwe
Nov 26 '18 at 10:05
Does it popup at first click? If yes you are in a good way. But my simple test question is, after popup what did you want to achieve according to your code above.
– gratien asimbahwe
Nov 26 '18 at 10:05
yes after first click it pops up. After the date picker pops up whenever i chose any date i want it to be set on that EditText. but the date is set there on second click only.
– Sudeep
Nov 26 '18 at 10:08
yes after first click it pops up. After the date picker pops up whenever i chose any date i want it to be set on that EditText. but the date is set there on second click only.
– Sudeep
Nov 26 '18 at 10:08
|
show 3 more comments
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53478038%2fvalue-in-edittext-is-set-on-second-click-only%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
try to remove focus if it is there in xml
– Shylendra Madda
Nov 26 '18 at 9:39
@ShylendraMadda xml only consists of a linear layout bro.
– Sudeep
Nov 26 '18 at 9:46
no focus is used
– Sudeep
Nov 26 '18 at 9:56
an EditText may gain focus on click
– gratien asimbahwe
Nov 26 '18 at 9:57