• Home
  • WP tuts
  • Blogger /blogspot
  • Digital Marketing
  • Hosting talk

RAaz Kumar .com

wordpress tutorials seo hosting etc

You are here: Home / Android syllabus Topics Course details / Identifying Views

Identifying Views

 

 

Identifying Views:

To work with the Views and perform some operations, the views change their content in Runtime need to be provided with ids in XML.
To provide id for the view, we use android: id attribute

In XML:
Ex: <EditText
android:layout_width=”match_parent”
android:layout_height=”wrap_content”
android:id=”@+id/et_name”/>

Here the id can be any name with variable naming conventions

In Java:
All the views that change in runtime need to be identified in Activity.

Syntax:
View objName = (View)findViewById(R.id.—-);

Ex: Identifying the EditText from above XML

EditText etName = (EditText)findViewById(R.id.et_name);

 

 

 






Android syllabus Topics Course details

  • Options Menu
  • JSON parsing
  • Handling Views
  • RelativeLayout
  • ActionBar
  • ListView
  • Custom List View
  • Dialogs
  • AlarmManager
  • Notifications
  • Vibration
  • WebView
  • Fragments Runtime
  • SQLiteDatabase
  • Bluetooth
  • WiFi
  • Google Maps
  • Handling Activity Back Button
  • AsyncTask
  • Runtime Permissions
  • Logging
  • Activity Lifecycle
  • Toast
  • Service
  • Database with Cursor Adapter
  • SharedPreferences
  • Location
  • Libraries
  • Webservices
  • Creating Activity class
  • Creating XML
  • Registering Activity in AndroidManifest.xml:
  • Steps for creating an Android application:
  • Handling button clicks
  • Identifying Views
  • Getting Text from Views
  • intent with Data
  • Intent
  • Resources Handling in Android
  • Intent with Result Data
  • Broad cast Receiver
  • Fragment
  • Handling Button click by using On Click Listener:
  • Material Design
  • RecyclerView
  • JSON
  • Rename Android Package [with images 2018]

Connect WithMe

 

Twitter

Facebook

Youtube

 

PUBG Mobile Tips & Tricks