mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-27 20:09:27 +03:00
removing dialpad reliance on the legacy support library
This commit is contained in:
parent
abd70d953b
commit
e83fa9c81f
3 changed files with 2 additions and 11 deletions
|
@ -19,10 +19,6 @@ android {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
|
||||||
implementation "com.android.support:appcompat-v7:28.0.0"
|
|
||||||
}
|
|
||||||
|
|
||||||
afterEvaluate {
|
afterEvaluate {
|
||||||
tasks.findAll { it.name.startsWith("lint") }.each {
|
tasks.findAll { it.name.startsWith("lint") }.each {
|
||||||
it.enabled = false
|
it.enabled = false
|
||||||
|
|
|
@ -23,8 +23,6 @@ import android.graphics.Rect;
|
||||||
import android.util.AttributeSet;
|
import android.util.AttributeSet;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
|
|
||||||
import androidx.appcompat.widget.AppCompatTextView;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This is a custom text view intended only for rendering the numerals (and star and pound) on the
|
* This is a custom text view intended only for rendering the numerals (and star and pound) on the
|
||||||
* dialpad. TextView has built in top/bottom padding to help account for ascenders/descenders.
|
* dialpad. TextView has built in top/bottom padding to help account for ascenders/descenders.
|
||||||
|
@ -33,7 +31,7 @@ import androidx.appcompat.widget.AppCompatTextView;
|
||||||
* to a larger default, for the dialpad we use this class to more precisely render characters
|
* to a larger default, for the dialpad we use this class to more precisely render characters
|
||||||
* according to the precise amount of space they need.
|
* according to the precise amount of space they need.
|
||||||
*/
|
*/
|
||||||
public class DialpadTextView extends AppCompatTextView {
|
public class DialpadTextView extends TextView {
|
||||||
|
|
||||||
private Rect mTextBounds = new Rect();
|
private Rect mTextBounds = new Rect();
|
||||||
private String mTextStr;
|
private String mTextStr;
|
||||||
|
|
|
@ -20,14 +20,11 @@ import android.content.Context;
|
||||||
import android.content.res.TypedArray;
|
import android.content.res.TypedArray;
|
||||||
import android.util.AttributeSet;
|
import android.util.AttributeSet;
|
||||||
import android.widget.EditText;
|
import android.widget.EditText;
|
||||||
|
|
||||||
import androidx.appcompat.widget.AppCompatEditText;
|
|
||||||
|
|
||||||
import com.android.dialer.dialpadview.R;
|
import com.android.dialer.dialpadview.R;
|
||||||
import com.android.dialer.util.ViewUtil;
|
import com.android.dialer.util.ViewUtil;
|
||||||
|
|
||||||
/** EditText which resizes dynamically with respect to text length. */
|
/** EditText which resizes dynamically with respect to text length. */
|
||||||
public class ResizingTextEditText extends AppCompatEditText {
|
public class ResizingTextEditText extends EditText {
|
||||||
|
|
||||||
private final int mOriginalTextSize;
|
private final int mOriginalTextSize;
|
||||||
private final int mMinTextSize;
|
private final int mMinTextSize;
|
||||||
|
|
Loading…
Reference in a new issue