title: Is it possible to host (or mimicking hosting) of views withing live wallpaper?
body: <h2>background</h2>
  
  <p>I've made a simple app called "<a href="https://play.google.com/store/apps/details?id=com.lb.lwp_plus" rel="nofollow noreferrer"><strong>LWP+</strong></a>", which shows a cropped image . When the user chooses a photo, I save it into a file, and then do the cropping when needed. I do this by using 2 libraries. One for allowing the user to choose the cropping rectangle, and one for the actual cropping.</p>
  
  <h2>The problem</h2>
  
  <p>This is just for a normal cropping, but a nicer feature I'd like to add is a way to scroll through the content of the entire given image, at least horizontally.</p>
  
  <p>On a normal Activity, I'd probably use a <code>ViewPager</code> that has an ImageView for each page. </p>
  
  <p>But here a live wallpaper doesn't really have a layout.</p>
  
  <h2>What I've found</h2>
  
  <p>There isn't much of information about live wallpapers in general, but when I've searched for scrolling of an image in it, I've found just how to move the canvas. </p>
  
  <p>This can actually be a good idea, of somehow having bitmaps (or partial decoding of the image) around the current position, and translating the canvas as needed. I could also use a <code>GestureDetector</code> class to identify flinging, but this is only a tiny fraction of what's needed to do a nice scrolling of a zoomed image.</p>
  
  <p>It is also very complex, as it requires good memory considerations in mind. </p>
  
  <p>If I could use a normal view, I could have used a <code>ViewPager</code>, or even a third library that shows an image and allows to scroll in it freely , like in the gallery app (such as <a href="https://github.com/Piasy/BigImageViewer" rel="nofollow noreferrer"><strong>this one</strong></a>).</p>
  
  <h2>The question</h2>
  
  <ol>
  <li><p>Given a View of any kind, such as <code>ViewPager</code> or another, is it possible to host it somehow inside the LiveWallpaper, to let it show content, and to handle touch events ?</p></li>
  <li><p>Alternatively, is there an efficient way to view content as I've written, yet in a live wallpaper? Meaning viewing a portion of a large image, while allowing to scroll though it (like a <code>ViewPager</code>, but maybe even freely like on a photo viewer library, in all directions) ?</p></li>
  </ol>