Back to project page introToDroid4ed.
The source code is released under:
GNU General Public License
If you think the Android project introToDroid4ed listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.introtoandroid.advancedlayouts; /*w ww. j a v a2s . c om*/ import android.app.Activity; import android.os.Bundle; public class BasicLayoutActivity extends Activity { public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); /* LinearLayout ll = new LinearLayout(this); TextView text1 = new TextView(this); text1.setText("Hi there!"); TextView text2 = new TextView(this); text2.setText("I'm second. I need to wrap."); text2.setTextSize((float) 60); ll.setOrientation(LinearLayout.VERTICAL); ll.addView(text2); ll.addView(text1); setContentView(ll);*/ setContentView(R.layout.example_layout); } }