Transparent Background Modal View In the presenting View Controller add the following code if you want to support iOS7. //For iOS modal presentation style must be set on presenting view controller. if ([UIDevice currentDevice].systemVersion.integerValue >= 7) [self setModalPresentationStyle:UIModalPresentationCurrentContext]; [self presentViewController:seeThroughViewController animated:YES completion:nil]; In the modal View Con.. 더보기 [안드로이드] 넓이에 맞게 자동으로 높이가 조정되는 이미지뷰 public class ResizableImageView extends ImageView { public ResizableImageView(Context context, AttributeSet attrs) { super(context, attrs); } @Override protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec){ Drawable d = getDrawable(); if(d!=null){ // ceil not round - avoid thin vertical gaps along the left/right edges int width = MeasureSpec.getSize(widthMeasureSpec); int height .. 더보기 안드로이드에서 Aspect Fill과 같은 Scale Type 효과 android:scaleType="centerCrop" android:adjustViewBounds="true" 더보기 이전 1 2 3 4 5 ··· 20 다음