5

I don't want this line in EditText see image

is that because of android them color. what should i do to remove this line.and I want the screen Them without ActionBar.

10

Just add android:background="#00000000" to your EditText in XML file
Or android:background="@android:color/transparent"

1

Change your theme. Refer Android holo colors.

Choose the color as per your application's design and download the zip file of resources.

0

For the action bar, add this in onCreate:

supportRequestWindowFeature(Window.FEATURE_NO_TITLE); //<--- this line
setContentView(R.layout.myactivity);

Note that you have to put it before the setContentView.

You could use a <TextView> for the blue line, and make it editable:

android:editable="true"
0

add android:background="#80000000" to your EditText in XML file

Or android:background="@android:color/transparent"

or you can make a xml drawable for edittext background like http://www.techiecommunity.net/Android/Android-EditText-Background-Example

0

You need to add a selector background to your edittext without any border. For borderless edittext I used the following code:

<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle" >

<solid android:color="#00000000" />

<stroke
    android:width="0dp"
    android:color="#ffffff" />

</shape>

Set android:background="@drawable/borderless_edittext"

0

Use updated library:

style="@style/Base.Widget.AppCompat.Spinner.Underlined"

or add this line on your theme with spinnerStyle attribute. Or set your backgroundTintColor to transparent from your style.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.
{"cc_re__cc_re__cc_by_sa_4_0": ["-item\"><a href=\"https://twitter.com/stackoverflow\" class=\"-link js-gps-track\" data-gps-track=\"footer.click({ location: 2, link: 32 })\">Twitter</a></li>\r\n                    <li class=\"-item\"><a href=\"https://linkedin.com/company/stack-overflow\" class=\"-link js-gps-track\" data-gps-track=\"footer.click({ location: 2, link: 33 })\">LinkedIn</a></li>\r\n                </ul>\r\n\r\n                <p class=\"mt-auto mb24\">\r\nsite design / logo &#169; 2019 Stack Exchange Inc; user contributions licensed under <a href=\"https://creativecommons.org/licenses/by-sa/4.0/\" class=\"js-gps-track\" data-gps-track=\"footer.click({ location: 2, link: 34 })\" rel=\"license\">cc by-sa 4.0</a>\r\n                            with <a href=\"https://stackoverflow.blog/2009/06/25/attribution-required/\"  class=\"js-gps-track\" data-gps-track=\"footer.click({ location: 2, link:35 })\" rel=\"license\">attribution required</a>.\r\n                    <span id=\"svnrev\">rev&nbsp;2019.9.17.34929</span>\r\n                </p>\r\n            </div>\r\n        </div>\r\n\r\n            </footer>\r\n            <script>StackExchange.ready(function () { StackExchange.responsiveness.addSwitcher(); })</scri"], "copyright__copyright__copyright": ["id:color=\"#ffffff\" />\n\n</shape>\n\nSet android:background=\"@drawable/borderless_edittext\"\n\n0\n\nUse updated library:\n\nstyle=\"@style/Base.Widget.AppCompat.Spinner.Underlined\"\n\nor add this line on your theme with spinnerStyle attribute. Or set your backgroundTintColor to transparent from your style.\n\nYour Answer\n\nBy clicking \u201cPost Your Answer\u201d, you agree to our terms of service, privacy policy and cookie policy\n\nNot the answer you're looking for? Browse other questions tagged or ask your own question."]}