Back to project page Multi-Mania-app.
The source code is released under:
MIT License
If you think the Android project Multi-Mania-app listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package be.ana.nmct.multimania.ui; /*from w w w .ja v a2 s . c om*/ import android.app.Fragment; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import be.ana.nmct.multimania.R; import uk.co.senab.photoview.PhotoView; /** * The Fragment taking care of the indoor map */ public class MapFragment extends Fragment { public MapFragment() {} @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); } @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View v = inflater.inflate(R.layout.fragment_map, container, false); PhotoView photoView = (PhotoView)v.findViewById(R.id.indoormap); photoView.setMaximumScale(16); photoView.setImageDrawable(getResources().getDrawable(R.drawable.ic_map)); return v; } }