FIT2081 Study Guide - Final Guide: Xml

544 views2 pages
Layouts (all$subclasses$of$ViewGroup):
LinearLayout
RelativeLayout
TableLayout$=$special$case.
Row$with$more$cells$ represents$number$of$cols$in$table
§
Can't$span$cols$and$rows
§
A$table$cell$=$a$View in$a$TableRow in$a$TableLayout
§
§
ConstraintLayout
FrameLayout
LayoutParams
CoordinatorLayout
AppBarLayout
Vertical$LinearLayout$which$implements$many$of$the$
features$of$MD's$App$Bar$concept,$namely$scrolling$
gestures
§
Depends$heavily$on$being$used$as$a$direct$child$within$a$
CoordinatorLayout
§
CollapsingToolbarLayout
A$wrapper$for$Toolbar$which$implems$a$collapsing$
App$Bar
Designed$to$be$a$direct$child$of$AppBarLayout
findViewById(R.id.collapsing_toolbar);
ImageView and$Toolbar nested
§
Views:
ListView
CardView
RecyclerView
Toolbar$stuff:
=$generalisation$of$Action$Bar$pattern$that$gives$much$more$control$and$
flexibility
Usually$enclosed$by$a$CollapsingToolbarLayout,$which$is$enclosed$by$a$
AppBarLayout,$which$is$enclosed$by$a$CoordinatorLayout to$implement$
various$App$Bar$behaviours
ActionBar$VS$App$Bar
Action$bar$---(now)--->$app$bar$(now$considered$synonyms$in$
Android)
=$a$special$kind$of$toolbar$used$for$branding,$navig,$search$and$actions
ActionBar is$a$class$which$addresses$the$App/Action$Bar$for$an$
Activity's$UI$
Implem-wise,$ActionBar not$ideally$used$as$your$App$Bar,$but$
Toolbar (UI$component)$instead
setSupportActionBar(toolbar);
§
*use$a$theme$containing$".NoActionBar"
android:theme="Astyle/AppTheme.NoActionBar"$in$
AndroidManifest.xml
<style$name="AppTheme.NoActionBar"> which$
suppresses$ActionBar
§
*android.support.v7.widget.Toolbar
§
*setSupportActionBar(Toolbar$toolbar)$to$get$Toolbar$to$at$
as$ActionBar$for$this$Activity$window
§
Options$menu$VS$navigation$drawer
XML
@$required$when$referring$to$any$resource$obj$from$XML
Is$followed$by$resource$type$(id etc),$a$slash,$then$resource$
name$(edit_message etc)-
From$Week$4$PLQ
Namespace$=$a$mechanism$to$avoid$naming$conflicts$by$
differentiating$elements/attributes$within$an$XML$doc$that$might$
have$identical$names$but$different$definitions
Root$element$-only$non-indented$one.
Attribute(name -android:layout_width
Terminology
Tuesday,$ 29$May$2018
11:41
Unlock document

This preview shows half of the first page of the document.
Unlock all 2 pages and 3 million more documents.

Already have an account? Log in

Document Summary

Row with more cells represents number of cols in table. A table cell = a view in a tablerow in a tablelayout. Vertical linearlayout which implements many of the features of md"s app bar concept, namely scrolling gestures. Depends heavily on being used as a direct child within a. A wrapper for toolbar which implems a collapsing. Designed to be a direct child of appbarlayout findviewbyid(r. id. collapsing_toolbar); = generalisation of action bar pattern that gives much more control and flexibility. Usually enclosed by a collapsingtoolbarlayout, which is enclosed by a. Appbarlayout, which is enclosed by a coordinatorlayout to implement. Appbarlayout, which is enclosed by a coordinatorlayout to implement various app bar behaviours. Action bar ---(now)---> app bar (now considered synonyms in. = a special kind of toolbar used for branding, navig, search and actions. Actionbar is a class which addresses the app/action bar for an. Implem-wise, actionbar not ideally used as your app bar, but.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers