Reputation: 73
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.
Upvotes: 5
Views: 5533
Reputation: 190
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.
Upvotes: 0
Reputation: 10338
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"
Upvotes: 0
Reputation: 15
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
Upvotes: 0
Reputation: 1608
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"
Upvotes: 0
Reputation: 29285
Just add android:background="#00000000"
to your EditText
in XML file
Or android:background="@android:color/transparent"
Upvotes: 10
Reputation: 28823
Change your theme. Refer Android holo colors.
Choose the color as per your application's design and download the zip file of resources.
Upvotes: 1