안드로이드 drawable 폴더에 xml 파일을 만들고 밑의 코드를 입력한다.
<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="10dp"
android:height="10dp"
android:viewportWidth="32.0"
android:viewportHeight="27.0">
<path
android:fillColor="#FFFFFFFF"
android:pathData="M0 0 h32 l-16 24 Z"/>
</vector>
위로 뾰족한 정삼각형을 만들고 싶다면 새로 xml 파일을 만들고, 위의 xml 파일을 180도 뒤집어 주면 된다.
<?xml version="1.0" encoding="utf-8"?>
<rotate xmlns:android="http://schemas.android.com/apk/res/android"
android:fromDegrees="180"
android:toDegrees="180"
android:drawable="@drawable/위에서_만든_xml_파일명" />
[Android][Kotlin] 안드로이드 앱 ( 패키지 ) 설치 여부 확인 (0) | 2021.08.31 |
---|---|
[Android][Kotlin]안드로이드 인터넷 연결 체크 확인 코드 (0) | 2021.08.31 |
[Android] 안드로이드 타이틀바, 액션바 제거 ( 앱 전체 ) (0) | 2021.01.02 |
[Android] string.xml 문자 가져오기 (0) | 2021.01.01 |
[Android][Android Studio] adb.exe위치 (0) | 2020.12.17 |
댓글 영역