public class

SlideView

extends AbsoluteLayout
implements AdaptableSlideViewInterface
java.lang.Object
   ↳ android.view.View
     ↳ android.view.ViewGroup
       ↳ android.widget.AbsoluteLayout
         ↳ com.android.mms.ui.SlideView

Class Overview

A basic view to show the contents of a slide.

Summary

[Expand]
Inherited Constants
From class android.view.ViewGroup
From class android.view.View
[Expand]
Inherited Fields
From class android.view.View
Public Constructors
SlideView(Context context)
SlideView(Context context, AttributeSet attrs)
Public Methods
void enableMMSConformanceMode(int textLeft, int textTop, int imageLeft, int imageTop)
Makes the SlideView working on MMSConformance Mode.
void pauseAudio()
void pauseVideo()
void reset()
Reset the view (for next presentation).
void seekAudio(int seekTo)
void seekVideo(int seekTo)
void setAudio(Uri audio, String name, Map<String, ?> extras)
void setImage(String name, Bitmap bitmap)
void setImageRegion(int left, int top, int width, int height)
Set the display region of the image view.
void setImageRegionFit(String fit)
void setImageVisibility(boolean visible)
void setMediaController(MediaController mediaController)
void setOnSizeChangedListener(AdaptableSlideViewInterface.OnSizeChangedListener l)
Set the listener which will be triggered when the size of the view is changed.
void setText(String name, String text)
void setTextRegion(int left, int top, int width, int height)
Set the display region of the text view.
void setTextVisibility(boolean visible)
void setVideo(String name, Uri video)
void setVideoRegion(int left, int top, int width, int height)
Set the display region of the video view.
void setVideoVisibility(boolean visible)
void setVisibility(boolean visible)
Set the visibility of the View object.
void startAudio()
void startVideo()
void stopAudio()
void stopVideo()
Protected Methods
void onSizeChanged(int w, int h, int oldw, int oldh)
[Expand]
Inherited Methods
From class android.widget.AbsoluteLayout
From class android.view.ViewGroup
From class android.view.View
From class java.lang.Object
From interface android.graphics.drawable.Drawable.Callback
From interface android.view.KeyEvent.Callback
From interface android.view.ViewManager
From interface android.view.ViewParent
From interface android.view.accessibility.AccessibilityEventSource
From interface com.android.mms.ui.AdaptableSlideViewInterface
From interface com.android.mms.ui.SlideViewInterface
From interface com.android.mms.ui.ViewInterface

Public Constructors

public SlideView (Context context)

public SlideView (Context context, AttributeSet attrs)

Public Methods

public void enableMMSConformanceMode (int textLeft, int textTop, int imageLeft, int imageTop)

Makes the SlideView working on MMSConformance Mode. The view will be re-layout to the linear view.

This is Chinese requirement about mms conformance. The most popular Mms service in China is newspaper which is MMS conformance, normally it mixes the image and text and has a number of slides. The AbsoluteLayout doesn't have good user experience for this kind of message, for example, 1. AbsoluteLayout exactly follows the smil's layout which is not optimized, and actually, no other MMS applications follow the smil's layout, they adjust the layout according their screen size. MMS conformance doc also allows the implementation to adjust the layout. 2. The TextView is fixed in the small area of screen, and other part of screen is empty once there is no image in the current slide. 3. The TextView is scrollable in a small area of screen and the font size is small which make the user experience bad. The better UI for the MMS conformance message could be putting the image/video and text in a linear layout view and making them scrollable together. Another reason for only applying the LinearLayout to the MMS conformance message is that the AbsoluteLayout has ability to play image and video in a same screen. which shouldn't be broken.

public void pauseAudio ()

public void pauseVideo ()

public void reset ()

Reset the view (for next presentation).

public void seekAudio (int seekTo)

public void seekVideo (int seekTo)

public void setAudio (Uri audio, String name, Map<String, ?> extras)

public void setImage (String name, Bitmap bitmap)

public void setImageRegion (int left, int top, int width, int height)

Set the display region of the image view.

public void setImageRegionFit (String fit)

public void setImageVisibility (boolean visible)

public void setMediaController (MediaController mediaController)

public void setOnSizeChangedListener (AdaptableSlideViewInterface.OnSizeChangedListener l)

Set the listener which will be triggered when the size of the view is changed.

public void setText (String name, String text)

public void setTextRegion (int left, int top, int width, int height)

Set the display region of the text view.

public void setTextVisibility (boolean visible)

public void setVideo (String name, Uri video)

public void setVideoRegion (int left, int top, int width, int height)

Set the display region of the video view.

public void setVideoVisibility (boolean visible)

public void setVisibility (boolean visible)

Set the visibility of the View object.

public void startAudio ()

public void startVideo ()

public void stopAudio ()

public void stopVideo ()

Protected Methods

protected void onSizeChanged (int w, int h, int oldw, int oldh)