content: /*
   * Androzic - android navigation client that uses OziExplorer maps (ozf2, ozfx3).
   * Copyright (C) 2010-2014  Andrey Novikov <http://andreynovikov.info/>
   *
   * This file is part of Androzic application.
   *
   * Androzic is free software: you can redistribute it and/or modify
   * it under the terms of the GNU General Public License as published by
   * the Free Software Foundation, either version 3 of the License, or
   * (at your option) any later version.
  
   * Androzic is distributed in the hope that it will be useful,
   * but WITHOUT ANY WARRANTY; without even the implied warranty of
   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   * GNU General Public License for more details.
  
   * You should have received a copy of the GNU General Public License
   * along with Androzic.  If not, see <http://www.gnu.org/licenses/>.
   */
  
  package com.androzic.map;
  
  import java.util.List;
  
  import android.os.Bundle;
  import android.support.v4.app.Fragment;
  import android.view.LayoutInflater;
  import android.view.View;
  import android.view.ViewGroup;
  import android.widget.TextView;
  
  import com.androzic.Androzic;
  import com.androzic.R;
  
  public class MapInformation extends Fragment
  {
  	@Override
  	public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
  	{
  		View view = inflater.inflate(R.layout.act_mapinfo, container, false);
          
  		Androzic application = Androzic.getApplication();
  
          List<String> info = application.getCurrentMap().info();
  
          StringBuilder sb = new StringBuilder();
          for (String s : info)
          {
              sb.append(s);
              sb.append("\n");
          }
  
          TextView information = (TextView) view.findViewById(R.id.mapinfo);
  		information.setText(sb);
  		
  		return view;
      }
  }
  