Code example for Gallery

0
package com.tanxulong.outman; 
 
import android.app.Activity; 
import android.os.Bundle; 
import android.view.Menu; 
import android.widget.Gallery; 
 
public class GalleryActivity extends Activity {
    Gallery gallery = new Gallery(GalleryActivity.this);
    @Override 
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_gallery);
        gallery = (Gallery)findViewById(R.id.gallery1);
       // gallery. 
    } 
 
    @Override 
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.activity_gallery, menu);
        return true; 
    } 
 
Stop searching for code, let great code find you!  Add Codota to your java IDE