Moving from Texas to Alabama

I worked half the year in Texas (a non state income state) and then moved to Alabama.  How do I avoid Alabama trying to tax me on the income that I earned in Texas? Do I only report the gross income that I earned while in Alabama and the associated taxes paid in Alabama?