用法很简单: 将需要自动缩小的布局套到当前布局下即可。 局限性: 之针对单行做了缩放,如果你需要在垂直区域要做缩放,可以参考横向缩放的逻辑简单修改即可。 思路简单粗暴,欢迎指正。
Automatically reduce the layout and usage of a single line. In some cases, when a single line needs to display a lot of content but cannot be discarded, it is necessary to make a reduction adaptation. It has a place of bravery. The usage is simple: Simply place the layout that needs to be automatically reduced under the current layout. Limitations: It has been scaled for a single row. If you need to scale in the vertical area, you can refer to the logic of horizontal scaling and simply modify it. Simple and rough thinking, welcome to correct.