SlideServe
Menu
Préférences
© SlideServe · v2026

Android Training Basics

LathareddySettipalli avatar
11 diapositives · 206 Views · Jul 13, 2016

We train you design Android applications for mobile devices. Each class explains the steps required to solve problems or implement a feature using code snippets and sample code to use in your apps.

Android Training Basics - slide 1
01 / 11Android Training Basics
1 / 17

Télécharger la présentation

Android Training Basics
Une image / un lien ci-dessous est fourni (tel quel) pour télécharger la présentation

Politique de téléchargement : le contenu du site vous est fourni TEL QUEL pour votre information et votre usage personnel ; il ne peut être vendu, concédé sous licence ni partagé sur d’autres sites sans l’accord de son auteur.Le contenu vous est fourni TEL QUEL, pour votre information et votre usage personnel uniquement. Téléchargez la présentation en cliquant sur ce lien. Lors du téléchargement, si vous ne parvenez pas à télécharger une présentation, l’éditeur a peut-être supprimé le fichier de son serveur.Pendant le téléchargement, si vous ne parvenez pas à obtenir une présentation, le fichier a peut-être été supprimé par l’éditeur.

F I N

Plus de contenu associé

Transcription de la présentation
  1. Other UI Components Android Training By Manikanta Reddy

  2. ScrollView • Layout container for a view hierarchy that can be scrolled by the user, Allowing it to be larger than the physical display. • A ScrollView is a FrameLayout, meaning you should place one child in it containing the entire contents to scroll; this child may itself be a layout manager with a complex hierarchy of objects. • A child that is often used is a LinearLayout in a vertical orientation, presenting a vertical array of top-level items that the user can scroll through.

  3. Continued… • You should never use a ScrollView with a ListView,becauseListView takes care of its own vertical scrolling. • Most importantly, doing this defeats all of the important optimizations in ListView for dealing with large lists, since it effectively forces the ListView to display its entire list of items to fill up the infinite container supplied by ScrollView.

  4. Continued… • ScrollView only supports vertical scrolling. For horizontal scrolling, use HorizontalScrollView.

  5. Task • Two Scrollview • Vertical • Horizontal • Rounded Corners • Borders • Transparent Colors

  6. WebView • A View that displays web pages. • This class is the basis upon which you can roll your own web browser or simply display some online content within your Activity. • It uses the WebKit rendering engine to display web pages. • you must add the INTERNET permissions to your Android Manifest file: <uses-permission android:name="android.permission.INTERNET" />

  7. Usage webview.loadUrl("http://slashdot.org/"); // OR, you can also load from an HTML string: String summary = "<html><body>You scored <b>192</b> points.</body></html>"; webview.loadData(summary, "text/html", null);

  8. Continued… • By default, a WebView provides no browser-like widgets. • does not enable JavaScript and web page errors are ignored. • If your goal is only to display some HTML as a part of your UI, this is probably fine. • If you actually want a full-blown web browser, then you probably want to invoke the Browser application with a URL Intent rather than show it with a WebView.

  9. Basic usage Uri uri = Uri.parse("http://www.google.com"); Intent intent = new Intent(Intent.ACTION_VIEW, uri); startActivity(intent);

  10. Building Web Apps in WebView? • A common scenario in which using WebView is helpful is when you want to provide information in your application that you might need to update, such as an end-user agreement or a user guide. • Within your Android application, you can create an Activity that contains a WebView, then use that to display your document that's hosted online.

  11. Android online trainings 4 U is one of the top online training institutions in India we are providing online trainings according to the student convenient time and requirements by +5 real time experienced faculty who are working in top MNC’s and also providing 24*7 technical support. Contact us: • India:+91 9948382584 • E-mail:info@androidtrainings4u.com