Android App für SRCP gesteuerte Modelleisenbahnen
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

49 wiersze
1.6KB

  1. package de.erich.railcontrol;
  2. import android.app.Fragment;
  3. import android.os.Bundle;
  4. import android.view.LayoutInflater;
  5. import android.view.View;
  6. import android.view.ViewGroup;
  7. import android.widget.Button;
  8. import android.widget.EditText;
  9. public class EditLok extends Fragment {
  10. public static Button btn_editLok_save;
  11. public static Button btn_editLok_delete;
  12. public static EditText et_editLok_name;
  13. public static EditText et_editLok_adresse;
  14. public static EditText et_editLok_maxspeed;
  15. @Override
  16. public void onCreate(Bundle savedInstanceState) {
  17. super.onCreate(savedInstanceState);
  18. }
  19. @Override
  20. public View onCreateView(LayoutInflater inflater, ViewGroup container,
  21. Bundle savedInstanceState) {
  22. System.out.println("onCreateView");
  23. View frag = inflater.inflate(R.layout.fragment_edit_lok, container, false);
  24. btn_editLok_save = (Button) frag.findViewById(R.id.btn_editLok_save);
  25. btn_editLok_delete = (Button) frag.findViewById(R.id.btn_editLok_delete);
  26. et_editLok_adresse = (EditText) frag.findViewById(R.id.et_editLok_adresse);
  27. et_editLok_name = (EditText) frag.findViewById(R.id.et_editLok_name);
  28. et_editLok_maxspeed = (EditText) frag.findViewById(R.id.et_editLok_maxspeed);
  29. btn_editLok_save.setOnClickListener(new MyActivity());
  30. btn_editLok_delete.setOnClickListener(new MyActivity());
  31. return frag;
  32. }
  33. @Override
  34. public void onActivityCreated(Bundle savedInstanceState) {
  35. super.onActivityCreated(savedInstanceState);
  36. }
  37. }