tweaking some ui things here and there

This commit is contained in:
tibbi 2023-01-08 10:50:07 +01:00
parent 4764c796cd
commit 7a14b19c5e
8 changed files with 66 additions and 56 deletions

View File

@ -26,6 +26,7 @@
android:id="@+id/event_scrollview"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:scrollbars="none"
app:layout_behavior="@string/appbar_scrolling_view_behavior">
<RelativeLayout
@ -66,8 +67,8 @@
<ImageView
android:id="@+id/event_show_on_map"
android:layout_width="@dimen/normal_icon_size"
android:layout_height="match_parent"
android:layout_width="@dimen/smaller_icon_size"
android:layout_height="@dimen/smaller_icon_size"
android:layout_alignTop="@+id/event_location"
android:layout_alignBottom="@+id/event_location"
android:layout_alignParentEnd="true"
@ -96,7 +97,7 @@
<ImageView
android:id="@+id/event_description_divider"
android:layout_width="match_parent"
android:layout_height="1px"
android:layout_height="@dimen/divider_height"
android:layout_below="@+id/event_description"
android:layout_marginTop="@dimen/activity_margin"
android:layout_marginBottom="@dimen/normal_margin"
@ -105,8 +106,8 @@
<ImageView
android:id="@+id/event_time_image"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_width="@dimen/smaller_icon_size"
android:layout_height="@dimen/smaller_icon_size"
android:layout_below="@+id/event_description_divider"
android:layout_alignTop="@+id/event_all_day_holder"
android:layout_alignBottom="@+id/event_all_day_holder"
@ -124,7 +125,7 @@
android:layout_toEndOf="@+id/event_time_image"
android:background="?attr/selectableItemBackground"
android:paddingTop="@dimen/medium_margin"
android:paddingEnd="@dimen/normal_margin"
android:paddingEnd="@dimen/activity_margin"
android:paddingBottom="@dimen/medium_margin">
<com.simplemobiletools.commons.views.MyAppCompatCheckbox
@ -158,6 +159,7 @@
android:layout_height="wrap_content"
android:layout_below="@+id/event_time_image"
android:layout_alignParentEnd="true"
android:layout_marginEnd="@dimen/medium_margin"
android:background="?attr/selectableItemBackground"
android:padding="@dimen/activity_margin"
android:textSize="@dimen/day_text_size"
@ -182,6 +184,7 @@
android:layout_height="wrap_content"
android:layout_below="@+id/event_start_time"
android:layout_alignParentEnd="true"
android:layout_marginEnd="@dimen/medium_margin"
android:background="?attr/selectableItemBackground"
android:padding="@dimen/activity_margin"
android:textSize="@dimen/day_text_size"
@ -190,7 +193,7 @@
<ImageView
android:id="@+id/event_time_zone_divider"
android:layout_width="match_parent"
android:layout_height="1px"
android:layout_height="@dimen/divider_height"
android:layout_below="@+id/event_end_date"
android:layout_marginTop="@dimen/medium_margin"
android:layout_marginBottom="@dimen/medium_margin"
@ -199,8 +202,8 @@
<ImageView
android:id="@+id/event_time_zone_image"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_width="@dimen/smaller_icon_size"
android:layout_height="@dimen/smaller_icon_size"
android:layout_below="@+id/event_time_zone_divider"
android:layout_alignTop="@+id/event_time_zone"
android:layout_alignBottom="@+id/event_time_zone"
@ -227,7 +230,7 @@
<ImageView
android:id="@+id/event_date_time_divider"
android:layout_width="match_parent"
android:layout_height="1px"
android:layout_height="@dimen/divider_height"
android:layout_below="@+id/event_time_zone"
android:layout_marginTop="@dimen/medium_margin"
android:layout_marginBottom="@dimen/medium_margin"
@ -236,8 +239,8 @@
<ImageView
android:id="@+id/event_reminder_image"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_width="@dimen/smaller_icon_size"
android:layout_height="@dimen/smaller_icon_size"
android:layout_below="@+id/event_date_time_divider"
android:layout_alignTop="@+id/event_reminder_1"
android:layout_alignBottom="@+id/event_reminder_1"
@ -264,14 +267,15 @@
<ImageView
android:id="@+id/event_reminder_1_type"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_width="@dimen/smaller_icon_size"
android:layout_height="@dimen/smaller_icon_size"
android:layout_alignTop="@+id/event_reminder_1"
android:layout_alignBottom="@+id/event_reminder_1"
android:layout_alignParentEnd="true"
android:layout_marginStart="@dimen/small_margin"
android:layout_marginEnd="@dimen/medium_margin"
android:background="?attr/selectableItemBackgroundBorderless"
android:padding="@dimen/activity_margin"
android:padding="@dimen/medium_margin"
android:src="@drawable/ic_bell_vector" />
<com.simplemobiletools.commons.views.MyTextView
@ -295,14 +299,15 @@
<ImageView
android:id="@+id/event_reminder_2_type"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_width="@dimen/smaller_icon_size"
android:layout_height="@dimen/smaller_icon_size"
android:layout_alignTop="@+id/event_reminder_2"
android:layout_alignBottom="@+id/event_reminder_2"
android:layout_alignParentEnd="true"
android:layout_marginStart="@dimen/small_margin"
android:layout_marginEnd="@dimen/medium_margin"
android:background="?attr/selectableItemBackgroundBorderless"
android:padding="@dimen/activity_margin"
android:padding="@dimen/medium_margin"
android:src="@drawable/ic_bell_vector" />
<com.simplemobiletools.commons.views.MyTextView
@ -326,20 +331,21 @@
<ImageView
android:id="@+id/event_reminder_3_type"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_width="@dimen/smaller_icon_size"
android:layout_height="@dimen/smaller_icon_size"
android:layout_alignTop="@+id/event_reminder_3"
android:layout_alignBottom="@+id/event_reminder_3"
android:layout_alignParentEnd="true"
android:layout_marginStart="@dimen/small_margin"
android:layout_marginEnd="@dimen/medium_margin"
android:background="?attr/selectableItemBackgroundBorderless"
android:padding="@dimen/activity_margin"
android:padding="@dimen/medium_margin"
android:src="@drawable/ic_bell_vector" />
<ImageView
android:id="@+id/event_reminder_divider"
android:layout_width="match_parent"
android:layout_height="1px"
android:layout_height="@dimen/divider_height"
android:layout_below="@+id/event_reminder_3"
android:layout_marginTop="@dimen/medium_margin"
android:layout_marginBottom="@dimen/medium_margin"
@ -348,8 +354,8 @@
<ImageView
android:id="@+id/event_repetition_image"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_width="@dimen/smaller_icon_size"
android:layout_height="@dimen/smaller_icon_size"
android:layout_below="@+id/event_date_time_divider"
android:layout_alignTop="@+id/event_repetition"
android:layout_alignBottom="@+id/event_repetition"
@ -437,7 +443,7 @@
<ImageView
android:id="@+id/event_repetition_divider"
android:layout_width="match_parent"
android:layout_height="1px"
android:layout_height="@dimen/divider_height"
android:layout_below="@+id/event_repetition_limit_holder"
android:layout_marginTop="@dimen/medium_margin"
android:background="@color/divider_grey"
@ -445,8 +451,8 @@
<ImageView
android:id="@+id/event_attendees_image"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_width="@dimen/smaller_icon_size"
android:layout_height="@dimen/smaller_icon_size"
android:layout_below="@+id/event_repetition_divider"
android:layout_alignTop="@+id/event_attendees_holder"
android:layout_marginStart="@dimen/normal_margin"
@ -466,7 +472,7 @@
<ImageView
android:id="@+id/event_attendees_divider"
android:layout_width="match_parent"
android:layout_height="1px"
android:layout_height="@dimen/divider_height"
android:layout_below="@+id/event_attendees_holder"
android:layout_marginTop="@dimen/medium_margin"
android:background="@color/divider_grey"
@ -474,8 +480,8 @@
<ImageView
android:id="@+id/event_availability_image"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_width="@dimen/smaller_icon_size"
android:layout_height="@dimen/smaller_icon_size"
android:layout_alignTop="@+id/event_availability"
android:layout_alignBottom="@+id/event_availability"
android:layout_marginStart="@dimen/normal_margin"
@ -500,7 +506,7 @@
<ImageView
android:id="@+id/event_availability_divider"
android:layout_width="match_parent"
android:layout_height="1px"
android:layout_height="@dimen/divider_height"
android:layout_below="@+id/event_availability"
android:layout_marginTop="@dimen/medium_margin"
android:background="@color/divider_grey"
@ -508,8 +514,8 @@
<ImageView
android:id="@+id/event_caldav_calendar_image"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_width="@dimen/smaller_icon_size"
android:layout_height="@dimen/smaller_icon_size"
android:layout_below="@+id/event_availability_divider"
android:layout_alignTop="@+id/event_caldav_calendar_holder"
android:layout_alignEnd="@+id/event_time_image"
@ -570,7 +576,7 @@
<ImageView
android:id="@+id/event_caldav_calendar_divider"
android:layout_width="match_parent"
android:layout_height="1px"
android:layout_height="@dimen/divider_height"
android:layout_below="@+id/event_caldav_calendar_holder"
android:background="@color/divider_grey"
android:importantForAccessibility="no"
@ -578,8 +584,8 @@
<ImageView
android:id="@+id/event_type_image"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_width="@dimen/smaller_icon_size"
android:layout_height="@dimen/smaller_icon_size"
android:layout_below="@+id/event_caldav_calendar_divider"
android:layout_alignTop="@+id/event_type_holder"
android:layout_alignBottom="@+id/event_type_holder"
@ -622,10 +628,11 @@
<ImageView
android:id="@+id/event_type_divider"
android:layout_width="match_parent"
android:layout_height="1px"
android:layout_height="@dimen/divider_height"
android:layout_below="@+id/event_type_holder"
android:background="@color/divider_grey"
android:importantForAccessibility="no" />
</RelativeLayout>
</ScrollView>
</androidx.coordinatorlayout.widget.CoordinatorLayout>

