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

jonmelvin

New member
Aug 20, 2016
1
0
0
Visit site
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?
 

B. Diddy

Senior Ambassador
Moderator
Mar 9, 2012
165,533
4,668
113
Visit site
Moved to the Software Development forum (since the Android Apps forum is more for developers to promote their apps).
 

Forum statistics

Threads
942,987
Messages
6,916,732
Members
3,158,763
Latest member
alfatv