Decrease horizontal dpToPx from 80 to 72, and vertical from 32 to 24

This commit is contained in:
Mike-Antonacci 2020-11-27 12:27:40 -07:00
parent 430f89eda7
commit fb7cae6ba4
4 changed files with 9 additions and 8 deletions

View file

@ -16,7 +16,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.1.0'
classpath 'com.android.tools.build:gradle:4.1.1'
classpath('com.noveogroup.android:check:1.2.5') {
exclude module: 'checkstyle'
exclude module: 'pmd-java'

View file

@ -40,12 +40,13 @@
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="wrap_content" />
<ImageView
android:id="@+id/caret_view"
android:layout_width="wrap_content"
android:layout_width="14dp"
android:layout_height="wrap_content"
android:src="@drawable/ic_keyboard_arrow_down_black_24dp"
android:layout_marginEnd="@dimen/spacing_large"/>
android:layout_marginEnd="@dimen/spacing_large"
android:src="@drawable/ic_keyboard_arrow_down_black_24dp" />
</LinearLayout>
<TextView android:id="@+id/description_view"
android:layout_width="match_parent"

View file

@ -227,11 +227,11 @@ abstract class BaseTaskViewHolder constructor(itemView: View, var scoreTaskFunc:
override fun onTouch(view: View?, motionEvent: MotionEvent?): Boolean {
if (motionEvent != null) {
if (motionEvent.action != MotionEvent.ACTION_UP) return true
if (motionEvent.y <= mainTaskWrapper.height + 20.dpToPx(context)) {
if (motionEvent.x <= 60.dpToPx(context)) {
if (motionEvent.y <= mainTaskWrapper.height + 24.dpToPx(context)) {
if (motionEvent.x <= 72.dpToPx(context)) {
onLeftActionTouched()
return true
} else if ((itemView.width - motionEvent.x <= 60.dpToPx(context))) {
} else if ((itemView.width - motionEvent.x <= 72.dpToPx(context))) {
onRightActionTouched()
return true
}

View file

@ -11,7 +11,7 @@ buildscript {
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath 'com.android.tools.build:gradle:4.1.0'
classpath 'com.android.tools.build:gradle:4.1.1'
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
classpath 'com.google.gms:google-services:4.3.4'
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.3.0'