How to use different themes to create a Tablet Application?

So I have created a phone android app, but now I want to make it available for tablets.

You know the theme that phone apps have the gray bar on the top with the name of the app? Well I want to make a tab app but with a theme like other app that also show the app logo.

Answers


Just make a layout file with the same name of your layout and put it inside a folder named res/layout-xlarge/YOUR_LAYOUT_NAME.xml ... and change the design as you want but don't change the views' ids. By doing that the Android sdk will load that xml automatically on tablets and you don't have to change anything in your Java classes. See that link


Need Your Help

creating a file from input stream

c# filestream

My component will receive a pdf file as a filestream from which I will need to create a file.

Appengine/Java - persisting a String

google-app-engine persistence

My aim is to persist a String to Datastore