0
我正在尝试在操作栏项目(如G +应用程序中的项目)上创建一个弹出窗口。ActionBar action查看项目样式
要做到这一点,我需要有操作栏项目视图,但只有设置一个自定义视图setActionView()
。
问题是我无法达到相同的菜单项样式的操作栏项目。
我使用这个:
<Button xmlns:android="http://schemas.android.com/apk/res/android"
style="?android:attr/actionButtonStyle"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:paddingLeft="12dp"
android:paddingRight="12dp"
android:background="@drawable/ic_refresh">
但效果并不好。
我在哪里可以找到模仿动作栏项目1的布局/样式?