The below code needs API 11 – how would I write this to support API level 1? I just want to relocate a view.
ImageView imageviewLogo = (ImageView)findViewById(R.id.imageViewLogo);
imageviewLogo.setY(imageviewLogo.getHeight());
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You’d need to update the margins and use that to relocate the view. Here is a good example taken from here:
and perhaps invalidate layout after the margins are updated.