Advertisement
Guest User

MainActivity

a guest
Jan 10th, 2013
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.57 KB | None | 0 0
  1. package com.example.test;
  2.  
  3. import com.example.test.listen_fragment.onSelectedListener;
  4.  
  5. import android.os.Bundle;
  6. import android.app.Activity;
  7. import android.widget.TextView;
  8.  
  9. public class MainActivity extends Activity implements onSelectedListener {
  10.     @Override
  11.     protected void onCreate(Bundle savedInstanceState) {
  12.         super.onCreate(savedInstanceState);
  13.         setContentView(R.layout.twopane);
  14.     }
  15.  
  16.     @Override
  17.     public void onSelected(int index) {
  18.         TextView text = (TextView) findViewById(R.id.text_content);
  19.         text.setText(content_fragment.TextQuellen[index]);
  20.     }
  21.  
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement