Android moving type from Gallery to HorizontalScrollView

view story

http://stackoverflow.com – I am looking for a wallpaper picker then I used the SDK sample Home project but there have one problem,when I copying the code to my own project It say "The type Gallery is deprecated" then I googled the solution is new HorizontalScrollView but I don't know how to changing the code can anyone help me little bit? just learn android app developing yesterday here's the original code below: package com.example.android.home; import android.app.Activity; import android.content.Context; import android.os.Bundle; import android.util.Log; import android.view.MotionEvent; import android.view. (HowTos)