1
모양의 테두리를받는 방법 Android 기기,이 내가 갖고 싶은 글고입니다이
상단 테두리는 훨씬 작아 져라.
코드에 패딩을 설정했지만 볼 수있는대로 작동하지 않았습니다. 텍스트가 edittext의 맨 위에 있습니다. edittext의 가운데에 어떻게 정렬 할 수 있습니까?
이 내 당김 XML입니다 :
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:padding="15dp"
android:shape="rectangle" >
<solid android:color="#3C1251" />
<corners
android:bottomLeftRadius="5dp"
android:bottomRightRadius="5dp"
android:topLeftRadius="5dp"
android:topRightRadius="5dp" />
<stroke
android:width="2.3dp"
android:color="#56DEF1" />
</shape>
** 9 패치 **를 사용하십시오. http://radleymarx.com/blog/simple-guide-to-9-patch/ –