일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 스피너
- 조이스틱
- bottom
- WebCamTexture
- Round Square
- webcam
- Android
- Unity
- camera
- UI
- DP
- ListvView
- 안드로이드
- 리스트뷰
- Handelr
- spinner
- layout
- 그래들
- gradle
- 유니티
- 레이아웃
- Ext
- GPS
- GlobalComponent
- Today
- Total
목록안드로이드/레이아웃 (16)
JY-Dev Tech Blog
[OverView] 오늘은 어플리케이션에 font를 적용하는 방법에 대해 알려드리겠습니다. 일단 res폴더에 새로 font라는 디렉토리를 만들어줍니다. 그 다음은 사용할 ttf 파일을 font폴더 안에다 넣어줍니다. [XML] 방식 이런식으로 fontFamily 안에서 불러오시면 됩니다. [Code] 방식 val typeFace = ResourcesCompat.getFont(context,R.font.font) tv.typeface = typeFace 이렇게 typeface를 선언해서 해줄수 있습니다.
[OverView] 이번에는 무한히 도는 Progressbar를 생성하는 방법에 대해 알아보겠습니다. 간단하게 xml에서 선언 해주시기만 하면 완성입니다. [XML] indeterminateDuration - 몇초간격으로 반복할지 설정
[OverView] 이번에는 Drawable Shape의 Solid 색상을 변경하는 방법에 대해 알아보겠습니다. [Code] var drawable = ContextCompat.getDrawable(this,R.drawable.circle_gray) as GradientDrawable drawable.setColor(ContextCompat.getColor(this,R.color.colorAccent)) imageView.setImageDrawable(drawable) drawable을 GradientDrawable로 캐스팅한후 setColor를 통해 원하는 색상을 넣어주시면 됩니다.
[OverView] 이번에는 SearchView에서 TextStyle을 변경하는 방법에 대해 알려드리겠습니다. val search_view_text = : SearchView.SearchAutoComplete = view.search.findViewById(androidx.appcompat.R.id.search_src_text) 이런식으로 SearchView의 Textview에 접근 할수 있습니다. 그래서 이 Textview에 속성을 넣어주시면 속성이 변경되는걸 확인하실 수 있습니다.