flipping "go to today" and "right arrow" button on the monthly widget

This commit is contained in:
tibbi 2018-12-19 19:51:12 +01:00
parent e5e8c2a462
commit 283860b870
1 changed files with 20 additions and 19 deletions

View File

@ -12,8 +12,8 @@
style="@style/ArrowStyle" style="@style/ArrowStyle"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_alignBottom="@+id/top_value"
android:layout_alignTop="@+id/top_value" android:layout_alignTop="@+id/top_value"
android:layout_alignBottom="@+id/top_value"
android:paddingLeft="@dimen/medium_margin" android:paddingLeft="@dimen/medium_margin"
android:paddingRight="@dimen/medium_margin" android:paddingRight="@dimen/medium_margin"
android:src="@drawable/ic_pointer_left"/> android:src="@drawable/ic_pointer_left"/>
@ -23,46 +23,47 @@
style="@style/MonthStyle" style="@style/MonthStyle"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_toLeftOf="@+id/top_right_arrow" android:layout_toLeftOf="@+id/top_go_to_today"
android:layout_toRightOf="@+id/top_left_arrow" android:layout_toRightOf="@+id/top_left_arrow"
android:gravity="center" android:gravity="center"
android:lines="1" android:lines="1"
android:paddingBottom="@dimen/medium_margin"
android:paddingTop="@dimen/medium_margin" android:paddingTop="@dimen/medium_margin"
android:textSize="@dimen/month_text_size"/> android:paddingBottom="@dimen/medium_margin"
android:textSize="@dimen/month_text_size"
<ImageView tools:text="January"/>
android:id="@+id/top_right_arrow"
style="@style/ArrowStyle"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_alignBottom="@+id/top_value"
android:layout_alignTop="@+id/top_value"
android:layout_toLeftOf="@+id/top_go_to_today"
android:paddingLeft="@dimen/medium_margin"
android:paddingRight="@dimen/medium_margin"
android:src="@drawable/ic_pointer_right"/>
<ImageView <ImageView
android:id="@+id/top_go_to_today" android:id="@+id/top_go_to_today"
style="@style/ArrowStyle" style="@style/ArrowStyle"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_alignBottom="@+id/top_value"
android:layout_alignTop="@+id/top_value" android:layout_alignTop="@+id/top_value"
android:layout_toLeftOf="@+id/top_new_event" android:layout_alignBottom="@+id/top_value"
android:layout_toLeftOf="@+id/top_right_arrow"
android:paddingLeft="@dimen/medium_margin" android:paddingLeft="@dimen/medium_margin"
android:paddingRight="@dimen/medium_margin" android:paddingRight="@dimen/medium_margin"
android:src="@drawable/ic_today"/> android:src="@drawable/ic_today"/>
<ImageView
android:id="@+id/top_right_arrow"
style="@style/ArrowStyle"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_alignTop="@+id/top_value"
android:layout_alignBottom="@+id/top_value"
android:layout_toLeftOf="@+id/top_new_event"
android:paddingLeft="@dimen/medium_margin"
android:paddingRight="@dimen/medium_margin"
android:src="@drawable/ic_pointer_right"/>
<ImageView <ImageView
android:id="@+id/top_new_event" android:id="@+id/top_new_event"
style="@style/ArrowStyle" style="@style/ArrowStyle"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_alignTop="@+id/top_value"
android:layout_alignBottom="@+id/top_value" android:layout_alignBottom="@+id/top_value"
android:layout_alignParentRight="true" android:layout_alignParentRight="true"
android:layout_alignTop="@+id/top_value"
android:paddingLeft="@dimen/medium_margin" android:paddingLeft="@dimen/medium_margin"
android:paddingRight="@dimen/medium_margin" android:paddingRight="@dimen/medium_margin"
android:src="@drawable/ic_plus"/> android:src="@drawable/ic_plus"/>