jmease
jmease

Reputation: 2535

MonoDroid Change Activity Label or Title Programmatically

I have a gridview with pictures of equipment to select from. Once selected, the user is taken to an activity that summarizes all the info they need to know for that model of equipment. I'd like for the Label or Title of that activity to display the selected model of equipment.

It looks like in java to be as simple as setTitle(string), but this functionality doesn't seem to exist in mono. Looked at this, but you can only use integer or an existing drawable. I need to set it to a string.

Upvotes: 2

Views: 2683

Answers (1)

Greg Shackles
Greg Shackles

Reputation: 10139

You can set that via the Title property. In general, where you see setFoo/getFoo methods in Java, those will be mapped to a property named Foo in C#.

Upvotes: 3

Related Questions