Address lint RTL issues

pull/437/head
Alex Baker 8 years ago
parent d8bed95059
commit 12a3a174b7

@ -364,7 +364,7 @@ public class TouchListView extends ListView {
stopDragging(); stopDragging();
mWindowParams = new WindowManager.LayoutParams(); mWindowParams = new WindowManager.LayoutParams();
mWindowParams.gravity = Gravity.TOP|Gravity.LEFT; mWindowParams.gravity = Gravity.TOP|Gravity.START;
mWindowParams.x = x; mWindowParams.x = x;
mWindowParams.y = y - mDragPoint + mCoordOffset; mWindowParams.y = y - mDragPoint + mCoordOffset;

@ -377,7 +377,7 @@ public class DraggableListView extends ListView {
private void startDragging(Bitmap bm, int x, int y) { private void startDragging(Bitmap bm, int x, int y) {
mWindowParams = new WindowManager.LayoutParams(); mWindowParams = new WindowManager.LayoutParams();
mWindowParams.gravity = Gravity.TOP | Gravity.LEFT; mWindowParams.gravity = Gravity.TOP | Gravity.START;
mWindowParams.x = x; mWindowParams.x = x;
mWindowParams.y = y - mDragPoint.y + mCoordOffset.y; mWindowParams.y = y - mDragPoint.y + mCoordOffset.y;

@ -51,8 +51,7 @@ public class TimeDurationControlSet implements OnNNumberPickedListener, View.OnC
return; return;
} }
String prefix = ""; timeButton.setText(DateUtils.formatElapsedTime(timeDuration));
timeButton.setText(prefix + DateUtils.formatElapsedTime(timeDuration));
int hours = timeDuration / 3600; int hours = timeDuration / 3600;
int minutes = timeDuration / 60 - 60 * hours; int minutes = timeDuration / 60 - 60 * hours;
initialValues = new int[] { hours, minutes }; initialValues = new int[] { hours, minutes };

@ -25,8 +25,10 @@
android:orientation="horizontal" android:orientation="horizontal"
android:layout_marginTop="5dip" android:layout_marginTop="5dip"
android:layout_marginRight="5dip" android:layout_marginRight="5dip"
android:layout_marginEnd="5dp"
android:layout_marginBottom="10dip" android:layout_marginBottom="10dip"
android:layout_marginLeft="10dip"> android:layout_marginLeft="10dip"
android:layout_marginStart="10dp">
<TextView <TextView
android:id="@+id/reminder_title" android:id="@+id/reminder_title"

@ -19,8 +19,10 @@
android:orientation="horizontal" android:orientation="horizontal"
android:layout_marginTop="5dip" android:layout_marginTop="5dip"
android:layout_marginRight="5dip" android:layout_marginRight="5dip"
android:layout_marginEnd="5dp"
android:layout_marginBottom="15dip" android:layout_marginBottom="15dip"
android:layout_marginLeft="10dip"> android:layout_marginLeft="10dip"
android:layout_marginStart="10dp">
<TextView <TextView
android:id="@+id/reminder_title" android:id="@+id/reminder_title"
@ -51,7 +53,9 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="horizontal" android:orientation="horizontal"
android:layout_marginLeft="2dip" android:layout_marginLeft="2dip"
android:layout_marginStart="2dp"
android:layout_marginRight="5dip" android:layout_marginRight="5dip"
android:layout_marginEnd="5dp"
android:layout_marginBottom="10dip" android:layout_marginBottom="10dip"
android:gravity="bottom"> android:gravity="bottom">
<ImageView <ImageView
@ -68,6 +72,7 @@
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginRight="5dip" android:layout_marginRight="5dip"
android:layout_marginEnd="5dp"
android:layout_marginBottom="5dip" android:layout_marginBottom="5dip"
android:minHeight="60dip" android:minHeight="60dip"
android:gravity="center_vertical" android:gravity="center_vertical"
@ -128,6 +133,7 @@
<ImageView <ImageView
android:id="@+id/ignore_settings" android:id="@+id/ignore_settings"
android:layout_alignParentRight="true" android:layout_alignParentRight="true"
android:layout_alignParentEnd="true"
android:layout_width="35dip" android:layout_width="35dip"
android:layout_height="35dip" android:layout_height="35dip"
android:padding="4dip" android:padding="4dip"

@ -33,6 +33,8 @@
android:gravity="end" android:gravity="end"
android:paddingLeft="10dip" android:paddingLeft="10dip"
android:paddingStart="10dp" android:paddingStart="10dp"
android:paddingEnd="0dp"
android:paddingRight="0dp"
android:textColor="?attr/asTextColor" /> android:textColor="?attr/asTextColor" />
</LinearLayout> </LinearLayout>
@ -60,6 +62,9 @@
android:layout_weight="1" android:layout_weight="1"
android:gravity="end" android:gravity="end"
android:paddingLeft="10dip" android:paddingLeft="10dip"
android:paddingStart="10dp"
android:paddingRight="0dp"
android:paddingEnd="0dp"
android:textColor="?attr/asTextColor" /> android:textColor="?attr/asTextColor" />
</LinearLayout> </LinearLayout>

@ -56,6 +56,9 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:gravity="center" android:gravity="center"
android:paddingLeft="5dip" android:paddingLeft="5dip"
android:paddingStart="5dp"
android:paddingRight="0dp"
android:paddingEnd="0dp"
android:text="@string/CFA_help" android:text="@string/CFA_help"
style="@style/TextAppearance"/> style="@style/TextAppearance"/>
@ -74,6 +77,7 @@
android:paddingTop="10dip" android:paddingTop="10dip"
android:paddingBottom="10dip" android:paddingBottom="10dip"
android:layout_marginRight="3dip" android:layout_marginRight="3dip"
android:layout_marginEnd="3dp"
android:layout_weight="1" android:layout_weight="1"
android:text="@string/CFA_button_add" /> android:text="@string/CFA_button_add" />

@ -40,6 +40,8 @@
android:textAlignment="viewStart" android:textAlignment="viewStart"
android:paddingLeft="@dimen/keyline_second" android:paddingLeft="@dimen/keyline_second"
android:paddingStart="@dimen/keyline_second" android:paddingStart="@dimen/keyline_second"
android:paddingRight="0dp"
android:paddingEnd="0dp"
android:textColor="?attr/actionBarPrimaryText" android:textColor="?attr/actionBarPrimaryText"
android:textColorHint="?attr/actionBarSecondaryText" android:textColorHint="?attr/actionBarSecondaryText"
android:textCursorDrawable="@null" android:textCursorDrawable="@null"
@ -49,6 +51,7 @@
android:id="@+id/commentButton" android:id="@+id/commentButton"
android:layout_width="39dip" android:layout_width="39dip"
android:layout_height="39dip" android:layout_height="39dip"
android:layout_marginStart="3dp"
android:layout_marginLeft="3dip" android:layout_marginLeft="3dip"
android:layout_weight="1" android:layout_weight="1"
android:scaleType="center" android:scaleType="center"

@ -30,7 +30,10 @@
android:id="@+id/text" android:id="@+id/text"
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:paddingLeft="10dip" android:paddingLeft="10dp"
android:paddingStart="10dp"
android:paddingRight="0dp"
android:paddingEnd="0dp"
android:textAppearance="?android:attr/textAppearanceLarge"/> android:textAppearance="?android:attr/textAppearanceLarge"/>
</LinearLayout> </LinearLayout>
</LinearLayout> </LinearLayout>

@ -9,6 +9,7 @@
android:layout_height="?android:attr/listPreferredItemHeight" android:layout_height="?android:attr/listPreferredItemHeight"
android:checkMark="?android:attr/listChoiceIndicatorMultiple" android:checkMark="?android:attr/listChoiceIndicatorMultiple"
android:drawableLeft="@drawable/ic_label_24dp" android:drawableLeft="@drawable/ic_label_24dp"
android:drawableStart="@drawable/ic_label_24dp"
android:drawablePadding="@dimen/keyline_second" android:drawablePadding="@dimen/keyline_second"
android:gravity="center_vertical" android:gravity="center_vertical"
android:paddingEnd="@dimen/keyline_first" android:paddingEnd="@dimen/keyline_first"

@ -92,13 +92,13 @@
android:orientation="horizontal"> android:orientation="horizontal">
<TextView <TextView
android:id="@+id/due_date" android:id="@+id/tag_block"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_alignParentLeft="true" android:layout_alignParentEnd="true"
android:layout_alignParentStart="true" android:layout_alignParentRight="true"
android:ellipsize="end" android:ellipsize="none"
android:gravity="center_vertical" android:maxLines="1"
android:paddingLeft="0dp" android:paddingLeft="0dp"
android:paddingStart="0dp" android:paddingStart="0dp"
android:paddingEnd="@dimen/keyline_first" android:paddingEnd="@dimen/keyline_first"
@ -106,13 +106,15 @@
android:singleLine="true" /> android:singleLine="true" />
<TextView <TextView
android:id="@+id/tag_block" android:id="@+id/due_date"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_alignParentEnd="true" android:layout_alignParentLeft="true"
android:layout_alignParentRight="true" android:layout_alignParentStart="true"
android:ellipsize="none" android:layout_alignLeft="@id/tag_block"
android:maxLines="1" android:layout_alignStart="@id/tag_block"
android:ellipsize="end"
android:gravity="center_vertical"
android:paddingLeft="0dp" android:paddingLeft="0dp"
android:paddingStart="0dp" android:paddingStart="0dp"
android:paddingEnd="@dimen/keyline_first" android:paddingEnd="@dimen/keyline_first"

Loading…
Cancel
Save