Systers, an AnitaB.org community

Replace edit in popup to edit in place on profile screen (Mentorship - Android)

Prerequisites:

Steps:

  • Create edit boolean in observable view model
  • Make all TextInput visible when edit == true and gone when edit == false
  • Add TextView for each existing TextInput
  • Make each added TextView visible when edit == false and gone when edit == true
  • Add accept and cancel buttons from default vectors
  • Update changes (in connection to server) when user press done
  • Cancel changes when user press cancel.
  • After changes are made/cancelled return to 'edit=false' view model state and show again edit icon as well as more/settings icon on top bar (see designs).

Resources:

Follow designs to see accept and cancel buttons replacing existing buttons on top bar: https://drive.google.com/open?id=1XghgEraOOBsm_41EI6o_aUYW4ME20Swh https://drive.google.com/open?id=1_qnDlDARBz660AWgFLcwP7Z2BR3OEnwk Please note that designs shows some more concepts, but this task should focus on editing of TextViews using MVVM pattern. More about information about DataBinding can be find here https://developer.android.com/topic/libraries/data-binding/

Work Submission:

Submit a link to Pull Request (PR) created with the change

Task tags

  • xml
  • kotlin
  • ui-tweaks
  • mvvm

Students who completed this task

BartekPacia, i_maier, HardikJH

Task type

  • code Code
close

2019