• Christian Lohmaier's avatar
    android: fix some layout issues with new-document buttons · 64619789
    Christian Lohmaier yazdı
    functionality to create new documents was added for tdf#106325 with
    commit 1503769f
    However the commit had some issues, most notably clipping of the shadow
    effect and alignment issues to to scaling down (via the animation
    effect, took me quite a while until I looked at that) with having a
    centered pivot. I think it was due to those alignment issues that the
    label was set to a fixed with - which is a problem for future
    translation.
    This commit:
    * changes the animation to not scale down the initial views
    * changes the FABs' setting to use compatPadding - this not only ensures
      enough room for the shadow, but also allows for consistent look across
      android versions. Side effect is that it needs more height, so
    * the effect was adjusted accordingly, to shrink to/expand from the
      lower-right corner of the parent view, instead of "mid-air"
    * the labels were given a proper background drawable with rounded
      corners and some padding for a (much more9 polished look
    * formatting of the labels was split out to a style, for ease of
      tweaking the looks
    * add tools:visibility statement to see the elements in layout editor
    * fixed the strings for the labels (and ID) to some less awkward ones
    
    Change-Id: Ifd2d90ec8d23e40603edff19c9af9e0b32090c9f
    Reviewed-on: https://gerrit.libreoffice.org/42033Tested-by: 's avatarJenkins <ci@libreoffice.org>
    Reviewed-by: 's avatarChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>
    64619789
Adı
Son kayıt (commit)
Son güncelleme
..
calc.png Loading commit data...
draw.png Loading commit data...
dummy_page.png Loading commit data...
ic_add_black_24dp.xml Loading commit data...
ic_arrow_back_black_24dp.xml Loading commit data...
ic_check.xml Loading commit data...
ic_cloud_black_24dp.xml Loading commit data...
ic_done_all_white_12dp.xml Loading commit data...
ic_done_white_12dp.xml Loading commit data...
ic_filter_list_black_24dp.xml Loading commit data...
ic_folder_black_24dp.xml Loading commit data...
ic_format_align_center.xml Loading commit data...
ic_format_align_justify.xml Loading commit data...
ic_format_align_left.xml Loading commit data...
ic_format_align_right.xml Loading commit data...
ic_format_bullets.xml Loading commit data...
ic_format_numbering.xml Loading commit data...
ic_grow.xml Loading commit data...
ic_insert_drive_file_black_24dp.xml Loading commit data...
ic_keyboard_backspace_black_24dp.xml Loading commit data...
ic_line.xml Loading commit data...
ic_menu_back.png Loading commit data...
ic_rect.xml Loading commit data...
ic_redo.xml Loading commit data...
ic_sd_card_black_24dp.xml Loading commit data...
ic_search.xml Loading commit data...
ic_search_direction_down.xml Loading commit data...
ic_search_direction_up.xml Loading commit data...
ic_settings_black_24dp.xml Loading commit data...
ic_shrink.xml Loading commit data...
ic_sort_black_24dp.xml Loading commit data...
ic_storage_black_24dp.xml Loading commit data...
ic_subscript.xml Loading commit data...
ic_superscript.xml Loading commit data...
ic_undo.xml Loading commit data...
ic_usb_black_24dp.xml Loading commit data...
impress.png Loading commit data...
label_background.xml Loading commit data...
writer.png Loading commit data...