Skip to content

Commit

Permalink
Support AppCompat XX
Browse files Browse the repository at this point in the history
  • Loading branch information
RuffianZhong committed Jul 2, 2021
1 parent 564fcfc commit d20d032
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

import android.content.Context;
import android.graphics.Canvas;
import android.support.v7.widget.AppCompatCheckBox;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.widget.CheckBox;

import com.ruffian.library.widget.helper.RCheckHelper;
import com.ruffian.library.widget.iface.RHelper;
Expand All @@ -14,7 +14,7 @@
*
* @author ZhongDaFeng
*/
public class RCheckBox extends CheckBox implements RHelper<RCheckHelper> {
public class RCheckBox extends AppCompatCheckBox implements RHelper<RCheckHelper> {

private RCheckHelper mHelper;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.ruffian.library.widget;

import android.content.Context;
import android.support.v7.widget.AppCompatEditText;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.widget.EditText;

import com.ruffian.library.widget.helper.RTextViewHelper;
import com.ruffian.library.widget.iface.RHelper;
Expand All @@ -13,7 +13,7 @@
*
* @author ZhongDaFeng
*/
public class REditText extends EditText implements RHelper<RTextViewHelper> {
public class REditText extends AppCompatEditText implements RHelper<RTextViewHelper> {

private RTextViewHelper mHelper;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
import android.support.annotation.ColorInt;
import android.support.annotation.DrawableRes;
import android.support.annotation.Nullable;
import android.support.v7.widget.AppCompatImageView;
import android.util.AttributeSet;
import android.widget.ImageView;

import com.ruffian.library.widget.rounded.RoundDrawable;

Expand All @@ -25,7 +25,7 @@
*
* @author ZhongDaFeng
*/
public class RImageView extends ImageView {
public class RImageView extends AppCompatImageView {

//圆角
private float mCorner = -1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

import android.content.Context;
import android.graphics.Canvas;
import android.support.v7.widget.AppCompatRadioButton;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.widget.RadioButton;

import com.ruffian.library.widget.helper.RCheckHelper;
import com.ruffian.library.widget.iface.RHelper;
Expand All @@ -14,7 +14,7 @@
*
* @author ZhongDaFeng
*/
public class RRadioButton extends RadioButton implements RHelper<RCheckHelper> {
public class RRadioButton extends AppCompatRadioButton implements RHelper<RCheckHelper> {

private RCheckHelper mHelper;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@

import android.content.Context;
import android.graphics.Canvas;
import android.support.v7.widget.AppCompatTextView;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.view.View;
import android.widget.TextView;

import com.ruffian.library.widget.helper.RTextViewHelper;
import com.ruffian.library.widget.iface.RHelper;
Expand All @@ -15,7 +14,7 @@
*
* @author ZhongDaFeng
*/
public class RTextView extends TextView implements RHelper<RTextViewHelper> {
public class RTextView extends AppCompatTextView implements RHelper<RTextViewHelper> {

private RTextViewHelper mHelper;

Expand Down

0 comments on commit d20d032

Please sign in to comment.