View File

@ -26,6 +26,7 @@
android:id="@+id/task_scrollview"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:scrollbars="none"
app:layout_behavior="@string/appbar_scrolling_view_behavior">
<RelativeLayout
@ -68,7 +69,7 @@
<ImageView
android:id="@+id/task_description_divider"
android:layout_width="match_parent"
android:layout_height="1px"
android:layout_height="@dimen/divider_height"
android:layout_below="@+id/task_description"
android:layout_marginTop="@dimen/activity_margin"
android:layout_marginBottom="@dimen/normal_margin"
@ -77,8 +78,8 @@
<ImageView
android:id="@+id/task_time_image"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_width="@dimen/smaller_icon_size"
android:layout_height="@dimen/smaller_icon_size"
android:layout_below="@+id/task_description_divider"
android:layout_alignTop="@+id/task_all_day_holder"
android:layout_alignBottom="@+id/task_all_day_holder"
@ -97,7 +98,7 @@
android:background="?attr/selectableItemBackground"
android:paddingStart="@dimen/zero"
android:paddingTop="@dimen/medium_margin"
android:paddingEnd="@dimen/normal_margin"
android:paddingEnd="@dimen/activity_margin"
android:paddingBottom="@dimen/medium_margin">
<com.simplemobiletools.commons.views.MyAppCompatCheckbox
@ -131,6 +132,7 @@
android:layout_height="wrap_content"
android:layout_below="@+id/task_time_image"
android:layout_alignParentEnd="true"
android:layout_marginEnd="@dimen/medium_margin"
android:background="?attr/selectableItemBackground"
android:padding="@dimen/activity_margin"
android:textSize="@dimen/day_text_size"
@ -139,7 +141,7 @@
<ImageView
android:id="@+id/task_date_time_divider"
android:layout_width="match_parent"
android:layout_height="1px"
android:layout_height="@dimen/divider_height"
android:layout_below="@+id/task_date"
android:layout_marginTop="@dimen/medium_margin"
android:layout_marginBottom="@dimen/medium_margin"
@ -148,8 +150,8 @@
<ImageView
android:id="@+id/task_reminder_image"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_width="@dimen/smaller_icon_size"
android:layout_height="@dimen/smaller_icon_size"
android:layout_below="@+id/task_date_time_divider"
android:layout_alignTop="@+id/task_reminder_1"
android:layout_alignBottom="@+id/task_reminder_1"
@ -215,7 +217,7 @@
<ImageView
android:id="@+id/task_caldav_calendar_divider"
android:layout_width="match_parent"
android:layout_height="1px"
android:layout_height="@dimen/divider_height"
android:layout_below="@+id/task_reminder_3"
android:layout_marginTop="@dimen/medium_margin"
android:layout_marginBottom="@dimen/medium_margin"
@ -224,8 +226,8 @@
<ImageView
android:id="@+id/task_repetition_image"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_width="@dimen/smaller_icon_size"
android:layout_height="@dimen/smaller_icon_size"
android:layout_below="@+id/task_caldav_calendar_divider"
android:layout_alignTop="@+id/task_repetition"
android:layout_alignBottom="@+id/task_repetition"
@ -313,7 +315,7 @@
<ImageView
android:id="@+id/task_repetition_divider"
android:layout_width="match_parent"
android:layout_height="1px"
android:layout_height="@dimen/divider_height"
android:layout_below="@+id/task_repetition_limit_holder"
android:layout_marginTop="@dimen/medium_margin"
android:background="@color/divider_grey"
@ -321,8 +323,8 @@
<ImageView
android:id="@+id/task_type_image"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_width="@dimen/smaller_icon_size"
android:layout_height="@dimen/smaller_icon_size"
android:layout_below="@+id/task_repetition_divider"
android:layout_alignTop="@+id/task_type_holder"
android:layout_alignBottom="@+id/task_type_holder"
@ -365,7 +367,7 @@
<ImageView
android:id="@+id/task_type_divider"
android:layout_width="match_parent"
android:layout_height="1px"
android:layout_height="@dimen/divider_height"
android:layout_below="@+id/task_type_holder"
android:background="@color/divider_grey"
android:importantForAccessibility="no" />

