Home > Mobile >  Have a great god know Android constraint layout constraint under the arabic-language adapter the fir
Have a great god know Android constraint layout constraint under the arabic-language adapter the fir

Time:09-30

<? The XML version="1.0" encoding="utf-8"?>
XMLNS: app="http://schemas.android.com/apk/res-auto"
Android: layout_width="match_parent"
Android: layout_height="@ dimen/sc_list_item_height" & gt;

The android: id="@ + id/left_big_icon"
Android: layout_width="@ dimen/sc_item_lefticon_size"
Android: layout_height="@ dimen/sc_item_lefticon_size"
The android: SRC="https://bbs.csdn.net/topics/@color/c2979ff"
Android: layout_marginStart="20 dp"
App: layout_constraintBottom_toBottomOf="parent"
App: layout_constraintStart_toStartOf="parent"
App: layout_constraintTop_toTopOf="parent"/& gt;

The android: id="@ + id/guideline_h"
Android: layout_width="0 dp"
Android: layout_height="0 dp"
The android: orientation="horizontal"
App: layout_constraintGuide_percent="0.5"/& gt;

The android: id="@ + id/list_item_tile"
Android: layout_width="wrap_content"
Android: layout_height="wrap_content"
Android: layout_marginStart="@ dimen/sc_item_lefticon_margin_right"
Android: ellipsize="middle"
Android: singleLine="true"
Android: text="@ string/is_item_scaning"
Android: textColor="@ color/textBlack"
Android: textSize="@ dimen/list_item_title"
App: layout_constraintBottom_toTopOf="@ + id/guideline_h"
App: layout_constraintStart_toEndOf="@ + id/left_big_icon"/& gt;

The android: id="@ + id/list_item_text"
Android: layout_width="wrap_content"
Android: layout_height="wrap_content"
Android: layout_marginStart="@ dimen/sc_item_lefticon_margin_right"
Android: text="@ string/is_item_scaning"
Android: textColor="@ color/textGray"
Android: textSize="@ dimen/list_item_summary"
App: layout_constraintStart_toEndOf="@ + id/left_big_icon"
App: layout_constraintTop_toBottomOf="@ + id/guideline_h"/& gt;


The android: id="@ + id/item_right_icon"
Android: layout_width="@ dimen/sc_right_icon_size"
Android: layout_height="@ dimen/sc_right_icon_size"
Android: layout_marginEnd="@ dimen/sc_right_icon_margin_right"
App: layout_constraintBottom_toBottomOf="parent"
App: layout_constraintEnd_toEndOf="parent"
App: layout_constraintTop_toTopOf="parent"/& gt;

Android: layout_width="0 dp"
Android: layout_height="@ dimen/sc_list_item_line_height"
Android: background="@ color/sc_lineColor"
App: layout_constraintBottom_toBottomOf="parent"
App: layout_constraintEnd_toEndOf="@ + id/item_right_icon"
App: layout_constraintStart_toStartOf="@ + id/list_item_tile"/& gt;

CodePudding user response:

CodePudding user response:

Current use is BaseAdapter will have this problem, seems to be system bug
To switch to LinearLayout or RecyclerView. Adapter is normal
  • Related