I want to make use of css in my android application to make a common view through out the application, please help how to add, implement and map a css in an android application.
Thanks.
Your question is a little confusing, but styles and themes might be what are you looking for.
Related
I want to have a scrollabeView (pagingControl) exactly like this image, where I can show 2 pages at the same time or more and swipe between them on Ios And Android.
In iOS you can have a look at the property clipViews. For Android it is currently not possible without adjusting the SDK. Have a look at this ticket: https://jira.appcelerator.org/browse/TIMOB-25635. It is a feature request to have this kind of layout. Also it features some links that explain how to add it to the sdk.
I fixed this problem by creating this widget com.developatic.pagingControl. I hope that will be useful.
I have many xml pages that repeat lines of code, i feel like it would be much cleaner if I used a css page, I have looked it up, but in all the examples, it uses webview, which is something a freind told me to avoid when designing apps for phone use.
can I use a css page to reduce repetition and make my code cleaner? or does it have a side effect?
You can't use CSS natively in Android, however you have a number of choices.
You can either use the built in styling options for android and provide a styles.xml with styles you can reuse throughout the app.
Android Styles and Themes
Another option, if you're set on using CSS is to make use of the pixate library:
Pixate Android
Whilst this isn't production ready yet, it does provide a way for you to use CSS to style your widgets.
I wanna make android application with responsive design concept.
After searching and searching, I found that there are two ways for doing that :
By adding new xml files under res folder like layout-sw800dp/activity1.xml and values-sw800dp/activity1.xml , and android detects the screen size during run time and loads the appropriate xml file.
By making CSS responsive design and loading it in android but I don't know how to deal with buttons' actions in this way.
I ask about the best way for doing responsive design in android and what are the advantage and disadvantages for each way and how to deal with the buttons in the second way ?
Thanks in advance
I agree with #schabluk. Android provides RelativeLayout which is similar to responsive design in html.
Your first way of creating layout is not appropriate as there are thousands of android mobiles.
Use android's Webview for handling button events. Webview is a view for embedding html content in android applications.
You should follow "Best Practices for User Experience & UI". See Designing for Multiple Screens tutorial.
I'm wondering how I could add styles to my android applications. I have created some apps on Eclipse but all of them with fixed style. I would like to know how people manage to create those fancy and cool apps that you can download from the GooglePlay. I would like to know if there is any tool for applying style to buttons, tabs, etc like a CSS to HTML.
I hope no to bother anyone with this questions, I'm eager to know how to do it ^^
I like to use PhoneGap (http://phonegap.com/), it lets you code your entire app with HTML, CSS, and JavaScript.
Go with Fries. It's a design framework specifically for Android, and it provides all the fancy bottons, tabs, etc: http://jaunesarmiento.me/fries/
If you want to style your native app (Android and iOS) using the CSS language, I'm aware of two options:
FreeStyle: former Pixate, Free - http://www.freestyle.org/
NativeCSS: Paid - https://nativecss.com/
I came across this app and I wonder how was it developed on android (Cause it looks so much like an iphone app), see this screenshot.
Anyone have any idea how to accomplish that type of look on Android?
That's just a matter of styling after all. In general, I would consider it to be discouraged to make your Android app look like an iPhone app. Every platform has its own UX standards, and Android's standards are different from iPhone's. That quite obviously also reflects in the user interface.
Anyhow, you may want to read this article about Android themes and styles. It should get you going with defining own widget styles and stateful drawables to implement custom buttons.
This app obviously uses customized ListViews, ButtonView on the bottom of the screen.
Theses are pretty much standard and common in android apps.
Here is how to create custom components:
https://developer.android.com/guide/topics/ui/custom-components.html