This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <activity android:launchMode = ["standard" | "singleTop" | "singleTask" | "singleInstance"] ../> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| window.addEventListener("orientationchange", function() { | |
| alert(window.orientation); | |
| //do whatever you want on orientation change here | |
| }, false); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| From theme | |
| <style name="SearchToolbar" parent="Theme.AppCompat.Light.NoActionBar"> | |
| //toolbar back arrow color | |
| <item name="android:textColorSecondary">@android:color/white</item> | |
| //toolbar title color | |
| <item name="android:textColorPrimary">@android:color/white</item> | |
| </style> | |
| Also we can do it from java code: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * [list_searcheable_acf list all the custom fields we want to include in our search query] | |
| * @return [array] [list of custom fields] | |
| */ | |
| function list_searcheable_acf(){ | |
| $list_searcheable_acf = array("title", "sub_title", "excerpt_short", "excerpt_long", "xyz", "myACF"); | |
| return $list_searcheable_acf; | |
| } |
NewerOlder