1
0
Fork 0
mirror of https://github.com/Nioux/AideDeJeu.git synced 2025-10-29 22:45:44 +00:00

Tests search

This commit is contained in:
Yan Maniez 2019-12-09 17:04:30 +01:00
parent 5225145f67
commit f8ee8829c7
5 changed files with 18 additions and 5 deletions

View file

@ -510,5 +510,8 @@
<AndroidResource Include="Resources\drawable-xhdpi\scroll_unfurled.png" /> <AndroidResource Include="Resources\drawable-xhdpi\scroll_unfurled.png" />
<AndroidResource Include="Resources\drawable-xxhdpi\scroll_unfurled.png" /> <AndroidResource Include="Resources\drawable-xxhdpi\scroll_unfurled.png" />
</ItemGroup> </ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\xml\searchable.xml" />
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.CSharp.targets" /> <Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.CSharp.targets" />
</Project> </Project>

View file

@ -205,7 +205,7 @@ namespace AideDeJeu.Droid
[IntentFilter(new[] { Android.Content.Intent.ActionAssist }, Categories = new[] { Android.Content.Intent.CategoryDefault })] [IntentFilter(new[] { Android.Content.Intent.ActionAssist }, Categories = new[] { Android.Content.Intent.CategoryDefault })]
//[Activity(Label = "Aide de Jeu", Icon = "@drawable/black_book", Theme = "@style/MainTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation)] //[Activity(Label = "Aide de Jeu", Icon = "@drawable/black_book", Theme = "@style/MainTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation)]
[Activity(Name = "com.nioux.aidedejeu.SearchActivity")] [Activity(Name = "com.nioux.aidedejeu.SearchActivity", Label = "Aide de Jeu")]
public class SearchActivity : Android.App.Activity // global::Xamarin.Forms.Platform.Android.FormsAppCompatActivity public class SearchActivity : Android.App.Activity // global::Xamarin.Forms.Platform.Android.FormsAppCompatActivity
{ {
protected override void OnCreate(Bundle bundle) protected override void OnCreate(Bundle bundle)

View file

@ -1,15 +1,19 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.nioux.aidedejeu" android:installLocation="preferExternal" android:versionCode="14000" android:versionName="1.40.00"> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.nioux.aidedejeu" android:installLocation="internalOnly" android:versionCode="14001" android:versionName="1.40.01">
<uses-sdk android:targetSdkVersion="28" /> <uses-sdk android:targetSdkVersion="28" android:minSdkVersion="18" />
<application android:label="Haches &amp; Dés"> <application android:label="Haches &amp; Dés">
<provider android:name="android.support.v4.content.FileProvider" android:authorities="com.nioux.aidedejeu.fileprovider" android:exported="false" android:grantUriPermissions="true"> <provider android:name="android.support.v4.content.FileProvider" android:authorities="com.nioux.aidedejeu.fileprovider" android:exported="false" android:grantUriPermissions="true">
<meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/file_paths"></meta-data> <meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/file_paths"></meta-data>
</provider> </provider>
<activity android:name=".SearchActivity"> <activity android:name=".SearchActivity" android:label="Aide de Jeu">
<intent-filter> <intent-filter>
<action android:name="com.google.android.gms.actions.SEARCH_ACTION" /> <action android:name="com.google.android.gms.actions.SEARCH_ACTION" />
<category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.DEFAULT" />
</intent-filter> </intent-filter>
<intent-filter>
<action android:name="android.intent.action.SEARCH" />
</intent-filter>
<meta-data android:name="android.app.searchable" android:resource="@xml/searchable" />
</activity> </activity>
</application> </application>
</manifest> </manifest>

View file

@ -14191,7 +14191,10 @@ namespace AideDeJeu.Droid
public const int file_paths = 2131755008; public const int file_paths = 2131755008;
// aapt resource value: 0x7F100001 // aapt resource value: 0x7F100001
public const int xamarin_essentials_fileprovider_file_paths = 2131755009; public const int searchable = 2131755009;
// aapt resource value: 0x7F100002
public const int xamarin_essentials_fileprovider_file_paths = 2131755010;
static Xml() static Xml()
{ {

View file

@ -0,0 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<searchable android:label="Aide de Jeu" android:hint="Aide de Jeu" android:voiceSearchMode="launchRecognizer|showVoiceSearchButton"
xmlns:android="http://schemas.android.com/apk/res/android" />