Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我添加了宽度微调器: width=this.getWindowManager().getDefaultDisplay().getWidth()/2;
width=this.getWindowManager().getDefaultDisplay().getWidth()/2;
在我的项目中的一种布局中。有不同宽度的spinner字符串,甚至可以包含两行。现在由于spinner width是确定的(屏幕宽度的一半),当我从 中选择一个字符串时spinner,所选文本与spinner UI. 如何在所选文本上应用选取框效果?
spinner
spinner width
spinner UI
我猜你已经尝试添加
android:singleLine="true" android:ellipsize="marquee" android:marqueeRepeatLimit="marquee_forever"
在您的 xml 文件中选择文本的视图?
文本视图选取框