Skip to content

Commit

Permalink
Catalog, datepicker component workflow. (google#1046)
Browse files Browse the repository at this point in the history
* Sdc gallery app landing page
1. Show Bottom navigation bar with Components and Layouts menus.
2. Implements components screen.
3. Implements layouts screen.
4. Handles bottom navigation clicks.
5. Update actionbar.

* Rename file name.

* Update components and layouts vector icons.

* Sdc gallery app single choice workflow.

* Update it as boolean choice.

* Address review comments.

* Boolean choice component icon.

* Spotless apply

* Build failures

* Delete gallery drawables.

* fix package name in nav graph

* Spotless apply.

* Delete gallery color resource

* theme attributes for color value.

* bottom view margin

* Datepicker component workflow.

Co-authored-by: Jing Tang <[email protected]>
  • Loading branch information
santosh-pingle and jingtang10 committed Feb 9, 2022
1 parent b549fe4 commit c13b477
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
10 changes: 10 additions & 0 deletions catalog/src/main/assets/date_picker_questionnaire.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"resourceType": "Questionnaire",
"item": [
{
"linkId": "1",
"text": "When was your last menstrual period? (LMP)",
"type": "date"
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,11 @@ class ComponentListViewModel(application: Application, private val state: SavedS
R.string.component_name_text_field,
"text_fields_questionnaire.json"
),
DATE_PICKER(R.drawable.ic_datepicker, R.string.component_name_date_picker, ""),
DATE_PICKER(
R.drawable.ic_datepicker,
R.string.component_name_date_picker,
"date_picker_questionnaire.json"
),
TIME_PICKER(R.drawable.ic_timepicker, R.string.component_name_time_picker, ""),
SLIDER(R.drawable.ic_slider, R.string.component_name_slider, "slider_questionnaire.json"),
IMAGE(R.drawable.ic_image, R.string.component_name_image, ""),
Expand Down

0 comments on commit c13b477

Please sign in to comment.