api-impl: quick&dirty implementations and stubing

This commit is contained in:
Mis012
2024-03-16 15:03:06 +01:00
parent 2e864adc0f
commit 6443e3977c
3 changed files with 12 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
package android.view;
import android.content.Context;
import android.graphics.drawable.Drawable;
import android.view.SurfaceHolder;
public class Window {
@@ -84,6 +85,12 @@ public class Window {
return new WindowManager.LayoutParams();
}
public void setBackgroundDrawable(Drawable drawable) {
/* TODO: should this be *under* the contentView background? */
if (contentView != null)
contentView.setBackgroundDrawable(drawable);
}
public void setAttributes(WindowManager.LayoutParams params) {}
public void takeSurface(SurfaceHolder.Callback2 callback) {}