Bitmap 비율 대로 이미지 크기 조정하기 private Rect screenSize = new Rect(0, 0, 0, 0); bitmapSize = new Rect(0, 0, player.getBitmapWidth(), player.getBitmapHeight()); float h = player.getBitmapHeight(); int oldY = screenSize.bottom; if (player.getBitmap() == null) { Log.e(TAG, "null bitmap"); sendMessage(ON_ERROR, null); return ; } int newY = (int)(h * getRatioScale(player.getBitmap(), surfaceWidth)); int gap = (oldY - newY) / 2; scr.. 더보기 팝업 메뉴의 스타일 변경 - How to set the background of Android PopupMenu to White [duplicate] 팝업 메뉴의 스타일 변경http://stackoverflow.com/questions/16878662/how-to-set-the-background-of-android-popupmenu-to-whiteFor instance, try something like this: @style/PopupMenu.MyAppTheme And then on the style itself: @drawable/popup_menu_bg_color 더보기 Call & SMS & Chaton intent Call & SMS & Chaton intent Intent intent; if (v.getId() == call.getId()) { intent = new Intent(Intent.ACTION_DIAL); //Uri.parse("tel:" + TelNumber)); getContext().startActivity(intent); } else if (v.getId() == sms.getId()) { intent = new Intent(Intent.ACTION_VIEW); //intent.putExtra("sms_body", "The SMS text"); intent.setType("vnd.android-dir/mms-sms"); getContext().startActivity(intent); } else.. 더보기 이전 1 ··· 1211 1212 1213 1214 1215 1216 다음