Skip to main content

Computer

               Using the Code

Create an XML file with the name
" EditTextStyle.xml " in the drawable folder in your
project and write the following code:

<?xml version="1.0"
encoding ="utf-8" ?>
< shape xmlns:android ="http://
schemas.android.com/apk/res/android"
android:thickness ="0dp"
android:shape ="rectangle">
< stroke android:width ="3dp"
android:color ="#4799E8"/>
< corners android:radius ="5dp" />
< gradient
android:startColor="#C8C8C8"
android:endColor ="#FFFFFF"
android:type="linear"
android:angle ="270"/>
</ shape >

Now add the following attribute to your
EditText :


< EditText
android:id ="@+id/
inputSearchEditText"
android:layout_marginLeft ="15dp"
android:layout_marginTop ="15dp"
android:layout_marginBottom ="20dp"
android:layout_marginRight ="15dp"
android:layout_centerVertical ="true"
android:layout_width ="match_parent"
android:layout_height ="wrap_content"
android:ellipsize ="start"
android:gravity ="center"
android:hint ="Search
text"
android:inputType ="text"
android:background ="@drawable/
EditTextStyle" />

Comments

Popular Post

Most Important Topics. International , Science , UPSC, BPSC..

  International Relations Prev First in-Person Meeting of Quad Countries           Star marking (1-5) indicates the importance of topic for CSE Tags:  GS Paper - 2 Groupings & Agreements Involving India and/or Affecting India's Interests Why in News Recently, the first in-person meeting of  Quad  leaders was hosted by the US. Issues like climate change, Covid-19 pandemic and challenges in the Indo Pacific, amidst China's growing military presence in the strategic region, were discussed in the meeting. Key Points Background: In  November 2017, India, Japan, the US and Australia gave shape to the long-pending proposal of setting up the Quad  to develop a new strategy to keep the critical sea routes in the Indo-Pacific free of any influence. China claims nearly all of the disputed  South China Sea , though Taiwan, the Philippines, Brunei, Malaysia and Vietnam all claim parts of it. The South China Sea is an arm of the Western ...

GDP projection by IMF:

 GDP projection by IMF:   ðŸ‡¨ðŸ‡³ China GDP: 2023: $19.374 trillion 2028: $27.4 trillion 2075: $57 trillion 🇮🇳 India GDP: 2023: $3.737 trillion 2028: $5.5 trillion 2075: $52.5 trillion 🇺🇲 US GDP: 2023: $26.855 trillion 2028: $32.3 trillion 2075: $51.5 trillion

Follow the Page for Daily Updates!