Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 043fba63 authored by Brian Attwell's avatar Brian Attwell
Browse files

Material design of common edit screen fields

The normal edit screen fields, such as phone number and location,
have been updated to look like the new Material design mocks. I expect
this to be the largest CL needed to finish b/18004959.

Aspects of the Editor that haven't been touched in this CL
- readonly editor
- collapse nickname and phonetic name into StructuredNameEditorView. Then make
  sure the layout is correct
- photo editor
- Material insert/delete interpolators (maybe fast_out_slow_in)
- account header

Some complicated/weird parts of the CL:
-KindSectionView no longer displays an "Add details" button. Instead
 it always shows an additional empty row for each mimeType. The logic
 that handles this is mostly inside #updateEmptyEditors(). A lot of code
 could be deleted from RawContactEditorView because of this.
-LabeledEditorView's adapter displays TextView's inside Spinner. In order
 to make the TextViews look like EditTexts, I set the EditText's background
 (so the 9patch padding is used) and then later remove the background.
-Instead of keeping an expansion_view_container in every single field,
 I only kept it where it was needed. As a result, I needed to add
 null checks into the TextFieldsEditorView base class.
-I made an effort to reduce the depth of the view hierarchy and reduce
 the use of LinearLayout weights for performance reasons, when it was
 easy to do so

Bug: 18004959
Change-Id: I5934ca189b66468834faf3bb995b172ae2f90bed
parent 8f9d84ff
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment