티스토리 뷰
반응형
drawable - xml 파일 생성 .
coner = 테두리 라운드 정도 설정 .
stroke = 테두리 선 설정
solid = 배경화면 설정
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<stroke android:width="1px"
android:color="@color/black" />
<solid android:color="@color/black" />
<corners android:radius="5dp"/>
</shape>
imageView 라운드 설정 다른 방법 .
cardView를 이용한다. 속성 중 cardCornerRadius 이 radius 설정이다 .
<androidx.cardview.widget.CardView
android:layout_width="match_parent"
android:layout_height="29dp"
app:cardCornerRadius="5dp"
app:cardElevation="0dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
>
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="centerCrop"
android:src="@drawable/call_display_empty_item_img"/>
</androidx.cardview.widget.CardView>
반응형
'안드로이드' 카테고리의 다른 글
android studio 원격 연결 ,디버깅 (feat .adb ) (0) | 2022.02.28 |
---|---|
안드로이드 스튜디오 인터넷 연결 모니터하는 법. (0) | 2022.02.23 |
LayoutParams 설정 시 DP 단위로 바꾸기 (0) | 2022.01.25 |
Kotlin 기본 문법 정리 (0) | 2022.01.21 |
SoundPool 사용법 (0) | 2022.01.20 |
반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- ExoPlayer
- Kotlin
- node.js
- Hilt
- android
- flutter_new_badger
- direction
- ScrollView
- error
- retrofit
- app bundle
- message
- ios
- Token
- FCM
- Flutter
- java
- 알고리즘
- Firebase
- GitHub
- API
- 재귀함수
- 코딩테스트
- https
- ec2
- Custom
- listener
- Android Studio
- bitmap
- Crop
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
글 보관함