나는이 다음 코드 :안드로이드 모양의 라인
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="line">
<stroke android:width="1dp"/>
<size android:height="1dp" />
<solid android:color="#FFF"/>
</shape>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background ="@drawable/line"/>
나는 두 가지 질문이있다 : 라인 대신 흑백 왜
- ? ImageView 내부에 넣으려고했지만 그 결과는 같습니다.
- 어떻게 모양의 불투명도를 설정할 수 있습니까?
# 07FFFFFF를 의미합니다. – Vaiden
@Vaiden Android는 4 자리 ARGB를 지원합니다. 이 경우 # 77FFFFFF로 해석됩니다. –