开发者

Convert existing app to use Fragments

开发者 https://www.devze.com 2023-04-11 21:41 出处:网络
I am new to Android and have an app on the Market that I would like to convert to use Fragments so it could take advantage of the tablet in landscape mode and have both activities side by side.All of

I am new to Android and have an app on the Market that I would like to convert to use Fragments so it could take advantage of the tablet in landscape mode and have both activities side by side. All of the examples I can find out there use a listview with a image or text in the right column and uses the FragmentList class. My app has an Activity that has buttons and depending on what buttons or spinners they select it then displays another activity. Can anyone recommend a tutorial or开发者_JAVA百科 article on how to do this? I have read the Google blog but found it confusing and wasn't sure how to use it to modify my existing code. Any help would be appreciated.


This is a good tutorial http://portabledroid.wordpress.com/2011/04/19/programmatic-and-layout-fragments/

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号