Friday, 15 May 2015

FindViewById in android studio -


Hi im is trying to define a button on the beginner Android studio. I do not write any suggestions for me as "FindV" and Android Studio If the code gets its full code, then the error is found here:

  package com.example.neomn.myapplication1; Importroid.os.Bundle; Import android.support.v7.app.ActionBarActivity; Import android.view.Menu; Import android.view.MenuItem; Import android.view.View; Import android.widget.Button; Public Class Main Activity ActionBarActivity Expanded {@ Override Protected Zero (Bundle Saved Instance) {super.onCreate (SavedInstanceState); SetContentView (R.layout.activity_main); Button start = (button) FindV // no suggestions} @ Override public boolean on crat option menu (Menu menu) {// Increase menu; It adds the item to the Action Bar if it exists GetMenuInflater (). Fulao (R.MenuMenu_man, menu); Back true; } @ Override selected public boolean on option Itam (Menuitm item) {// handles action bar items, click here Action bar automatically clicks the Home / up button, so // as long as you AndroidManifest.xml Specify basic activity. Int id = item.getItemId (); // Notice Simple Effectiveness (ID == RID.action_settings) {returns correct; } Return Super.Options item selected (item); }}  

Can you try to write as ViewById? It should start with lowercase letters.


No comments:

Post a Comment