Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does Android Studio supports AngularJS for Android UI design?

I have a question about Android Studio: Does AS supports AngularJS code while designing XML files, e.g. for small animations or effects?

like image 330
Sumit Pathak Avatar asked Jun 15 '15 09:06

Sumit Pathak


People also ask

Can we use angular in Android Studio?

Angular is used to create single-page web applications. You can create responsive web applications using Angular and convert them into Android or IOS using Capacitor. In this lessen we hope to talk only how to convert Angular project to Android app. So you have to download and install Android studio before try this.

Is JavaScript supported by Android studio?

Can we use JavaScript for Android? Yes, of course! The Android ecosystem supports the concept of hybrid apps, which is a wrapper over the native platform.

Can we build mobile app using AngularJS?

AngularJS has turned out to be one of the best frameworks for building Android and ios apps across all major platforms.

Is angular used in Android development?

Angular is the right way to go. Angular mobile app development gets facilitated in lesser time thanks to the front-end code reutilization between mobile and web. Angular frameworks are commonly used for cross-platform web application development.


2 Answers

SUMMARY : NO

There is no way you can write Angular JS code while developing Android Native app. You can use Angular in a WebView (using js/html so), that's all.

like image 183
Hugo Gresse Avatar answered Oct 30 '22 13:10

Hugo Gresse


AngularJS is a completely different technology than what is used in native Android apps. Native Android apps use Java and/or C for their code, which is compiled when you build the app. AngularJS is a framework for web development, running specifically on Javascript (a completely different technology than Java).

You can build apps without using native Java or C code, but there are tradeoffs. As noted in other answers, you can display webpage views as apps (using technologies like Cordova]), or use frameworks like React Native to write code in Javascript that then gets compiled to a native app. You could use AngluarJS in the webview instance, since it just displays a webpage, however not in something like React Native. I highly encourage you to check both of these (and other options) out, but keep in mind that they have their own limitations and tradeoffs – no one way is the "right" way to build an app.

In summary: No, AngularJS is a web technology, not a native app technology.

like image 36
RedBassett Avatar answered Oct 30 '22 11:10

RedBassett