I'm attempting to build a custom SpinBoxField on the Blackberry that displays an icon next to text. I've been unable to find any example code. Subclassing SpinBoxField and implementing drawRow, get, and getCount() have got me part of the way there, but my implementation still doesn't look or work like the TextSpinBoxField in the RIM Blackberry library.
Has anyone source code for such a field that they would be willing to share here?
Related
I am creating a seismic recording app in IOS. I want to show seismograph chart in my app like . I have searched a lot on google and github but unable to find EXACTLY same visual. I am currently using "Charts" library from github but it is not producing same visual effect. Please suggest me just name of library.
use LineChartView of this {https://github.com/danielgindi/Charts} library. By default your view will not resemble to seismograph but you need to customise it. To do this, whenever you add a point to graph, also add the point of same value but negative value. For example you want to show an earth-quake of magnitude 5. You should add a point of value 5. At the same time also add a point of value -5. This will give view like seismograph. If you can’t understand then reply, I will provide you code for doing this.
What about this https://github.com/vegather/GraphView ?
It will not compile unless you build against a device (even a generic one) because it uses metal.
With Xamarin.iOS, you can create a 'Today extension' which is basically just a widget that the user sees on their 'Today' screen. Microsoft have created a tutorial on creating one of these extensions here. In essence it is simply just a UIViewController displayed by the OS.
I've thought of two ways this could possibly be done. Either creating a widget with Xamarin.iOS (I'd need a way of 'importing' it, if anyone knows if that could be done?) or creating it with Xamarin Forms, but I don't know if this is possible or if I'm just missing something?
I'm looking for somebody to point me in the right direction
I have a UITextField and a UITableView under the UITextField.
When user enter anyplace it show the relevant places to the data which user right should be shown in the table view. For this I have search a lot to the third party lib's and follow step by step procedure of google but failed to get the results.
Now again I have tried the Google Developers procedure but not results so far, I have got API key in my AppDelegate.m file and done some coding in my view controller where I want to show.
I'm just messed up how to get my result, can anyone help me?
I'm getting this issue I don't know why because I have only used Objective-c code in my project from Google Developers.
the issue is this:
"Swift Language Version” (SWIFT_VERSION) is required to be configured
correctly for targets which use Swift. Use the [Edit > Convert > To
Current Swift Syntax…] menu to choose a Swift version or use the Build
Settings editor to configure the build setting directly"
Maybe one of the Frameworks you are using was Swift. So check each and every Framework you have dragged to your project.
If you are using CoreData you need to change Code Generation to Objective-C too if it was selected as Swift.
Find out more Here
I try to add UI test cases to our existing mac application. I already tried UI test cases for iOS, which includes the following steps
I choosed Appium instead of Apple's UIAutomator, because I want to maintain the same flow for our Android apps too.
To proceed the automation, I need to set Labels/Values/Identifiers to the elements. So that they can be accessible. We used drawRect method in most parts, so I followed this post to make drawed components accessible.
I can set/read elements in iOS. What I did is, whenever I draw an element, I simply created an UIAccessibilityElement and added in the corresponding view.
Now, I'm trying to write UI tests for our mac application. As Appium does not have support to the mac application, I considered to use Apple's XCTest UI recording/playback to automate my mac application.
Here is the steps that I took:
NSAccessibility is the class that provides accessibility to the mac application
With XCTest, If I knew a particular elements (say a button) identifier/label, I can proceed with automated tap action
Unlike UIAccessibility, NSAccessibility is a role based object. That is, we need to mention which type of accessibility element that we are going to define.
To start the automation process, I took my mac applications left panel, which has five buttons aligned vertically in it
I set identifiers to those buttons. Then I opened Accessibility Inspector and opened my mac app. The values are properly set.
Then I tried to use record option in XCTest. When tapping the button, crashes the app with the error
"Recorder Service Error: Left Mouse Down: Failed to find matching
element".
I posted about it here.
Questions:
Can someone suggest me the right path to automate mac application? Am I going in the right way?
I googled a lot to see a working sample code about how to implement NSAccessibility. But I can not found anything. Can someone share any useful links/samples?
All I need is, to get elements by identifier/label. Accessibility Inspector shows the right value where as XCTest can not read the identifiers. Did anyone face this issue?
Thanks in Advance
This is for iOS to find all the elements:
driver.findElementsByXPath("//UIAApplication[1]/UIAWindow[1]/UIACollectionView[1]/UIACollectionCell");
I need the similar path for android, I tried:
driver.findElementsByXPath("//android.view.View[1]/android.widget.GridView[1]")
But it's not working. Please help
Please post the log from Appium console, so that we will be able to find out the exact issue.
From :
//android.view.View[1]/android.widget.GridView[1]
It seems there are multiple GridViews are available on that particular screen. Please try to put some constraints.
e.g
//android.view.View[#id='Id_of_the_View']/android.widget.GridView[#something here too]
If you are on a native application, just use the inspector or hierarchy viewer to get the Xpath but I would advise you use driver.findElement(s)ById to get specific elements. Hope this helps.
If you could give a bit more detail maybe I could help.
If you are using Eclipse as editor, then you can open an emulator where you have the app installed, then open DDMS perspective from Eclipse.
Go into your app at the view you want to inspect, and then click the button Dump View Hierarchy for UI Automator in the DDMS perspective.
This will give you a snapshot and you can hover over elements and find their properties.