Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
A

Android-ScalableVideoView

> 编程语言
Open source

Android Texture VideoView having a variety of scale types like the scale types of ImageView such as fitCenter, centerCrop, centerTopCrop and more

1.1K stars0 likes2 views
WebsiteGitHub

About

Android Texture VideoView having a variety of scale types like the scale types of ImageView such as fitCenter, centerCrop, centerTopCrop and more

Android-ScalableVideoView

Looking for the extra scale types of ImageView? Check out ScalableImageView.

Android Texture VideoView having a variety of scale types like the scale types of ImageView.

Sample

Release Note

[Release Note] (https://github.com/yqritc/Android-ScalableVideoView/releases)

Gradle

repositories {
    jcenter()
}

dependencies {
    compile 'com.yqritc:android-scalablevideoview:1.0.4'
}

Support Scale Types

Scale to fit

  • fitXY
  • fitStart
  • fitCenter
  • fitEnd

No Scale

  • leftTop
  • leftCenter
  • leftBottom
  • centerTop
  • center
  • centerBottom
  • rightTop
  • rightCenter
  • rightBottom

Crop

  • leftTopCrop
  • leftCenterCrop
  • leftBottomCrop
  • centerTopCrop
  • centerCrop
  • centerBottomCrop
  • rightTopCrop
  • rightCenterCrop
  • rightBottomCrop

Scale Inside

  • startInside
  • centerInside
  • endInside

Usage

Set scale type in layout file

Please refere the following xml for the list of scalableType you can set.
attrs.xml

Sample usage in source code

…

ScalableVideoView is extending TextureView to play video by using MediaPlayer.
Basic functionalities are defined in this class to play and scale video.
If you need to control more, extend this class and define your custom video view.

License

Copyright 2015 yqritc

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Java

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言