Skip to content

Instantly share code, notes, and snippets.

@rmarinho
Last active August 29, 2015 14:08
Show Gist options
  • Select an option

  • Save rmarinho/ecdf0a9eb2a06a1e6d2f to your computer and use it in GitHub Desktop.

Select an option

Save rmarinho/ecdf0a9eb2a06a1e6d2f to your computer and use it in GitHub Desktop.
TEst cloud
UIBUtton btn = new UIButton(new RectangleF(10, 210, 300, 40));
errorMessagesTextField.AccessibilityLabel = "error_button";
errorMessagesTextField.Text = "error";
<Button
android:text="Action 1"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:id="@+id/error_button"
android:layout_weight="1"
android:layout_marginLeft="5dp" />
AppResult[] results = _app.Marked("error_button");
this works, but only if you are using AXML files
In Xamarin forms a user does this:
var button = new Button { StyleId="error_button" };
Now Xamarin forms creates a Android button or view
var buttonAndroid = new View();
buttonAndroid.SetId("error_button");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment