티스토리 뷰

카테고리 없음

Components - Buttons( Buttons in dialog )

알 수 없는 사용자 2015. 9. 6. 02:09

출처 : http://www.google.com/design/spec/components/buttons.html


Buttons in dialogs

Use flat buttons on dialogs to prevent too many layers of dimension.

  • Text content: 16dp padding from dialog edge
  • Dialog button container: 48dp tall, 16dp below text content, 8dp from dialog bottom edge
  • Dialog buttons: 36dp tall, vertically aligned in middle of button container, 16dp from container right edge (for LTR scripts)

Examples of flat buttons in dialogs

Dialog button container
Height: 36dp
Top margin: 24dp
Bottom margin: 8dp
Dialog buttons: 8dp from container right edge (for LTR scripts)
Button width: Varies based on button text length

Examples of flat buttons in dialogs

Button
Height: 36dp
Minimum width: 64dp
Touch target height: 48dp
Horizontal margin: 8dp
Horizontal padding: 8dp

Buttons inline

Choose raised or flat buttons depending on your layout. Add padding around flat buttons so the user can easily find them.

Example of flat button

Example of raised button

Persistent footer buttons

If your app requires actions to be persistent and readily available to the user, consider using the floating action button.

Alternatively, consider persistent footer buttons, which are also easily accessible.

Example of a persistent footer button

Example of persistent footer buttons

Persistent footer buttons are 48dp tall.

Never use raised buttons within persistent button areas.

Don't.

With the addition of a divider, a persistent footer button can also be used for scrollable dialogs.

Persistent footer button in dialog


댓글
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday