Loading res/layout/dialog_single_radio_choice_list_item.xml +2 −2 Original line number Diff line number Diff line Loading @@ -50,7 +50,7 @@ android:layout_height="wrap_content" android:textAppearance="?android:attr/textAppearanceListItemSecondary" android:layout_marginTop="8dp" android:layout_alignLeft="@id/title" android:layout_alignStart="@id/title" android:layout_below="@id/title" /> <ImageView Loading @@ -59,6 +59,6 @@ android:layout_height="@dimen/accessibility_imageview_size" android:layout_marginTop="16dp" android:scaleType="fitStart" android:layout_alignLeft="@id/title" android:layout_alignStart="@id/title" android:layout_below="@id/summary"/> </com.android.settings.widget.CheckableRelativeLayout> No newline at end of file src/com/android/settings/accessibility/ItemInfoArrayAdapter.java +6 −0 Original line number Diff line number Diff line Loading @@ -61,6 +61,12 @@ public class ItemInfoArrayAdapter<T extends ItemInfoArrayAdapter.ItemInfo> exten } final ImageView image = root.findViewById(R.id.image); image.setImageResource(item.mDrawableId); if (getContext().getResources().getConfiguration().getLayoutDirection() == View.LAYOUT_DIRECTION_LTR) { image.setScaleType(ImageView.ScaleType.FIT_START); } else { image.setScaleType(ImageView.ScaleType.FIT_END); } return root; } Loading Loading
res/layout/dialog_single_radio_choice_list_item.xml +2 −2 Original line number Diff line number Diff line Loading @@ -50,7 +50,7 @@ android:layout_height="wrap_content" android:textAppearance="?android:attr/textAppearanceListItemSecondary" android:layout_marginTop="8dp" android:layout_alignLeft="@id/title" android:layout_alignStart="@id/title" android:layout_below="@id/title" /> <ImageView Loading @@ -59,6 +59,6 @@ android:layout_height="@dimen/accessibility_imageview_size" android:layout_marginTop="16dp" android:scaleType="fitStart" android:layout_alignLeft="@id/title" android:layout_alignStart="@id/title" android:layout_below="@id/summary"/> </com.android.settings.widget.CheckableRelativeLayout> No newline at end of file
src/com/android/settings/accessibility/ItemInfoArrayAdapter.java +6 −0 Original line number Diff line number Diff line Loading @@ -61,6 +61,12 @@ public class ItemInfoArrayAdapter<T extends ItemInfoArrayAdapter.ItemInfo> exten } final ImageView image = root.findViewById(R.id.image); image.setImageResource(item.mDrawableId); if (getContext().getResources().getConfiguration().getLayoutDirection() == View.LAYOUT_DIRECTION_LTR) { image.setScaleType(ImageView.ScaleType.FIT_START); } else { image.setScaleType(ImageView.ScaleType.FIT_END); } return root; } Loading