벡터 드로어 블을 미리 볼 수있는 방법이 있습니까?
내 앱 빌드 및 설치가 부족한 경우 벡터 드로어 블 xml 파일을 미리 볼 수있는 방법이 있습니까?
Android Studio의 작은 테스트 앱으로 빌드했으며 레이아웃 파일의 일부로 미리 볼 수 있지만 더 간단한 방법을 원했습니다.
편집 : 내 drawable.xml 파일은 다음과 같습니다.
<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<group>
<path
android:fillColor="#f5a625"
android:strokeColor="#000000"
android:strokeWidth=".5"
android:pathData="M0,0l18,0l6,6l0,10l-24,0z" />
</group>
</vector>
오른쪽에는 특별히 미리보기 탭 이 있습니다 (Android Studio 2.0 이후) :
미리보기 창이 자동으로 표시되지 않는 경우. View -> Tool Windows -> Preview
Android Studio의 메뉴 로 이동하여 미리보기 창을 수동으로 표시 할 수 있습니다 .
https://plugins.jetbrains.com/plugin/10741-vector-drawable-thumbnails 에서 Android Studio 플러그인을 사용하여 프로젝트의 모든 벡터 드로어 블을 동시에 미리 볼 수있는 방법이 있습니다.
Settings-> Plugins-> Browse Repositories로 이동하여 "Vector Drawable Thumbnails"를 검색하십시오.
Android Studio 1.4에서는 VectorDrawables를 미리 볼 수 있습니다. res/drawable
폴더 에서 두 번 클릭하기 만하면 됩니다.
xml 편집기의 디자인보기로 이동하고 속성 아래에서 srcCompat 옆에있는 ... 버튼을 클릭하여 Android 스튜디오에서 벡터 드로어 블 미리보기를 빠르게 검색 할 수 있습니다.
참고 URL : https://stackoverflow.com/questions/33091618/is-there-a-way-to-preview-a-vector-drawable
'Program Tip' 카테고리의 다른 글
링크 위로 마우스를 가져갈 때 나타나는 손 모양 커서를 제거 할 수 있습니까? (0) | 2020.11.26 |
---|---|
Bash / Debian에서 파일 생성 날짜 / 시간을 얻는 방법은 무엇입니까? (0) | 2020.11.26 |
멤버 식의 값에 액세스 (0) | 2020.11.26 |
“LINQ 식 노드 유형 'Invoke'는 LINQ to Entities에서 지원되지 않습니다.”-당황했습니다! (0) | 2020.11.26 |
codeigniter에서 base_url () 함수가 작동하지 않습니다. (0) | 2020.11.26 |