Files
app/app/src/main/res/layout/item_channel.xml
renato97 672774e216 Add Android TV Edition support
- Update AndroidManifest.xml for TV compatibility
- Add ChannelAdapter with D-pad navigation support
- Update MainActivity for TV UI optimization
- Add Android TV specific resources:
  - banner_streamplayer.xml for TV launcher
  - bg_channel_item_selector for focus states
  - values-sw720dp for large screens
  - integers.xml for TV configurations
- Update item_channel.xml for TV navigation
- Remove unused mobile-specific drawable

Features:
- Android TV Leanback support
- D-pad navigation optimization
- TV-optimized layouts and focus management
- Large screen resources for TV displays

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-14 19:00:17 +00:00

33 lines
1.1 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="6dp"
android:background="@drawable/bg_channel_item_selector"
android:focusable="true"
android:focusableInTouchMode="true"
android:gravity="center_horizontal"
android:orientation="vertical"
android:padding="16dp">
<ImageView
android:id="@+id/channel_icon"
android:layout_width="48dp"
android:layout_height="48dp"
android:contentDescription="@string/app_name"
android:tint="@color/white"
android:src="@drawable/ic_channel_default" />
<TextView
android:id="@+id/channel_name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:gravity="center"
android:maxLines="2"
android:textColor="@color/white"
android:textSize="14sp"
android:textStyle="bold" />
</LinearLayout>