Search code examples
androidoverlayandroid-actionbaractionbarsherlockandroid-theme

ActionbarSherlock dynamic text-overlay


I'm working on an app that displays photos fullscreen. Each photo has a caption/description that will be displayed as transparent overlay when click on the photo, as example MonaLisa painting photo is shown, when tap on it an overlay of its historical fact will display (scroll up from bottom), tap again to hide.

What's the best way to do this? I'm working on using the Actionbar Split-action bottom menu but is there a better/less overkill way since it's not "action" per-say, and will the height of the bottom bar dynamically change based on the size of the caption?

Thanks!


Solution

  • why don't use this trick to achieve your goal from Android Layout Tricks #3: Optimize by merging

    <merge xmlns:android="http://schemas.android.com/apk/res/android">
    
    <ImageView  
        ... />
    
    <TextView
     ... />