View File

@ -81,7 +81,7 @@
<ImageView
android:id="@+id/export_events_divider"
android:layout_width="match_parent"
android:layout_height="1px"
android:layout_height="@dimen/divider_height"
android:layout_marginBottom="@dimen/medium_margin"
android:background="@color/divider_grey"
android:importantForAccessibility="no" />

View File

@ -22,7 +22,7 @@
<ImageView
android:id="@+id/dialog_radio_divider"
android:layout_width="match_parent"
android:layout_height="1px"
android:layout_height="@dimen/divider_height"
android:background="@color/divider_grey"
android:importantForAccessibility="no" />

View File

@ -25,7 +25,7 @@
<ImageView
android:id="@+id/dialog_select_event_type_other_divider"
android:layout_width="match_parent"
android:layout_height="1px"
android:layout_height="@dimen/divider_height"
android:layout_below="@+id/dialog_select_event_type_other_value"
android:background="@color/divider_grey"
android:importantForAccessibility="no"

View File

@ -20,7 +20,7 @@
android:id="@+id/month_day_view_divider"
layout="@layout/divider"
android:layout_width="match_parent"
android:layout_height="1px"
android:layout_height="@dimen/divider_height"
android:layout_below="@+id/month_day_view_wrapper"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/month_day_view_wrapper" />

View File

@ -44,7 +44,7 @@
android:id="@+id/week_view_days_count_divider"
layout="@layout/divider"
android:layout_width="match_parent"
android:layout_height="1px"
android:layout_height="@dimen/divider_height"
android:layout_alignWithParentIfMissing="true"
android:layout_above="@+id/week_view_seekbar" />

View File

@ -5,6 +5,7 @@
<dimen name="yearly_padding_full">6dp</dimen>
<dimen name="circle_stroke_width">2dp</dimen>
<dimen name="secondary_fab_size">40dp</dimen>
<dimen name="smaller_icon_size">44dp</dimen>
<dimen name="monthly_day_height">40dp</dimen>