2011-04-20 1 views
4

나는 모서리를 가지고 노는 중이었고, 나는이 행동에 흥미가있었습니다. XML 레이아웃 :Android : 모양 "모서리"문제. 이거 버그 야?

<TextView xmlns:android="http://schemas.android.com/apk/res/android" 
    android:id="@+id/list_header_title" 

    android:layout_height="wrap_content" 
    android:layout_width="fill_parent" 
    android:padding="10dip" 
    android:gravity="center_vertical" 

    android:background="@layout/my_outline" 

    android:text="Example" 
    android:textSize="14sp" 
    android:textStyle="bold" 

/> 

이 my_outline.xml입니다 : 이 (모서리 태그에주의)

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

<corners 
     android:topLeftRadius="10dip" 
     android:bottomRightRadius="10dip"/> 

<padding 
     android:left="50dip" 
     android:top="5dip" 
     android:bottom="5dip" /> 

<solid 
     android:color="#0fff" /> 

<stroke 
     android:width="1dip" 
     android:color="#f0f0f0" /> 

</shape> 

사진 :

enter image description here

변경 모양 :

<corners 
     android:topLeftRadius="10dip" 
     android:bottomLeftRadius="10dip"/> 

그리고 하단 모서리가 거꾸로되어 있음을 분명히 볼 수 있습니다 (모든 경우에 나는 설명하기 위해 "수요일"을 자릅니다). 이것은 내 휴대 전화의 사진입니다 (넥서스 S 2.3.2하지만,뿐만 아니라 에뮬레이터에서 발생) : 당신이 알고

enter image description here

있습니까? 나는 Google ("안드로이드 모양 거꾸로 된 구석")을 보았고, 아무것도 얻지 못했다. 여기에 "관련 질문"이 없습니다.

+1

나는 똑같은 문제에 직면했다 !! 그리고 나는 그것을 버그라고 생각한다. – Chandrashekhar

답변

9

그래, 그것은 유명한 버그입니다. 자세한 링크 및 참조 정보는 this answer을 참조하십시오. : P

+0

아, 그래. 죄송 합니다만, 나는 그 질문을 보지 못했습니다. 아마 그 시스템은 그 단어들로 그들을 데려 오지 않았을 것입니다. 감사! – davidcesarino

+0

예, 문제 없습니다. 관련 질문이 항상 정확하지 않을 때가 있습니다. 때로는 이와 같은 것을 찾기가 어렵습니다. (나는 그 질문에 대답 해 원인을 알았다. 하하). 까다로운 버그, 왜냐하면 그들이 그것을 고치면, 나는 그것으로 이미 주위에 작동하는 모든 응용 프로그램을 깰 것이라고 생각할 것입니다 ... – kcoppock

+0

그건 요점입니다. 나는 나 자신을 위해 이미 그렇게했다. 아마 언젠가 그들은 이것을 비난하고 다른 어떤 이름을 사용할지도 모른다. 또는 그렇지 않을 수도 있습니다. – davidcesarino