How to resolve layout object/method references in ActivityMain.java

jonmelvin

New member
Aug 20, 2016
1
0
0
Starting Android coding using java only (no layout xml). In ActivityMain.java, onCreate,
added LinearLayout ll = new LinearLayout(this); and to resolve "LinearLayout" had to add
import android.widget.*; But now ll.onOrientation shows "onOrientation" in red. How does
one find out how to resolve references in the java code?
 
Moved to the Software Development forum (since the Android Apps forum is more for developers to promote their apps).
 

Latest posts

Trending Posts

Members online

Forum statistics

Threads
956,944
Messages
6,970,758
Members
3,163,664
Latest member
jochu