안드로이드 개발 질문/답변
(글 수 45,052)
480x800은
layout-hdpi로
320x480은
layout-mdpi로 해두었습니다..
ㅠ 0ㅠ 모토로이는 어떻게 대응해야할까요... 회색님 자료 봐도 도통 모르겠음
WVGA는 480x800 FWVGA 480x854를 구분 지을수 있을까요?
코드로 해볼려고 아래 같이 해보았는데요
Window win = getWindow();
int width = win.getWindowManager().getDefaultDisplay().getWidth();
int height = win.getWindowManager().getDefaultDisplay().getHeight();
layout-hdpi로
320x480은
layout-mdpi로 해두었습니다..
ㅠ 0ㅠ 모토로이는 어떻게 대응해야할까요... 회색님 자료 봐도 도통 모르겠음
WVGA는 480x800 FWVGA 480x854를 구분 지을수 있을까요?
코드로 해볼려고 아래 같이 해보았는데요
Window win = getWindow();
int width = win.getWindowManager().getDefaultDisplay().getWidth();
int height = win.getWindowManager().getDefaultDisplay().getHeight();
L_layout = (LinearLayout) findViewById(R.id.transmission_top);
LinearLayout.LayoutParams Params = new LinearLayout.LayoutParams(LayoutParams.FILL_PARENT, height);
L_layout.setLayoutParams(Params);
xml에 있는 Layout을 불러와 높이를 주어 보았는데요....오류가 나네요...형식이 잘못 되었다는ㅠ
layout에선 setheight같은건 보이지 않구..
코드로 xml에 있는 Layout의 높이를 바꿀수 있는 방법이 없을까요?