All Projects → zhangke3016 → Viewspreadtranslationcontroller

zhangke3016 / Viewspreadtranslationcontroller

View Spread TranslationController for Android.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Viewspreadtranslationcontroller

Transformer
A TensorFlow Implementation of the Transformer: Attention Is All You Need
Stars: ✭ 3,646 (+692.61%)
Mutual labels:  translation
Polyglot
🌏 The missing Safari extension that translates selected text into your native language.
Stars: ✭ 387 (-15.87%)
Mutual labels:  translation
Ember Intl
Localization library for any Ember Application or Addon
Stars: ✭ 412 (-10.43%)
Mutual labels:  translation
Qtodotxt
Cross Platform todo.txt GUI
Stars: ✭ 358 (-22.17%)
Mutual labels:  translation
Wordless
An Integrated Corpus Tool With Multilingual Support for the Study of Language, Literature, and Translation
Stars: ✭ 378 (-17.83%)
Mutual labels:  translation
Rxjs Articles Translation
RxJS 优质文章翻译
Stars: ✭ 396 (-13.91%)
Mutual labels:  translation
Spree i18n
I18n translation files for Spree Commerce.
Stars: ✭ 338 (-26.52%)
Mutual labels:  translation
Ru.reactjs.org
React documentation website in Russian / Официальная русская версия сайта React
Stars: ✭ 444 (-3.48%)
Mutual labels:  translation
React Localize Redux
Dead simple localization for your React components
Stars: ✭ 384 (-16.52%)
Mutual labels:  translation
Easy localization
Easy and Fast internationalizing your Flutter Apps
Stars: ✭ 407 (-11.52%)
Mutual labels:  translation
Handeye calib camodocal
Easy to use and accurate hand eye calibration which has been working reliably for years (2016-present) with kinect, kinectv2, rgbd cameras, optical trackers, and several robots including the ur5 and kuka iiwa.
Stars: ✭ 364 (-20.87%)
Mutual labels:  translation
Laravel Pt Br Localization
Tradução do Laravel para português brasileiro (pt_BR locale)
Stars: ✭ 373 (-18.91%)
Mutual labels:  translation
D2l Vn
Một cuốn sách tương tác về học sâu có mã nguồn, toán và thảo luận. Đề cập đến nhiều framework phổ biến (TensorFlow, Pytorch & MXNet) và được sử dụng tại 175 trường Đại học.
Stars: ✭ 402 (-12.61%)
Mutual labels:  translation
Cs193p Developing Apps For Ios Spring 2020
Stanford 公开课 CS193p - Developing Apps for iOS 2020 春季学期字幕翻译
Stars: ✭ 348 (-24.35%)
Mutual labels:  translation
Brutesploit
BruteSploit is a collection of method for automated Generate, Bruteforce and Manipulation wordlist with interactive shell. That can be used during a penetration test to enumerate and maybe can be used in CTF for manipulation,combine,transform and permutation some words or file text :p
Stars: ✭ 424 (-7.83%)
Mutual labels:  translation
Machine Learning Yearning Korean Translation
Korean translation of machine learning yearning book by Andrew Ng.
Stars: ✭ 341 (-25.87%)
Mutual labels:  translation
Developing Ios 10 Apps With Swift
Stanford 公开课,Developing iOS 10 Apps with Swift 字幕翻译
Stars: ✭ 391 (-15%)
Mutual labels:  translation
Laravel Translation Loader
Store your translations in the database or other sources
Stars: ✭ 446 (-3.04%)
Mutual labels:  translation
Stringz
A lightweight and powerful editor for localizing iOS, macOS, tvOS, and watchOS applications.
Stars: ✭ 440 (-4.35%)
Mutual labels:  translation
Core
The internationalization (i18n) library for Angular
Stars: ✭ 4,027 (+775.43%)
Mutual labels:  translation

ViewSpreadTranslationController

Android视图扩散切换控制器

More simple to create View Translation Animation.

API compatible with Android 4.0+

Preview

ViewSpreadTranslationController ViewSpreadTranslationController ViewSpreadTranslationController ViewSpreadTranslationController

Usage

 helper = new BaseViewHelper
                .Builder(SecondActivity.this)
                //.setEndView()//如果是两个切换的视图  这里设定最终显示的视图
                .setTranslationView(v)//设置过渡视图
                .isFullWindow(true)//是否全屏显示
                .isShowTransition(true)//是否显示过渡动画
                .setDimColor(Color.WHITE)//遮罩颜色
                .setDimAlpha(200)//遮罩透明度
                //.setTranslationX(0)//x轴平移
                //.setRotation(360)//旋转
                //.setScaleX(0)//x轴缩放
                //.setScaleY(0)//y轴缩放
                //.setTranslationY(0)//y轴平移
                //.setDuration(800)//过渡时长
                //.setInterpolator(new AccelerateDecelerateInterpolator())//设置插值器
                //设置监听
//                .setOnAnimationListener(new BaseViewHelper.OnAnimationListener() {
//                    @Override
//                    public void onAnimationStartIn() {
//                        Log.e("TAG","onAnimationStartIn");
//                    }
//
//                    @Override
//                    public void onAnimationEndIn() {
//                        Log.e("TAG","onAnimationEndIn");
//                    }
//
//                    @Override
//                    public void onAnimationStartOut() {
//                        Log.e("TAG","onAnimationStartOut");
//                    }
//
//                    @Override
//                    public void onAnimationEndOut() {
//                        Log.e("TAG","onAnimationEndOut");
//                    }
//                })
                .create();//开始动画

More use

** A(Activity) -->B(Activity)**

A(Activity):

 new BaseViewHelper
                .Builder(MainActivity.this, view)
                .startActivity(intent);

B(Activity):

helper = new BaseViewHelper
                .Builder(SecondActivity.this)
                .isFullWindow(true)//是否全屏显示
                .isShowTransition(true)//是否显示过渡动画
                .setDimColor(Color.WHITE)//遮罩颜色
                .setDimAlpha(200)//遮罩透明度
                .create();//开始动画

    @Override
    public void onBackPressed() {
        if (helper!=null && helper.isShowing()){
            helper.backActivity(this);
        }else {
            super.onBackPressed();
        }
    }

A(View) -->B(View)

Activity:

            View v = View.inflate(this,R.layout.layout_second,null);
            //显示在当前页面跳转
            helper = new BaseViewHelper.Builder(this,view)
                    .setEndView(v)
                    .create();


    @Override
    public void onBackPressed() {
        if (helper!=null && helper.isShowing()){
            helper.back();
        }else {
            super.onBackPressed();
        }
    }

About me

An Android Developer in ShenZhen.

我的简书地址

我的CSDN地址

License

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].