2017-08-12 4 views

答えて

2

borderedEdittext.xmlを作成境のEditText

を作成するには、これを試してみて、描画可能

<?xml version="1.0" encoding="utf-8"?> 
<shape xmlns:android="http://schemas.android.com/apk/res/android"> 

    <!-- Background Color --> 
    <solid android:color="#ffffff" /> 

    <!-- Border Color --> 
    <stroke android:width="1dp" android:color="#ff9900" /> 

    <!-- Round Corners --> 
    <corners android:radius="5dp" /> 

</shape> 

と画像やヒントが、この

<EditText 
      android:drawableLeft="@drawable/profilePic" 
      android:hint="Enter Name" 
      android:background="@drawable/borderedEdittext" 
      android:layout_width="wrap_content" 
      android:layout_height="wrap_content" /> 
を使用するために置か