Quantcast
Channel: error recognizing an @+id using fragments - Stack Overflow
Browsing latest articles
Browse All 4 View Live

Answer by whitfin for error recognizing an @+id using fragments

So looking at some code I wrote a while back, it seems you need to be using ViewGroup instead of View. ViewGroup v = (ViewGroup)inflater.inflate(R.layout.fragment_crime, null); Try that, the rest of...

View Article



Answer by Ogen for error recognizing an @+id using fragments

mTitleField = (EditText) getView().findViewById(R.id.crime_title); Try that :)

View Article

Answer by J Sanchez for error recognizing an @+id using fragments

I, try this!, mTitleField = (EditText) findViewById(R.id.crime_title) without the "v." if that doesn't work check if you changed the name of the id title in a wrong way. hope to help!!

View Article

error recognizing an @+id using fragments

I am trying to work through an example in an Android programming book (it's example 2 so i don't have a lot of debugging experience) but i am trying to create an Edit text with @+id/crime_title. my...

View Article
Browsing latest articles
Browse All 4 View Live


Latest Images