Layout Property Panel Test
- First, create a new empty project with appcompat
- Next, open activity_main.xml in design mode
- Next, wait for the design to display
- Next, set the id of the TextView to “textView1”
- Next, drop a Button from the palette on to the design, set the id of the button to “button1”
Font family editor
- Select the TextView in the component tree
- Find the textSize attribute and specify “36sp”
- Find the fontFamily attribute in the common attributes section
- Select from the android fonts: “sans-serif-black”, “cursive”, “sans-serif” and verify font change
- Select “More fonts...” from dropdown
- In the dialog find “Eagle Lake”
- Select “Create Downloadable font”
- Click OK
- Verify that:
- the font in the designer changes to the selected font
- the current value in the drop down says “@font/eagle_lake”
- the current value is in the list of known project fonts by opening the dropdown
- the “pill” changes to solid black (indicating a resource reference is chosen)
- the manifest file was updated to include a meta-data section for preloaded fonts
- the font resource folder now has a eagle_lake.xml file
- the values folder now has 2 added files: font_certs.xml and preloaded_fonts.xml
- the attribute “fontFamily” now is shown in “declared attributes”
- the project can compile
- Select “More fonts...” from dropdown again
- In the dialog find “sarina”
- Select “Add font to project”
- Click OK
- Verify that:
- the font in the designer changed to the selected font
- the current value in the drop down says “@font/sarina”
- the current value is in the list of known project fonts by opening the dropdown after “eagle_lake”
- the font resource folder now has a sarina.ttf file
- the project can compile
- Type in the fontFamily text field: “cursive”
- Verify that:
- the font in the designer changed to the selected font
- the selected value in the drop down list is now “cursive”
Editing id of a View
- Select the button in the component tree
- Search for “constraintBottom_toBottomOf” and select “@id/textView1”
- Select the TextView in the component tree
- Verify that the id has no resource selector button (it should appear in 3 sections)
- Select the id and change the value to “caption” and press
<
enter>
- Verify that a dialog appears with choices: “No”, “Preview”, “Cancel”, “Yes”
- Verify that choosing “Cancel” does nothing, and “Yes” causes the id to change
- Verify that the “constraintBottom_toBottomOf” of the Button is now: “@id/caption”
Accessibility: Navigate using the tab key
- Select the TextView in the component tree
- Click on the search icon in the header of the attributes panel
- Press the TAB key repeatedly
- Verify that after ignoring controls in the header
- Each editor in the property inspector is visited
- Each control of an editor is visited i.e.
- the left color swatch for a color control
- the editor of a field that can be edited
- the resource “pill”
- The control will scroll into view if it is required to see it.
- Press shift-TAB key repeatedly
- Verify that each of the above controls are visited backwards and are being scrolled into view.
Accessibility: Navigate using the up/down arrow keys in a table
It should be possible to navigate to and edit attributes without using the mouse.
- Select the TextView in the component tree
- Click on the name of the first attribute in the “all attributes” section
- Notice the first row in the “declared” table is selected but the editor doesn't have focus
- Use down arrow to navigate to the row with the “alpha” attribute
- Type: “0.8” (without the quotes) and
<
enter>
- Verify that alpha is now present in “declared attributes”
- Type
<
esc>
to exit into table navigation mode - Use down arrow to navigate to the row with the “autoLink” flag attribute
- Type
<
enter>
or <
space>
- this should expand the flag attribute such that all flags are shown - Type
<
enter>
or <
space>
again - this should open the flag popup editor. - Type
<
esc>
to close the popup editor - Type
<
esc>
again to exit into table navigation mode - Use down arrow to navigate to “email”
- Type
<
space>
to select true for the email flag. - Verify that the autoLink value is updated to “email” and autoLink is now present in “declared attributes”
- Use down arrow to navigate to the row with the “background” color attribute
- Type
<
enter>
- this should select the color picker icon - Type
<
enter>
again - this should open the color popup picker - Type
<
esc>
to close the popup editor - Verify that selection stays on the background attribute
- Type
<
enter>
again - this should select the color picker icon - Type
<
tab>
twice - this should select the resource picker icon - Type
<
enter>
- this should open the resource picker dialog - Verify that both drawable and color resources are available in the dialog
- Type
<
esc>
to close the resource picker dialog - Type
<
esc>
again to exit into table navigation mode - Use down arrow to navigate to the row with the “drawableBottom” attribute
- Type
<
enter>
- this should select the drawable picker icon - Type
<
enter>
again - this should open the resource picker dialog - Verify that both drawable and color resources are available in the dialog
- Type
<
esc>
to close the resource picker dialog - Type
<
esc>
again to exit into table navigation mode - Use down arrow to navigate to the row with the “drawableTintMode” attribute
- Type
<
alt>
down arrow to open the drop down - Use arrow buttons to select “src_over”
- Verify “drawableTintMode” is now present in “declared attributes”
Flag editor scrolls if there are too many items
- Select the TextView in the component tree
- Change the screen resolution to 1024x640 or lower.
- Find inputType property in “All Attributes”
- Click on the flag icon
- Verify that there is a vertical scrollbar in the flags popup