Forum Xamarin.Android

Announcement:

The Xamarin Forums have officially moved to the new Microsoft Q&A experience. Microsoft Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

To create new threads and ask questions head over to Microsoft Q&A for .NET and get involved today.

Accessing Views In AppCompatActivity

I am new to Xamarin & Android, so please forgive me if this is an easy question. I am trying to access my Views from within my main AppCompatActivity. In a previous app I used FindViewById, but that does not seem to be working here, and I am guessing that is because I am inheriting from AppCompatActivity rather than Activity. What should I be doing to access the views in the *.xml file for AppCompatActivity? Thanks.

Best Answer

  • njsokalskinjsokalski Member ✭✭✭
    Accepted Answer

    Problem solved, it was just a careless syntax error not related to AppCompatActivity at all, sorry everyone...

Answers

  • njsokalskinjsokalski Member ✭✭✭
    Accepted Answer

    Problem solved, it was just a careless syntax error not related to AppCompatActivity at all, sorry everyone...

Sign In or Register to comment.