How can I use CSS in my Android app?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Native Apps
If you want to style a native android app, there is no support for CSS. Instead android has it’s own mechanism.
Here’s an introduction: http://developer.android.com/guide/topics/ui/themes.html
The complete list of options is only available at the source code.
Native App with local HTML
You may use WebViews in your native Android app, to display HTML which is packaged with the app, then you can use CSS like in any HTML site.
Using special frameworks
There are frameworks which enable you to implement mobile apps with HTML, CSS and JavaScript. They compile it into native apps to allow usage of phone features like gyroscope.
Web Apps
Web Apps are HTML sites, which are optimized for mobile phones. Of course you can use CSS for your site. An example for mobile optimizations is an offline mode, which uses HTML5’s storage mechanisms to bridge connection gaps.