android string gallery can't display from beginning of the screen
<p>i had creating string gallery but android string gallery can't display from beginning of the screen. it displayed. any solution?? </p>

<p>thanks inn advance.</p>

<pre><code>private Context cont;
private String [] stringid=new String[]{"Index-Nifty","Positional calls","Intraday calls","InvestmentIdea","Optional calls","BTST-STBT calls"};     

public TabGallary(Context c) {
    cont = c;
}

public int getCount(){
    return stringid.length;
}   

public Object getItem(int position) {
    return position;
}

public long getItemId(int position) {
    return position;
}

public View getView(int position, View convertView, ViewGroup parent) {                                
    TextView view = new TextView(cont);                   

    //Fixing width &amp; height for String to display
    view.setLayoutParams(new Gallery.LayoutParams(125, 20));
    view.setSoundEffectsEnabled(true);
    view.setText(stringid[position]);                       
    view.setSingleLine();   

    Intent intent = new Intent();
    startActivity(intent);
    return view;
}

private void startActivity(Intent intent) {
    // TODO Auto-generated method stub      
}
</code></pre>
