Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to give look and feel to TextView like EditText

    • 0
    • 3
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 998
    Comment on it

    In many applications we have to create form that contains both EditText and TextView. The look and feel of EditText and TextView are completely different. So for making the TextView appearance similar to EdiText we have to specified its style attribute to "@style/Base.Widget.AppCompat.EditText"
    Example:-

    <TextView
      android:id="@+id/organization_name"
      style="@style/Base.Widget.AppCompat.EditText"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:layout_marginTop="@dimen/margin_small"
      android:hint="@string/organization_name" />
    

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: