I´m pretty new to widgets in Android and I´m struggling a little to find a way to resize views inside of the widget. I´m trying to create like a volume chart where I add imageviews to a linear layout. Is this even possible? Thanks
You can change the layout height dynamically to say, x by using
getLayoutParams().height= x;
requestLayout(); or invalidate();
This post I found can help you to get more input, to solve your problem.
I found a work around by setting the top padding to reduce the height. They always start at maximum height
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.