In Robotium, Click on QuickAction icons - android-layout

Can any body tell that me how to click on the quick action icon [ buttons visible on screen with icon only- and without text labels ] in robotium. I need to automate some test cases, But i am not able automate that how to click on the quick action icon.
Thank You,
Manju

click on first Quick icon - solo.clickOnImageButton(0); OR solo.clickOnImage(0);
click on second Quick icon - solo.clickOnImageButton(1); OR solo.clickOnImage(1);

By "quick action icon" you mean a MenuItem in the ActionBar? You can click those in the overflow (and those shown withText) with solo.clickOnMenuItem("MenuItemTitle");
I am currently looking for a way to click those that have no visible title.

Related

[Chrome extension]How to add contextmenu when Tab area click?

I create chrome extension.
So, I want to add menu for right click at Tab area.
Is this possible?
I check following site, and set {contexts: ["all"]}, but not appear my menu when right click at Tab area.
https://developer.chrome.com/extensions/contextMenus#type-ContextType
No, not possible. See crbug.com/704833 – wOxxOm Nov 14 at 4:14

Navigation in Xamarin.Form from masterdetail page

I am new to Xamarin and want to develop an Xamarin.Form Portable App.For that, I have created the project template as Xamarin.Form Portable.
After login, I have successfully created a Master Detail Page to display the Menu List like Home, AboutUs, ContactUs links in the left corner which is initially hide and when i click on the Menu Icon (Menu Icon is like three dashes(-) in parallel) all Menu List is populated to the right side in window. Now when i click on any Menu Item,I don't want to repeat the menu list or its icon in the inner pages. Instead of that, I want Navigation back arrow button instead of the Menu Icon. When I tried to navigate it like below it gives me error like "PushAsync is not supported globally on iOS/Android, please use a NavigationPage"
await Navigation.PushAsync(new AboutUs());
If instead of this, I navigate it to the master detail page and set the About Us page as Detail property of the Master Detail Page then Menu Icon and Menu list will be reapeated which i don't want. Please help me how can i show the navigate the page with Back Arrow button in inner pages.
Overall, I want functionality like in Gmail where when we open any Detail of Email Menu button is not there but the back arrow button is there.
Thanks in advance!
Try this approach(Because DetailPage must be NavigationPage in Xamarin.Forms):
await Navigation.PushAsync(new NavigationPage(new AboutUs()));

Expanding button to autosuggestbox in UWP

I am trying to configure a button within my UWP app to expand in to an AutoSuggestBox on click. This behavior is mentioned in this post:
https://msdn.microsoft.com/en-us/windows/uwp/controls-and-patterns/search#Implementation
I tried utilizing a flyout on the button click, but it doesn't give me the desired effect. Is there an existing control that can do this or will I need to roll my own XAML of an existing control?
The behavior you see in the blogpost can be easily achieved by having an autosuggestbox hidden behind the button, then after on button click fading out the button and resizing the autosuggestbox to the desired width.
There's no way to "expand" a control into a different one, but you can make it look like that happens :)

Can't add icon to Action Right Click Drop Down Menu in Notes Client View

I am trying to add an icon to the Right Click, Drop Down Menu , on an Action, in a View. The icon shows up in the Action Bar (with no text, but that is how it's supposed to work) at the top (see image) but in the drop down menu, it does not appear, only the text does. Is there something I am missing? Is this not suppported?
In my opinion this feature is only supported for actions in the action bar:

Using my own button icons instead of default icons

My application has a ADD button and a DELETE button. I'm using the default icons
(1) android:icon="#android:drawable/ic_menu_add"
(2) android:icon="#android:drawable/ic_menu_delete"
These buttons pop up when I press the Menu button on the emulator.
However I would like to use my own buttons instead of the default icons in the relative layout.
Is it possible to use to a png file of my choice(both for button selected and button not selected) as a add button and delete button?
Could any of you please share some information on this?
Regards
Rajesh
Yes, you can use your own buttons: just replace the icon attribute in the menu xml file. See http://developer.android.com/guide/topics/ui/menus.html for the details to set your own icon: you can copy your own PNGs into the res/drawable folder and then point to it in the menu xml file.

Resources