Skip to content

Commit

Permalink
Fix layouts for small screens
Browse files Browse the repository at this point in the history
  • Loading branch information
J-Jamet committed May 17, 2018
1 parent ef429d5 commit 6cc54ce
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
16 changes: 16 additions & 0 deletions switchdatetime/src/main/res/values-sw260dp/dimens.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- header -->
<dimen name="header_width">142dp</dimen>

<!-- Content -->
<dimen name="time_circle_width">190dp</dimen>
<!-- Portrait -->
<dimen name="calendar_width_portrait">200dp</dimen>
<dimen name="calendar_height_portrait">230dp</dimen>
<!-- Landscape -->
<dimen name="calendar_width_land">180dp</dimen>
<dimen name="calendar_height_land">160dp</dimen>

<dimen name="year_item_padding">14dp</dimen>
</resources>
15 changes: 15 additions & 0 deletions switchdatetime/src/main/res/values-sw340dp/dimens.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- header -->
<dimen name="header_width">160dp</dimen>
<!-- Content -->
<dimen name="time_circle_width">280dp</dimen>
<!-- Portrait -->
<dimen name="calendar_width_portrait">280dp</dimen>
<dimen name="calendar_height_portrait">280dp</dimen>
<!-- Landscape -->
<dimen name="calendar_width_land">260dp</dimen>
<dimen name="calendar_height_land">220dp</dimen>

<dimen name="year_item_padding">16dp</dimen>
</resources>

0 comments on commit 6cc54ce

Please sign in to comment.