pull/362/head
FongMi 2 years ago
parent fbbb1d0da4
commit 6ee7853d94
  1. 6
      app/src/leanback/java/com/fongmi/android/tv/ui/custom/CustomLeftRightLayout.java
  2. 4
      app/src/leanback/res/layout/adapter_channel.xml
  3. 4
      app/src/leanback/res/layout/adapter_epg_data.xml

@ -10,16 +10,16 @@ import androidx.annotation.Nullable;
import com.fongmi.android.tv.utils.KeyUtil;
public class CustomLeftRightView extends LinearLayout {
public class CustomLeftRightLayout extends LinearLayout {
private LeftListener leftListener;
private RightListener rightListener;
public CustomLeftRightView(@NonNull Context context) {
public CustomLeftRightLayout(@NonNull Context context) {
super(context);
}
public CustomLeftRightView(@NonNull Context context, @Nullable AttributeSet attrs) {
public CustomLeftRightLayout(@NonNull Context context, @Nullable AttributeSet attrs) {
super(context, attrs);
}

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<com.fongmi.android.tv.ui.custom.CustomLeftRightView xmlns:android="http://schemas.android.com/apk/res/android"
<com.fongmi.android.tv.ui.custom.CustomLeftRightLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="wrap_content"
android:layout_height="56dp"
@ -42,4 +42,4 @@
android:textStyle="bold"
tools:text="CNN" />
</com.fongmi.android.tv.ui.custom.CustomLeftRightView>
</com.fongmi.android.tv.ui.custom.CustomLeftRightLayout>

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<com.fongmi.android.tv.ui.custom.CustomLeftRightView xmlns:android="http://schemas.android.com/apk/res/android"
<com.fongmi.android.tv.ui.custom.CustomLeftRightLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
@ -34,4 +34,4 @@
android:textSize="14sp"
tools:text="18:00 ~ 19:00" />
</com.fongmi.android.tv.ui.custom.CustomLeftRightView>
</com.fongmi.android.tv.ui.custom.CustomLeftRightLayout>
Loading…
Cancel
Save