|
@@ -0,0 +1,40 @@
|
|
|
+package com.yingyangfly.moca.widget;
|
|
|
+
|
|
|
+import android.content.Context;
|
|
|
+import android.os.Build;
|
|
|
+import android.util.AttributeSet;
|
|
|
+import android.widget.RelativeLayout;
|
|
|
+
|
|
|
+import androidx.annotation.NonNull;
|
|
|
+import androidx.annotation.Nullable;
|
|
|
+import androidx.annotation.RequiresApi;
|
|
|
+
|
|
|
+public class LinkLineView extends RelativeLayout {
|
|
|
+
|
|
|
+ private Context context;
|
|
|
+
|
|
|
+ public LinkLineView(@NonNull Context context) {
|
|
|
+ super(context);
|
|
|
+ init(context);
|
|
|
+ }
|
|
|
+
|
|
|
+ public LinkLineView(@NonNull Context context, @Nullable AttributeSet attrs) {
|
|
|
+ super(context, attrs);
|
|
|
+ init(context);
|
|
|
+ }
|
|
|
+
|
|
|
+ public LinkLineView(@NonNull Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
|
|
|
+ super(context, attrs, defStyleAttr);
|
|
|
+ init(context);
|
|
|
+ }
|
|
|
+
|
|
|
+ @RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)
|
|
|
+ public LinkLineView(@NonNull Context context, @Nullable AttributeSet attrs, int defStyleAttr, int defStyleRes) {
|
|
|
+ super(context, attrs, defStyleAttr, defStyleRes);
|
|
|
+ init(context);
|
|
|
+ }
|
|
|
+
|
|
|
+ private void init(Context context) {
|
|
|
+ this.context = context;
|
|
|
+ }
|
|
|
+}
|