搜尋此網誌

2015年8月26日 星期三

【Android】How can I add the new “Floating Action Button” between two widgets/layouts

ref:add the new “Floating Action Button” between two widgets/layouts

Best practice:
  • Add compile 'com.android.support:design:22.2.0' to gradle file
  • Use CoordinatorLayout as root view.
  • Add layout_anchorto the FAB and set it to the top view
  • Add layout_anchorGravity to the FAB and set it to: bottom|right|end

沒有留言: