Back to project page SeeKampf.
The source code is released under:
GNU General Public License
If you think the Android project SeeKampf 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 net.avedo.seekampf.fragments; //from w w w. j a va2s .c o m import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; import net.avedo.seekampf.R; import net.avedo.seekampf.models.Island; import net.avedo.seekampf.utils.Constants; public class IslandDetailsFragment extends RestDetailsFragment<Island> { public static final String TAG = "IslandDetails"; @Override protected String fetchServiceUrl() { return Constants.API_URL + "?server=" + settings.getString(res.getString(R.string.prefs_server_key), "1") + "&typ=inseln&id=" + this.serviceObjectId; } @Override protected String fetchServiceTag() { return IslandDetailsFragment.TAG; } @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { // Load the message details layout. return inflater.inflate(R.layout.island_details, container, false); } @Override protected void createView() { // Fetch the main layout. View mainView = this.getView(); // Fetch the island name field ... TextView islandName = (TextView) mainView.findViewById(R.id.islandName); // ... and initialize it. islandName.setText(this.serviceObject.getInselname() + " (" + this.serviceObject.getKoordinaten() + ")"); // Fetch the island points field ... TextView islandPoints = (TextView) mainView.findViewById(R.id.islandPoints); // ... and initialize it.+ islandPoints.setText("" + this.serviceObject.getPunkte()); } }