Skip to content

Instantly share code, notes, and snippets.

@rmarinho
Created October 29, 2014 11:21
Show Gist options
  • Save rmarinho/ae3f0b8df679c3c2abb0 to your computer and use it in GitHub Desktop.
Save rmarinho/ae3f0b8df679c3c2abb0 to your computer and use it in GitHub Desktop.
How to set the id android
<Button
android:text="Action 1"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:id="@+id/action1_button"
android:layout_weight="1"
android:layout_marginLeft="5dp" />
_app.Query(c=>c.Marked("action1_button"));
How do this on code ???
var btn = new Button();
//btn.SetID("action1_button"); ????
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment