我想在動作條的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
您需要自定義您自己的操作欄 –
我沒有在此處看到任何工具欄代碼。請提供完整的代碼 –