안드로이드 스튜디오
-
[안드로이드] 안드로이드 스튜디오 3.1 Configuration~ 경고 제거법Development/Android 2018. 6. 18. 02:10
안드로이드 스튜디오 업데이트 후 못보던 경고 메시지가 떴습니다. Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html Configuration 'androidTestApi' is obsolete and has been replaced with 'androidTestImplementation'.It will be removed at the end of 2018. For..
-
[안드로이드]커스텀 다이얼로그 해상도 비율에 맞게 크기 조절하기Development/Android 2017. 9. 29. 16:25
mDialog.getWindow().setBackgroundDrawable(getResources().getDrawable(R.drawable.round_corner));mDialog.show(); //디스플레이 해상도를 가져와서 Display display = getWindowManager().getDefaultDisplay(); Point size = new Point(); display.getSize(size); //비율에 맞게 다이얼로그 크기를 지정 Window window = mDialog.getWindow(); int x = (int)(size.x * 0.8f); int y = (int)(size.y * 0.7f); window.setLayout(x, y); 위 처럼하면 디바이스 가로 폭의 8..