[Android] First Android TV UI draft, WIP

Geoffrey Métais git at videolan.org
Wed Oct 1 16:52:42 CEST 2014


vlc-ports/android | branch: tv | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Oct  1 15:15:02 2014 +0200| [334c86c51a7d69eb8498279d305dac5aa7e7717a] | committer: Geoffrey Métais

First Android TV UI draft, WIP

Basic video browsing with only one list for now.
Thumbnailer is plugged.

Audio browsing should work (but not play)

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=334c86c51a7d69eb8498279d305dac5aa7e7717a
---

 java-libs/leanback-v17/.classpath                  |   10 +
 java-libs/leanback-v17/.project                    |   33 +
 java-libs/leanback-v17/AndroidManifest.xml         |   26 +
 java-libs/leanback-v17/build.xml                   |   92 +
 java-libs/leanback-v17/project.properties          |   16 +
 .../drawable-hdpi-v4/lb_action_bg_focused.9.png    |  Bin 0 -> 277 bytes
 .../res/drawable-hdpi-v4/lb_bg_protection.png      |  Bin 0 -> 1640966 bytes
 .../drawable-hdpi-v4/lb_card_shadow_focused.9.png  |  Bin 0 -> 2226 bytes
 .../drawable-hdpi-v4/lb_card_shadow_normal.9.png   |  Bin 0 -> 698 bytes
 .../drawable-hdpi-v4/lb_ic_actions_right_arrow.png |  Bin 0 -> 619 bytes
 .../res/drawable-hdpi-v4/lb_ic_in_app_search.png   |  Bin 0 -> 1094 bytes
 .../res/drawable-hdpi-v4/lb_ic_sad_cloud.png       |  Bin 0 -> 4445 bytes
 .../res/drawable-hdpi-v4/lb_ic_search_mic.png      |  Bin 0 -> 849 bytes
 .../res/drawable-hdpi-v4/lb_ic_search_mic_out.png  |  Bin 0 -> 916 bytes
 .../res/drawable-hdpi-v4/lb_in_app_search_bg.9.png |  Bin 0 -> 333 bytes
 .../lb_in_app_search_shadow_focused.9.png          |  Bin 0 -> 1928 bytes
 .../lb_in_app_search_shadow_normal.9.png           |  Bin 0 -> 730 bytes
 .../drawable-mdpi-v4/lb_action_bg_focused.9.png    |  Bin 0 -> 231 bytes
 .../res/drawable-mdpi-v4/lb_bg_protection.png      |  Bin 0 -> 603914 bytes
 .../drawable-mdpi-v4/lb_card_shadow_focused.9.png  |  Bin 0 -> 1300 bytes
 .../drawable-mdpi-v4/lb_card_shadow_normal.9.png   |  Bin 0 -> 482 bytes
 .../drawable-mdpi-v4/lb_ic_actions_right_arrow.png |  Bin 0 -> 538 bytes
 .../res/drawable-mdpi-v4/lb_ic_in_app_search.png   |  Bin 0 -> 815 bytes
 .../res/drawable-mdpi-v4/lb_ic_sad_cloud.png       |  Bin 0 -> 2944 bytes
 .../res/drawable-mdpi-v4/lb_ic_search_mic.png      |  Bin 0 -> 655 bytes
 .../res/drawable-mdpi-v4/lb_ic_search_mic_out.png  |  Bin 0 -> 680 bytes
 .../res/drawable-mdpi-v4/lb_in_app_search_bg.9.png |  Bin 0 -> 252 bytes
 .../lb_in_app_search_shadow_focused.9.png          |  Bin 0 -> 1158 bytes
 .../lb_in_app_search_shadow_normal.9.png           |  Bin 0 -> 491 bytes
 .../drawable-xhdpi-v4/lb_action_bg_focused.9.png   |  Bin 0 -> 346 bytes
 .../res/drawable-xhdpi-v4/lb_bg_protection.png     |  Bin 0 -> 3113619 bytes
 .../drawable-xhdpi-v4/lb_card_shadow_focused.9.png |  Bin 0 -> 3393 bytes
 .../drawable-xhdpi-v4/lb_card_shadow_normal.9.png  |  Bin 0 -> 943 bytes
 .../lb_ic_actions_right_arrow.png                  |  Bin 0 -> 829 bytes
 .../lb_ic_card_info_text_fade.png                  |  Bin 0 -> 1080 bytes
 .../res/drawable-xhdpi-v4/lb_ic_in_app_search.png  |  Bin 0 -> 1570 bytes
 .../res/drawable-xhdpi-v4/lb_ic_sad_cloud.png      |  Bin 0 -> 6529 bytes
 .../res/drawable-xhdpi-v4/lb_ic_search_mic.png     |  Bin 0 -> 1109 bytes
 .../res/drawable-xhdpi-v4/lb_ic_search_mic_out.png |  Bin 0 -> 1202 bytes
 .../drawable-xhdpi-v4/lb_in_app_search_bg.9.png    |  Bin 0 -> 402 bytes
 .../lb_in_app_search_shadow_focused.9.png          |  Bin 0 -> 2879 bytes
 .../lb_in_app_search_shadow_normal.9.png           |  Bin 0 -> 1012 bytes
 .../drawable-xxhdpi-v4/lb_action_bg_focused.9.png  |  Bin 0 -> 1287 bytes
 .../lb_card_shadow_focused.9.png                   |  Bin 0 -> 6269 bytes
 .../drawable-xxhdpi-v4/lb_card_shadow_normal.9.png |  Bin 0 -> 2255 bytes
 .../lb_ic_actions_right_arrow.png                  |  Bin 0 -> 1629 bytes
 .../res/drawable-xxhdpi-v4/lb_ic_in_app_search.png |  Bin 0 -> 2502 bytes
 .../res/drawable-xxhdpi-v4/lb_ic_sad_cloud.png     |  Bin 0 -> 9297 bytes
 .../res/drawable-xxhdpi-v4/lb_ic_search_mic.png    |  Bin 0 -> 1980 bytes
 .../drawable-xxhdpi-v4/lb_ic_search_mic_out.png    |  Bin 0 -> 2111 bytes
 .../drawable-xxhdpi-v4/lb_in_app_search_bg.9.png   |  Bin 0 -> 1405 bytes
 .../lb_in_app_search_shadow_focused.9.png          |  Bin 0 -> 5535 bytes
 .../lb_in_app_search_shadow_normal.9.png           |  Bin 0 -> 2422 bytes
 .../leanback-v17/res/drawable/lb_action_bg.xml     |   23 +
 .../leanback-v17/res/drawable/lb_background.xml    |   26 +
 .../leanback-v17/res/drawable/lb_search_orb.xml    |   21 +
 .../res/drawable/lb_selector_action_bg.xml         |   22 +
 .../leanback-v17/res/drawable/lb_speech_orb.xml    |   21 +
 .../leanback-v17/res/layout/lb_action_1_line.xml   |   25 +
 .../leanback-v17/res/layout/lb_action_2_lines.xml  |   25 +
 .../res/layout/lb_background_window.xml            |   22 +
 .../leanback-v17/res/layout/lb_browse_fragment.xml |   43 +
 .../leanback-v17/res/layout/lb_browse_title.xml    |   27 +
 .../res/layout/lb_card_color_overlay.xml           |   22 +
 .../res/layout/lb_details_description.xml          |   47 +
 .../res/layout/lb_details_fragment.xml             |   27 +
 .../res/layout/lb_details_overview.xml             |   77 +
 java-libs/leanback-v17/res/layout/lb_header.xml    |   25 +
 .../res/layout/lb_headers_fragment.xml             |   24 +
 .../leanback-v17/res/layout/lb_image_card_view.xml |   88 +
 java-libs/leanback-v17/res/layout/lb_list_row.xml  |   24 +
 .../res/layout/lb_list_row_hovercard.xml           |   32 +
 .../leanback-v17/res/layout/lb_row_container.xml   |   26 +
 .../leanback-v17/res/layout/lb_row_header.xml      |   25 +
 .../leanback-v17/res/layout/lb_rows_fragment.xml   |   24 +
 .../leanback-v17/res/layout/lb_search_bar.xml      |   73 +
 .../leanback-v17/res/layout/lb_search_fragment.xml |   36 +
 .../leanback-v17/res/layout/lb_search_orb.xml      |   35 +
 java-libs/leanback-v17/res/layout/lb_shadow.xml    |   31 +
 .../leanback-v17/res/layout/lb_speech_orb.xml      |   35 +
 .../leanback-v17/res/layout/lb_title_view.xml      |   43 +
 .../leanback-v17/res/layout/lb_vertical_grid.xml   |   24 +
 .../res/layout/lb_vertical_grid_fragment.xml       |   38 +
 .../leanback-v17/res/raw/lb_voice_failure.ogg      |  Bin 0 -> 4530 bytes
 .../leanback-v17/res/raw/lb_voice_no_input.ogg     |  Bin 0 -> 4557 bytes
 java-libs/leanback-v17/res/raw/lb_voice_open.ogg   |  Bin 0 -> 4074 bytes
 .../leanback-v17/res/raw/lb_voice_success.ogg      |  Bin 0 -> 4383 bytes
 java-libs/leanback-v17/res/values-af/values.xml    |   13 +
 java-libs/leanback-v17/res/values-am/values.xml    |   13 +
 java-libs/leanback-v17/res/values-ar/values.xml    |   13 +
 java-libs/leanback-v17/res/values-bg/values.xml    |   13 +
 java-libs/leanback-v17/res/values-ca/values.xml    |   13 +
 java-libs/leanback-v17/res/values-cs/values.xml    |   13 +
 java-libs/leanback-v17/res/values-da/values.xml    |   13 +
 java-libs/leanback-v17/res/values-de/values.xml    |   13 +
 java-libs/leanback-v17/res/values-el/values.xml    |   13 +
 .../leanback-v17/res/values-en-rGB/values.xml      |   13 +
 .../leanback-v17/res/values-en-rIN/values.xml      |   13 +
 .../leanback-v17/res/values-es-rUS/values.xml      |   13 +
 java-libs/leanback-v17/res/values-es/values.xml    |   13 +
 .../leanback-v17/res/values-et-rEE/values.xml      |   13 +
 java-libs/leanback-v17/res/values-fa/values.xml    |   13 +
 java-libs/leanback-v17/res/values-fi/values.xml    |   13 +
 .../leanback-v17/res/values-fr-rCA/values.xml      |   13 +
 java-libs/leanback-v17/res/values-fr/values.xml    |   13 +
 java-libs/leanback-v17/res/values-hi/values.xml    |   13 +
 java-libs/leanback-v17/res/values-hr/values.xml    |   13 +
 java-libs/leanback-v17/res/values-hu/values.xml    |   13 +
 .../leanback-v17/res/values-hy-rAM/values.xml      |   13 +
 java-libs/leanback-v17/res/values-in/values.xml    |   13 +
 java-libs/leanback-v17/res/values-it/values.xml    |   13 +
 java-libs/leanback-v17/res/values-iw/values.xml    |   13 +
 java-libs/leanback-v17/res/values-ja/values.xml    |   13 +
 .../leanback-v17/res/values-ka-rGE/values.xml      |   13 +
 .../leanback-v17/res/values-km-rKH/values.xml      |   13 +
 java-libs/leanback-v17/res/values-ko/values.xml    |   13 +
 .../leanback-v17/res/values-lo-rLA/values.xml      |   13 +
 java-libs/leanback-v17/res/values-lt/values.xml    |   13 +
 java-libs/leanback-v17/res/values-lv/values.xml    |   13 +
 .../leanback-v17/res/values-mn-rMN/values.xml      |   13 +
 .../leanback-v17/res/values-ms-rMY/values.xml      |   13 +
 java-libs/leanback-v17/res/values-nb/values.xml    |   13 +
 java-libs/leanback-v17/res/values-nl/values.xml    |   13 +
 java-libs/leanback-v17/res/values-pl/values.xml    |   13 +
 .../leanback-v17/res/values-pt-rPT/values.xml      |   13 +
 java-libs/leanback-v17/res/values-pt/values.xml    |   13 +
 java-libs/leanback-v17/res/values-ro/values.xml    |   13 +
 java-libs/leanback-v17/res/values-ru/values.xml    |   13 +
 java-libs/leanback-v17/res/values-sk/values.xml    |   13 +
 java-libs/leanback-v17/res/values-sl/values.xml    |   13 +
 java-libs/leanback-v17/res/values-sr/values.xml    |   13 +
 java-libs/leanback-v17/res/values-sv/values.xml    |   13 +
 java-libs/leanback-v17/res/values-sw/values.xml    |   13 +
 java-libs/leanback-v17/res/values-th/values.xml    |   13 +
 java-libs/leanback-v17/res/values-tl/values.xml    |   13 +
 java-libs/leanback-v17/res/values-tr/values.xml    |   13 +
 java-libs/leanback-v17/res/values-uk/values.xml    |   13 +
 java-libs/leanback-v17/res/values-vi/values.xml    |   13 +
 .../leanback-v17/res/values-zh-rCN/values.xml      |   13 +
 .../leanback-v17/res/values-zh-rHK/values.xml      |   13 +
 .../leanback-v17/res/values-zh-rTW/values.xml      |   13 +
 java-libs/leanback-v17/res/values-zu/values.xml    |   13 +
 java-libs/leanback-v17/res/values/values.xml       |  632 +++
 .../v17/leanback/app/BackgroundFragment.java       |   54 +
 .../v17/leanback/app/BackgroundManager.java        |  801 +++
 .../support/v17/leanback/app/BaseRowFragment.java  |  190 +
 .../support/v17/leanback/app/BrowseFragment.java   |  886 +++
 .../v17/leanback/app/BrowseFrameLayout.java        |   90 +
 .../v17/leanback/app/BrowseRowsFrameLayout.java    |   53 +
 .../v17/leanback/app/ChangeBoundsKitKat.java       |  135 +
 .../support/v17/leanback/app/DetailsFragment.java  |  142 +
 .../support/v17/leanback/app/HeadersFragment.java  |  193 +
 .../support/v17/leanback/app/RowsFragment.java     |  356 ++
 .../support/v17/leanback/app/SearchFragment.java   |  385 ++
 .../android/support/v17/leanback/app/Slide.java    |  248 +
 .../support/v17/leanback/app/SlideCallback.java    |   32 +
 .../v17/leanback/app/TitleTransitionHelper.java    |   49 +
 .../support/v17/leanback/app/TransitionHelper.java |  443 ++
 .../v17/leanback/app/TransitionHelperKitkat.java   |  217 +
 .../v17/leanback/app/TransitionListener.java       |   27 +
 .../v17/leanback/app/VerticalGridFragment.java     |  336 ++
 .../v17/leanback/database/CursorMapper.java        |   50 +
 .../v17/leanback/graphics/ColorFilterCache.java    |   76 +
 .../v17/leanback/graphics/ColorFilterDimmer.java   |  125 +
 .../v17/leanback/graphics/ColorOverlayDimmer.java  |  157 +
 .../AbstractDetailsDescriptionPresenter.java       |  183 +
 .../support/v17/leanback/widget/Action.java        |  150 +
 .../leanback/widget/ActionPresenterSelector.java   |  145 +
 .../v17/leanback/widget/ArrayObjectAdapter.java    |  154 +
 .../support/v17/leanback/widget/BaseCardView.java  |  886 +++
 .../support/v17/leanback/widget/BaseGridView.java  |  493 ++
 .../leanback/widget/ClassPresenterSelector.java    |   42 +
 .../v17/leanback/widget/CursorObjectAdapter.java   |  186 +
 .../v17/leanback/widget/DetailsOverviewRow.java    |  126 +
 .../widget/DetailsOverviewRowPresenter.java        |  287 +
 .../v17/leanback/widget/FocusHighlight.java        |   51 +
 .../v17/leanback/widget/FocusHighlightHelper.java  |  217 +
 .../v17/leanback/widget/GridLayoutManager.java     | 2377 ++++++++
 .../support/v17/leanback/widget/HeaderItem.java    |   65 +
 .../v17/leanback/widget/HorizontalGridView.java    |  366 ++
 .../widget/HorizontalHoverCardSwitcher.java        |   71 +
 .../support/v17/leanback/widget/ImageCardView.java |  166 +
 .../support/v17/leanback/widget/ItemAlignment.java |  178 +
 .../v17/leanback/widget/ItemBridgeAdapter.java     |  314 ++
 .../support/v17/leanback/widget/ListRow.java       |   53 +
 .../v17/leanback/widget/ListRowHoverCardView.java  |   74 +
 .../v17/leanback/widget/ListRowPresenter.java      |  486 ++
 .../support/v17/leanback/widget/ListRowView.java   |   56 +
 .../support/v17/leanback/widget/ObjectAdapter.java |  250 +
 .../leanback/widget/OnActionClickedListener.java   |   23 +
 .../leanback/widget/OnChildSelectedListener.java   |   40 +
 .../v17/leanback/widget/OnItemClickedListener.java |   30 +
 .../leanback/widget/OnItemSelectedListener.java    |   47 +
 .../support/v17/leanback/widget/Presenter.java     |  111 +
 .../v17/leanback/widget/PresenterSelector.java     |   24 +
 .../v17/leanback/widget/PresenterSwitcher.java     |  106 +
 .../android/support/v17/leanback/widget/Row.java   |  120 +
 .../v17/leanback/widget/RowContainerView.java      |   68 +
 .../v17/leanback/widget/RowHeaderPresenter.java    |  117 +
 .../support/v17/leanback/widget/RowHeaderView.java |   38 +
 .../support/v17/leanback/widget/RowPresenter.java  |  438 ++
 .../support/v17/leanback/widget/SearchBar.java     |  655 +++
 .../v17/leanback/widget/SearchEditText.java        |   66 +
 .../support/v17/leanback/widget/SearchOrbView.java |  244 +
 .../support/v17/leanback/widget/ShadowHelper.java  |  170 +
 .../v17/leanback/widget/ShadowHelperApi21.java     |   54 +
 .../v17/leanback/widget/ShadowHelperJbmr2.java     |   50 +
 .../leanback/widget/ShadowOverlayContainer.java    |  209 +
 .../leanback/widget/SinglePresenterSelector.java   |   35 +
 .../support/v17/leanback/widget/SpeechOrbView.java |  121 +
 .../support/v17/leanback/widget/StaggeredGrid.java |  309 +
 .../v17/leanback/widget/StaggeredGridDefault.java  |  152 +
 .../support/v17/leanback/widget/TitleView.java     |  132 +
 .../v17/leanback/widget/VerticalGridPresenter.java |  249 +
 .../v17/leanback/widget/VerticalGridView.java      |   80 +
 .../v17/leanback/widget/WindowAlignment.java       |  297 +
 .../support/v7/widget/DefaultItemAnimator.java     |  349 ++
 .../support/v7/widget/LinearLayoutManager.java     | 1697 ++++++
 .../support/v7/widget/LinearSmoothScroller.java    |  338 ++
 .../src/android/support/v7/widget/PositionMap.java |  460 ++
 .../android/support/v7/widget/RecyclerView.java    | 5953 ++++++++++++++++++++
 vlc-android/AndroidManifest.xml                    |   19 +-
 vlc-android/project.properties                     |    3 +-
 vlc-android/res/layout/tv_details.xml              |    6 +
 vlc-android/res/layout/tv_main.xml                 |    7 +
 vlc-android/res/layout/tv_main_fragment.xml        |    7 +
 vlc-android/res/values/dimens.xml                  |    2 +
 vlc-android/src/org/videolan/vlc/Thumbnailer.java  |   16 +-
 .../src/org/videolan/vlc/gui/tv/CardPresenter.java |   98 +
 .../org/videolan/vlc/gui/tv/DetailsActivity.java   |   14 +
 .../vlc/gui/tv/DetailsDescriptionPresenter.java    |   24 +
 .../src/org/videolan/vlc/gui/tv/MainFragment.java  |   11 +
 .../org/videolan/vlc/gui/tv/MainTvActivity.java    |  232 +
 .../org/videolan/vlc/gui/tv/MediaItemDetails.java  |   24 +
 .../vlc/gui/tv/MediaItemDetailsFragment.java       |   63 +
 .../org/videolan/vlc/gui/tv/StringPresenter.java   |   29 +
 .../src/org/videolan/vlc/gui/tv/TvMedia.java       |  136 +
 .../vlc/gui/video/VideoBrowserInterface.java       |   15 +
 .../videolan/vlc/gui/video/VideoGridFragment.java  |    6 +-
 239 files changed, 28434 insertions(+), 16 deletions(-)

Diff:   http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commitdiff;h=334c86c51a7d69eb8498279d305dac5aa7e7717a


More information about the Android mailing list