How do I make EditText show my text input?
I created a login screen with textinput, but I noticed that whenever I entered a character into the editText, it wouldn't show the letters I typed in. I'd greatly appreciate if you helped me with this.
My EditText code:
<EditText
android:id="@+id/editText"
android:layout_width="wrap_content"
android:layout_height="44dp"
android:layout_marginBottom="8dp"
android:layout_marginEnd="8dp"
android:layout_marginStart="8dp"
android:layout_marginTop="8dp"
android:alpha="0.23"
android:background="@drawable/textviewshape"
android:ems="10"
android:inputType="textPersonName"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.709"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintStart_toEndOf="@+id/btnLogin"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.427" />
java
add a comment |
I created a login screen with textinput, but I noticed that whenever I entered a character into the editText, it wouldn't show the letters I typed in. I'd greatly appreciate if you helped me with this.
My EditText code:
<EditText
android:id="@+id/editText"
android:layout_width="wrap_content"
android:layout_height="44dp"
android:layout_marginBottom="8dp"
android:layout_marginEnd="8dp"
android:layout_marginStart="8dp"
android:layout_marginTop="8dp"
android:alpha="0.23"
android:background="@drawable/textviewshape"
android:ems="10"
android:inputType="textPersonName"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.709"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintStart_toEndOf="@+id/btnLogin"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.427" />
java
Try changing the background of your app or the text color.
– PradyumanDixit
Nov 25 '18 at 8:03
add a comment |
I created a login screen with textinput, but I noticed that whenever I entered a character into the editText, it wouldn't show the letters I typed in. I'd greatly appreciate if you helped me with this.
My EditText code:
<EditText
android:id="@+id/editText"
android:layout_width="wrap_content"
android:layout_height="44dp"
android:layout_marginBottom="8dp"
android:layout_marginEnd="8dp"
android:layout_marginStart="8dp"
android:layout_marginTop="8dp"
android:alpha="0.23"
android:background="@drawable/textviewshape"
android:ems="10"
android:inputType="textPersonName"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.709"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintStart_toEndOf="@+id/btnLogin"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.427" />
java
I created a login screen with textinput, but I noticed that whenever I entered a character into the editText, it wouldn't show the letters I typed in. I'd greatly appreciate if you helped me with this.
My EditText code:
<EditText
android:id="@+id/editText"
android:layout_width="wrap_content"
android:layout_height="44dp"
android:layout_marginBottom="8dp"
android:layout_marginEnd="8dp"
android:layout_marginStart="8dp"
android:layout_marginTop="8dp"
android:alpha="0.23"
android:background="@drawable/textviewshape"
android:ems="10"
android:inputType="textPersonName"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.709"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintStart_toEndOf="@+id/btnLogin"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.427" />
java
java
edited Nov 25 '18 at 8:03
PradyumanDixit
2,1872819
2,1872819
asked Nov 25 '18 at 7:54
John GreenJohn Green
31
31
Try changing the background of your app or the text color.
– PradyumanDixit
Nov 25 '18 at 8:03
add a comment |
Try changing the background of your app or the text color.
– PradyumanDixit
Nov 25 '18 at 8:03
Try changing the background of your app or the text color.
– PradyumanDixit
Nov 25 '18 at 8:03
Try changing the background of your app or the text color.
– PradyumanDixit
Nov 25 '18 at 8:03
add a comment |
4 Answers
4
active
oldest
votes
Try changing the color and size of your text.
Thank you so much! I changed my text color to black and everything worked out:).
– John Green
Nov 25 '18 at 18:01
Upvote if it helped u thanks.
– Manish Thapa
Nov 26 '18 at 6:15
add a comment |
you can give android:textColor="" which clearly see on background color
which you has given in
android:background="@drawable/textviewshape"
Thank you so much! I changed my text color to black and everything worked out:).
– John Green
Nov 25 '18 at 18:01
add a comment |
Why did you set this attribute:
android:alpha="0.23"
this will make the text unreadable.
Remove it and if the problem persists try a different textColor.
Thank you so much! I changed my text color to black and everything worked out:).
– John Green
Nov 25 '18 at 18:01
add a comment |
Try to change EditText properties android:textColor to black or try remove backgrounds.
add a comment |
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%2f53465640%2fhow-do-i-make-edittext-show-my-text-input%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
4 Answers
4
active
oldest
votes
4 Answers
4
active
oldest
votes
active
oldest
votes
active
oldest
votes
Try changing the color and size of your text.
Thank you so much! I changed my text color to black and everything worked out:).
– John Green
Nov 25 '18 at 18:01
Upvote if it helped u thanks.
– Manish Thapa
Nov 26 '18 at 6:15
add a comment |
Try changing the color and size of your text.
Thank you so much! I changed my text color to black and everything worked out:).
– John Green
Nov 25 '18 at 18:01
Upvote if it helped u thanks.
– Manish Thapa
Nov 26 '18 at 6:15
add a comment |
Try changing the color and size of your text.
Try changing the color and size of your text.
answered Nov 25 '18 at 10:26
Manish ThapaManish Thapa
648
648
Thank you so much! I changed my text color to black and everything worked out:).
– John Green
Nov 25 '18 at 18:01
Upvote if it helped u thanks.
– Manish Thapa
Nov 26 '18 at 6:15
add a comment |
Thank you so much! I changed my text color to black and everything worked out:).
– John Green
Nov 25 '18 at 18:01
Upvote if it helped u thanks.
– Manish Thapa
Nov 26 '18 at 6:15
Thank you so much! I changed my text color to black and everything worked out:).
– John Green
Nov 25 '18 at 18:01
Thank you so much! I changed my text color to black and everything worked out:).
– John Green
Nov 25 '18 at 18:01
Upvote if it helped u thanks.
– Manish Thapa
Nov 26 '18 at 6:15
Upvote if it helped u thanks.
– Manish Thapa
Nov 26 '18 at 6:15
add a comment |
you can give android:textColor="" which clearly see on background color
which you has given in
android:background="@drawable/textviewshape"
Thank you so much! I changed my text color to black and everything worked out:).
– John Green
Nov 25 '18 at 18:01
add a comment |
you can give android:textColor="" which clearly see on background color
which you has given in
android:background="@drawable/textviewshape"
Thank you so much! I changed my text color to black and everything worked out:).
– John Green
Nov 25 '18 at 18:01
add a comment |
you can give android:textColor="" which clearly see on background color
which you has given in
android:background="@drawable/textviewshape"
you can give android:textColor="" which clearly see on background color
which you has given in
android:background="@drawable/textviewshape"
answered Nov 25 '18 at 9:15
madu_devmadu_dev
593
593
Thank you so much! I changed my text color to black and everything worked out:).
– John Green
Nov 25 '18 at 18:01
add a comment |
Thank you so much! I changed my text color to black and everything worked out:).
– John Green
Nov 25 '18 at 18:01
Thank you so much! I changed my text color to black and everything worked out:).
– John Green
Nov 25 '18 at 18:01
Thank you so much! I changed my text color to black and everything worked out:).
– John Green
Nov 25 '18 at 18:01
add a comment |
Why did you set this attribute:
android:alpha="0.23"
this will make the text unreadable.
Remove it and if the problem persists try a different textColor.
Thank you so much! I changed my text color to black and everything worked out:).
– John Green
Nov 25 '18 at 18:01
add a comment |
Why did you set this attribute:
android:alpha="0.23"
this will make the text unreadable.
Remove it and if the problem persists try a different textColor.
Thank you so much! I changed my text color to black and everything worked out:).
– John Green
Nov 25 '18 at 18:01
add a comment |
Why did you set this attribute:
android:alpha="0.23"
this will make the text unreadable.
Remove it and if the problem persists try a different textColor.
Why did you set this attribute:
android:alpha="0.23"
this will make the text unreadable.
Remove it and if the problem persists try a different textColor.
answered Nov 25 '18 at 9:22
forpasforpas
16.3k3627
16.3k3627
Thank you so much! I changed my text color to black and everything worked out:).
– John Green
Nov 25 '18 at 18:01
add a comment |
Thank you so much! I changed my text color to black and everything worked out:).
– John Green
Nov 25 '18 at 18:01
Thank you so much! I changed my text color to black and everything worked out:).
– John Green
Nov 25 '18 at 18:01
Thank you so much! I changed my text color to black and everything worked out:).
– John Green
Nov 25 '18 at 18:01
add a comment |
Try to change EditText properties android:textColor to black or try remove backgrounds.
add a comment |
Try to change EditText properties android:textColor to black or try remove backgrounds.
add a comment |
Try to change EditText properties android:textColor to black or try remove backgrounds.
Try to change EditText properties android:textColor to black or try remove backgrounds.
edited Nov 25 '18 at 10:23
bobbyrne01
2,21064394
2,21064394
answered Nov 25 '18 at 8:00
Hard Harry NadelaHard Harry Nadela
94
94
add a comment |
add a comment |
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%2f53465640%2fhow-do-i-make-edittext-show-my-text-input%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 changing the background of your app or the text color.
– PradyumanDixit
Nov 25 '18 at 8:03