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
163,587
2,227
113
Visit site
Moved to the Software Development forum (since the Android Apps forum is more for developers to promote their apps).
 

Trending Posts

Forum statistics

Threads
936,805
Messages
6,880,211
Members
3,155,471
Latest member
yauhn