SHARE
TWEET

Source code

a guest Jul 1st, 2012 23 Never
  1. package com.layoutexample;
  2.  
  3. import android.app.Activity;
  4. import android.os.Bundle;
  5. import android.widget.TextView;
  6.  
  7. public class LayoutExampleActivity extends Activity {
  8.     /** Called when the activity is first created. */
  9.     @Override
  10.     public void onCreate(Bundle savedInstanceState) {
  11.         super.onCreate(savedInstanceState);
  12.         setContentView(R.layout.main);
  13.         TextView labelInfo = (TextView)findViewById(R.id.labelInfo);
  14.         labelInfo.setText("this will not be visible");
  15.        
  16.     }
  17. }
RAW Paste Data
Top