add initial support for fragments

Fragments are not added to the View hierarchy yet. Only the lifecycle
callbacks are implemented
This commit is contained in:
Julian Winkler
2023-08-22 13:29:44 +02:00
parent 83cc2e5991
commit faf4a3281e
4 changed files with 70 additions and 3 deletions

View File

@@ -1,5 +1,31 @@
package android.app;
import android.os.Bundle;
public class Fragment {
Activity activity;
public void onCreate(Bundle savedInstanceState) {
}
public void onStart() {
}
public void onResume() {
}
public void onPause() {
}
public void onStop() {
}
public void onDestroy() {
}
public Activity getActivity() {
return activity;
}
}