Can anybody tell me how to customize the date picker’s width and height in android?
Share
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.
In your layout’s XML file, change the
android:layout_heightandandroid:layout_widthattributes. I am assuming you are currently using either fill_parent or wrap_content for the values of these attributes, however you can be more specific – defining the exact or scaled pixel value.For example,
android:layout_width="15dp"will set the width at a scalable value of 15. You can change 15 to whatever you want. If you want to set a specific pixel size, you can use, for example,15px.