Skip to content

Commit

Permalink
Manage dimens
Browse files Browse the repository at this point in the history
  • Loading branch information
J-Jamet committed Dec 19, 2016
1 parent 06d36e5 commit 27adcb1
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,19 +113,19 @@
android:layout_gravity="top"
android:focusable="true" >
<RelativeLayout
android:layout_width="wrap_content"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center">
<com.kunzisoft.switchdatetime.time.RadialPickerLayout
android:id="@+id/time_picker"
style="@style/Theme.SwitchDateTime.Time"
android:layout_width="@dimen/time_circle_width"
android:layout_height="@dimen/time_circle_width"
android:layout_gravity="center"
android:focusable="true"
android:focusableInTouchMode="true"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true"
style="@style/Theme.SwitchDateTime.Time" />
android:layout_alignParentEnd="true"/>
</RelativeLayout>
</RelativeLayout>

Expand Down
11 changes: 7 additions & 4 deletions switchdatetime/src/main/res/values-hdpi/dimens.xml
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- header -->
<dimen name="header_width">160dp</dimen>

<!-- Content -->
<dimen name="time_circle_width">240dp</dimen>

<dimen name="calendar_margin_top_portrait">12dp</dimen>
<dimen name="calendar_margin_start_portrait">32dp</dimen>
<dimen name="calendar_margin_end_portrait">32dp</dimen>
<dimen name="calendar_margin_bottom_portrait">8dp</dimen>
<dimen name="calendar_margin_top_land">6dp</dimen>
<dimen name="calendar_margin_start_land">14dp</dimen>
<dimen name="calendar_margin_end_land">14dp</dimen>
<dimen name="calendar_margin_bottom_land">0dp</dimen>
<dimen name="calendar_margin_top_land">26dp</dimen>
<dimen name="calendar_margin_start_land">12dp</dimen>
<dimen name="calendar_margin_end_land">12dp</dimen>
<dimen name="calendar_margin_bottom_land">28dp</dimen>

<dimen name="year_padding">16dp</dimen>
</resources>
13 changes: 8 additions & 5 deletions switchdatetime/src/main/res/values-ldpi/dimens.xml
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- header -->
<dimen name="header_width">160dp</dimen>

<!-- Content -->
<dimen name="time_circle_width">240dp</dimen>

<dimen name="calendar_margin_top_portrait">12dp</dimen>
<dimen name="calendar_margin_start_portrait">32dp</dimen>
<dimen name="calendar_margin_end_portrait">32dp</dimen>
<dimen name="calendar_margin_bottom_portrait">8dp</dimen>
<dimen name="calendar_margin_top_land">6dp</dimen>
<dimen name="calendar_margin_start_land">14dp</dimen>
<dimen name="calendar_margin_end_land">14dp</dimen>
<dimen name="calendar_margin_bottom_land">0dp</dimen>
<dimen name="calendar_margin_top_land">22dp</dimen>
<dimen name="calendar_margin_start_land">6dp</dimen>
<dimen name="calendar_margin_end_land">4dp</dimen>
<dimen name="calendar_margin_bottom_land">22dp</dimen>

<dimen name="year_padding">16dp</dimen>
<dimen name="year_padding">6dp</dimen>
</resources>
12 changes: 6 additions & 6 deletions switchdatetime/src/main/res/values-xhdpi/dimens.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
<dimen name="time_circle_width">300dp</dimen>

<dimen name="calendar_margin_top_portrait">38dp</dimen>
<dimen name="calendar_margin_start_portrait">20dp</dimen>
<dimen name="calendar_margin_end_portrait">20dp</dimen>
<dimen name="calendar_margin_start_portrait">18dp</dimen>
<dimen name="calendar_margin_end_portrait">18dp</dimen>
<dimen name="calendar_margin_bottom_portrait">32dp</dimen>
<dimen name="calendar_margin_top_land">6dp</dimen>
<dimen name="calendar_margin_start_land">14dp</dimen>
<dimen name="calendar_margin_end_land">14dp</dimen>
<dimen name="calendar_margin_bottom_land">0dp</dimen>
<dimen name="calendar_margin_top_land">32dp</dimen>
<dimen name="calendar_margin_start_land">8dp</dimen>
<dimen name="calendar_margin_end_land">6dp</dimen>
<dimen name="calendar_margin_bottom_land">24dp</dimen>

<dimen name="year_padding">28dp</dimen>
</resources>

0 comments on commit 27adcb1

Please sign in to comment.