Use AppCompat SearchView (#4371)

* Use AppCompat SearchView

* GetNative elements for appcompat

* Classes renamed

* test modified
This commit is contained in:
Alexander Vakrilov
2017-06-14 14:11:04 +03:00
committed by GitHub
parent 4319ca5fc5
commit 1d20845b7c
3 changed files with 37 additions and 23 deletions

View File

@@ -5,11 +5,10 @@
<NavigationButton text="Go Back" android.systemIcon="ic_menu_back" tap="onNavBtnTap"/>
</ActionBar>
</Page.actionBar>
<StackLayout>
<!--The background-color shouldn't be inherit but in Android it is-->
<SearchBar id="bg-color" hint="bg-color" text="" textFieldHintColor="green" />
<SearchBar class="color" hint="color" text="color" />
<SearchBar hint="Hint Text" id="searchBar" textFieldHintColor="#FFFFFF" style="color:#FFFFFF;background-color: #795548;height:60" />
<SearchBar hint="Hint Text" textFieldHintColor="#FFFFFF" textFieldBackgroundColor="red" style="background-color:green;" />
</StackLayout>
<GridLayout rows="auto auto auto auto *">
<SearchBar row="0" id="bg-color" hint="bg-color" text="" textFieldHintColor="green" />
<SearchBar row="1" class="color" hint="color" text="color" />
<SearchBar row="2" hint="Hint Text" id="searchBar" textFieldHintColor="#FFFFFF" style="color:#FFFFFF;background-color: #795548;height:60" />
<SearchBar row="3" hint="Hint Text" textFieldHintColor="#FFFFFF" textFieldBackgroundColor="red" style="background-color:green;" />
</GridLayout>
</Page>