这是我的布局,使用android.support.v7.widget.SearchView。 我想搜索图标移动到右侧,但我还没有发现任何方法... `

android:layout_width="match_parent"

android:layout_height="wrap_content"

android:theme="@style/AppTheme.AppBarOverlay">

android:id="@+id/toolbar"

android:layout_width="match_parent"

android:layout_height="?attr/actionBarSize"

android:background="?attr/colorPrimary"

app:layout_scrollFlags="scroll|enterAlways|snap"

app:popupTheme="@style/AppTheme.PopupOverlay">

android:layout_width="wrap_content"

android:layout_height="wrap_content" />

android:id="@+id/tab_main_title"

android:layout_width="match_parent"

android:layout_height="wrap_content" />

`

后,我单击该图标,它会改变这一布局 V1y7T.jpg

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