how to use a space api in android studio code example
Example 1: how to add cardview support in android studio
dependencies {
implementation 'com.android.support:cardview-v7:28.0.0'
}
Example 2: how to create search function in android studio
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android">
<item android:id="@+id/search"
android:title="@string/search_title"
android:icon="@drawable/ic_search"
android:showAsAction="collapseActionView|ifRoom"
android:actionViewClass="android.widget.SearchView" />
</menu>