Develop
2016.11.07 14:41
[android] 레이아웃 사이즈 변경 (동적; programmatically)
조회 수 1486 댓글 0
스크린 사이즈가 다양한 안드로이드 기기에서,
넓이 기준으로 해당 컨텐츠의 높이를 동적으로 변경하는 코드 샘플
//360:132 = w : h //132*w/360 = h int customHeight = screenWidth*132/360; ViewGroup viewGroup = (ViewGroup) dataLayout.findViewById(R.id.frame_layout); ViewGroup.LayoutParams params = viewGroup.getLayoutParams(); params.height = customHeight; viewGroup.requestLayout();
-
git 브런치 배우기 (링크)
-
[mac] 컨텍스트(Context) 메뉴 "다음으로 열기" 내용 정리
-
영어의 12 시제 (The twelve tenses of English)
-
[ios] App States
-
[ios] Background 에서 네트워크 사용
-
[ios] 소소한 팁 (Rect,Point,Path,URL 등)
-
[ios] libxml/tree.h file not found
-
[ios] UI컨트롤러 샘플코드
-
[ios] 최신 UI 모음.. (나중에 정리할 것)
-
아이 훌레시 작업중 ㅋㅋ
-
[web] 제로보드 XE 템플릿에서 if문에 대해서 알아봅시다
-
베지어 곡선 (Bezier curve)