android - 带有 2 行文本的按钮
问题描述
我想要一个带有 2 行文本的按钮,如果文本长于 2 行且大小为 maxWidth,则文本应适合按钮边框。
android:maxLines="2"
不工作
有小费吗?
解决方案
推荐阅读
- java - setTransform 旋转图像会产生意想不到的结果
- visual-studio-code - 文件未显示在 vscode 侧边栏上
- python - 在 Matplotlib 和 gridscpec 中为两个子图放置一个颜色条
- perl - 出现错误无法为模块 Wx 加载“/usr/local/lib64/perl5/auto/Wx/Wx.so”
- javascript - 如何为 Authenticated Api 调用编写 React 测试用例?
- javascript - 如何编写一个以数组为参数的函数,它返回一个新数组,其中包含原始数组的所有值但顺序相反
- ruby-on-rails - 为什么我不能执行 $ bundle exec rake secret?出现错误“错误的解释器:没有这样的文件或目录”
- html - 我们如何在 karma jasmine angular 中为选中和未选中属性编写输入复选框的单元测试用例?
- c# - 访问矩形数组时出现 NullReferenceException
- javascript - 有没有一种方法来表示自定义条形图?