You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
api-impl: quick&dirty implementations and stubing
This commit is contained in:
@@ -33,6 +33,7 @@ public class MediaPlayer {
|
||||
public void setOnSeekCompleteListener(MediaPlayer.OnSeekCompleteListener dummy) {}
|
||||
public void setOnVideoSizeChangedListener(MediaPlayer.OnVideoSizeChangedListener dummy) {}
|
||||
public void setAudioStreamType(int dummy) {}
|
||||
public void start() {}
|
||||
public void pause() {}
|
||||
public void prepareAsync() {}
|
||||
public void reset() {}
|
||||
|
||||
@@ -126,7 +126,10 @@ public class ViewGroup extends View implements ViewParent, ViewManager {
|
||||
return children.indexOf(child);
|
||||
}
|
||||
|
||||
public void updateViewLayout(View view, ViewGroup.LayoutParams params) {}
|
||||
public void updateViewLayout(View view, ViewGroup.LayoutParams params) {
|
||||
/* FIXME */
|
||||
view.requestLayout();
|
||||
}
|
||||
|
||||
public LayoutParams generateLayoutParams(AttributeSet attrs) {
|
||||
return new LayoutParams(getContext(), attrs);
|
||||
|
||||
@@ -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) {}
|
||||
|
||||
Reference in New Issue
Block a user