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();
mWindowParams = new WindowManager.LayoutParams();
mWindowParams.gravity = Gravity.TOP|Gravity.LEFT;
mWindowParams.gravity = Gravity.TOP|Gravity.START;
mWindowParams.x = x;
mWindowParams.y = y - mDragPoint + mCoordOffset;

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

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

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

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

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

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

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

@ -30,7 +30,10 @@
android:id="@+id/text"
android:layout_width="fill_parent"
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"/>
</LinearLayout>
</LinearLayout>

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

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

Loading…
Cancel
Save