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

Daily GK Update:3rd September 2016

1.  India and Vietnam sign 12 agreements to boost bilateral ties India  and  Vietnam  have signed  12 agreements  for cooperation in areas like defence, IT, space, double taxation and sharing white shipping information, signaling a strong upward push in their strategic ties. The agreements were signed by the  two sides officials  in presence of PM Narendra Modi  and his Vietnamese counterpart  Nguyen Xuan Phuc . India will provide  $500 million  credit line for Vietnam for defence cooperation. India also offered a grant of  $5 million  to set up a  software park in Vietnam. Modi is the fourth Indian  Prime Minister  to visit Vietnam during the past about 50 years. National & International Appointment 2.  Dr. K K Aggarwal elected National President of IMA Cardiologist  Dr.K K Aggarwal  has been elected as the  National President  of the  I...

Facebook accqure the new E-Commerce bussiness.

1. Wipro appoints Abid Neemuchwala as COO i. India's third largest IT services exporter Wipro Ltd. announced the appointment of appointment of former TCS top executive Mr. Abid Ali Neemuchwala as the Group President and Chief Operating Officer of the company.  ii. Mr Neemuchwala was heading the Business Process Services globally.  iii. Apart from this he was also involved in several leadership roles during his 23-year-long career with TCS.   2. Facebook acquires The Find e-commerce search engine i. Facebook has acquired The Find, a nine-year-old company with a search engine that indexes products across thousands of e-commerce sites. ii. That probably means the ads Facebook users see will be more relevant to products they’ve been browsing and buying online, perhaps highlighting local retailers. One of The Find’s features is that it attempts to mix online and local stores and says its results are based on “your social profile.” iii. For Facebook, the technolog...

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 ...
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <!-- srportalgiri_main_AdSense1_250x250_as --> <ins class="adsbygoogle"      style="display:inline-block;width:250px;height:250px"      data-ad-client="ca-pub-2060990885270177"      data-ad-slot="4129699440"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script>

Follow the Page for Daily Updates!