Remove vod border

pull/102/head
FongMi 4 years ago
parent 45c12abbc9
commit 85f2d11514
  1. 2
      app/src/leanback/java/com/fongmi/android/tv/ui/presenter/HistoryPresenter.java
  2. 2
      app/src/leanback/java/com/fongmi/android/tv/ui/presenter/VodPresenter.java
  3. 4
      app/src/leanback/res/drawable/selector_vod.xml
  4. 11
      app/src/leanback/res/drawable/shape_vod_focused.xml
  5. 4
      app/src/leanback/res/layout/adapter_vod.xml

@ -46,7 +46,7 @@ public class HistoryPresenter extends Presenter {
}
private void setLayoutSize() {
int space = ResUtil.dp2px(122);
int space = ResUtil.dp2px(112);
int base = ResUtil.getScreenWidthPx() - space;
width = base / 5;
height = (int) (width / 0.75f);

@ -26,7 +26,7 @@ public class VodPresenter extends Presenter {
}
private void setLayoutSize() {
int space = ResUtil.dp2px(122);
int space = ResUtil.dp2px(112);
int base = ResUtil.getScreenWidthPx() - space;
width = base / 5;
height = (int) (width / 0.75f);

@ -1,4 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/shape_vod_focused" android:state_focused="true" />
</selector>

@ -1,11 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<corners android:radius="8dp" />
<stroke
android:width="2dp"
android:color="@color/white" />
</shape>

@ -4,10 +4,8 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="150dp"
android:layout_height="200dp"
android:background="@drawable/selector_vod"
android:focusable="true"
android:focusableInTouchMode="true"
android:padding="1dp">
android:focusableInTouchMode="true">
<com.makeramen.roundedimageview.RoundedImageView
android:id="@+id/image"

Loading…
Cancel
Save