반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- setBackgroundResource
- 광 센서
- lateinit
- 자격증
- Exoplayer
- utf8mb4
- LayoutParmas
- 웹코드빌드
- 자기장 센서
- RecyclerView
- powercfg
- 걸음 감지 센서
- 온라인코딩
- 회전 센서
- 온라인무료코딩사이트
- 금속 탐지기 센서
- Android Studio 3.6
- ARGB
- 동영상 실행
- 코틀린
- Kotlin
- 걸음수 감지 센서
- BottomSheetDialog
- 온라인IDE
- Android
- 온라인에디터
- phpstorm
- mysql 5.7
- Aplha
Archives
- Today
- Total
목록LayoutParmas (1)
Memory
[ANDROID/KOTLIN] layout_weight 코드로 수정하기
fun setWeight(data: ItemListTop_Data){ // LinearLayout layout_weight 코드 설정 방법 // val layoutParams = 변수명.layoutParams as LayoutParams // layoutParams.weight = 2f val layoutParams = linearL_item_list_top.layoutParams as LayoutParams layoutParams.weight = data.layout_weight } [참고] 출처 : stackoverflow.com/questions/3224193/set-the-layout-weight-of-a-textview-programmatically Set the layout weight of ..
IT/ANDROID
2021. 1. 12. 09:51