I have a problem I have created EditText run time in my code now I want to give size(height and width) for that Edittext how can I do the same, like in xml file we give android:layout_heigtht and layout_width. How to do it programatically?
Thanks
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.
above given is an example of dynamically setting height and width of a button.
here 24 is d width and height of the button.