我想在动作条的ImageButton在我的应用程序是这样的:的ImageButton在操作栏的Android
我的XML代码:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.v7.widget.RecyclerView
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="in.yumigo.yumigovendor.ui.activity.InvoiceActivity"
android:id="@+id/invoice_recycler_view">
</android.support.v7.widget.RecyclerView>
<ImageButton
android:elevation="2200dp"
android:id="@+id/float_calendar"
android:background="@android:color/transparent"
style="@style/CalendarFloating"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/calendar_144"
android:layout_alignParentRight="true" />
</RelativeLayout>
如何实现它?
前是U使用工具栏或旧的动作条? – darwin
您需要自定义您自己的操作栏 –
我没有在此处看到任何工具栏代码。请提供完整的代码 –