[Settings] Limit height of TextView when text too long

Adjust the layout through having ConstraintLayout for limiting the
height of TextView.

Bug: 205460459
Test: local

Change-Id: Ic15af4c9be393a6855d78a5d9af086b099c9b689
This commit is contained in:
Bonian Chen
2023-01-09 08:10:11 +00:00
parent 8d13ea9e64
commit 61c45064cd
8 changed files with 95 additions and 74 deletions

View File

@@ -44,7 +44,12 @@ public abstract class ManageablePreference extends GearPreference {
int mUserId;
public ManageablePreference(Context context, AttributeSet attrs) {
super(context, attrs);
this(context, attrs, 0, 0);
}
public ManageablePreference(Context context, AttributeSet attrs,
int defStyleAttr, int defStyleRes) {
super(context, attrs, defStyleAttr, defStyleRes);
setPersistent(false);
setOrder(0);
setUserId(UserHandle.myUserId());