<RelativeLayout>
        <ImageView>
<CustomImageView>
</RelativeLayout>

이렇게 하면 오류가 나오고

<RelativeLayout>
<CustomImageView>
        <ImageView>
</RelativeLayout>

이렇게 하면 잘 돌아가네요

오류 내용은 java.lang.ClassCastException: android.widget.ImageView connot be cast to CustomImageView

본문내용은
imageview = (ImageView)findViewById(R.id.imageview);
customimageview = (CustomImageView)findViewById(R.id.customimageview);
인데 cast에서 틀린건 없는거 같구요

단지 imageview를 위로 올리려고 했을 뿐인데 안되니까 답답하네요