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.
我在 Android 上的字典应用程序中使用 SearchView 小工具,但我需要让这个 searchView 适合所有屏幕宽度,那么如何设置这个 searchview 的宽度?
这应该这样做:
android:layout_width="match_parent"
尝试这个..
android:layout_width="fill_parent"