From 245791389eb09a56658d81e9894881584a712461 Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Sat, 24 Jun 2017 00:16:08 -0700 Subject: Initialize searchview --- .../src/main/kotlin/ca/allanwang/kau/sample/MainActivity.kt | 1 + sample/src/main/res/menu/menu_main.xml | 11 +++++++++++ 2 files changed, 12 insertions(+) (limited to 'sample') diff --git a/sample/src/main/kotlin/ca/allanwang/kau/sample/MainActivity.kt b/sample/src/main/kotlin/ca/allanwang/kau/sample/MainActivity.kt index 2914824..a6f4b92 100644 --- a/sample/src/main/kotlin/ca/allanwang/kau/sample/MainActivity.kt +++ b/sample/src/main/kotlin/ca/allanwang/kau/sample/MainActivity.kt @@ -122,6 +122,7 @@ class MainActivity : KPrefActivity() { override fun onCreateOptionsMenu(menu: Menu): Boolean { menuInflater.inflate(R.menu.menu_main, menu) + return true } diff --git a/sample/src/main/res/menu/menu_main.xml b/sample/src/main/res/menu/menu_main.xml index dd07031..3bfc3d2 100644 --- a/sample/src/main/res/menu/menu_main.xml +++ b/sample/src/main/res/menu/menu_main.xml @@ -2,20 +2,31 @@ xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" tools:context="com.pitchedapps.myapplication.MainActivity"> + + + + + + -- cgit v1.2.3