All Projects → jaychou2012 → BottomView

jaychou2012 / BottomView

Licence: other
Android BottomView2014

Programming Languages

java
68154 projects - #9 most used programming language

BottomView

Android BottomView2014, update for Android Studio

BottomView is for Android, you can easyly set a custom View to your App's bottom.

Usage

Put the libray jar to your Application:

You should put bottomView.jar to your libs.(the bottomView.jar can get from this demo).

Set the BottomView's Theme:

Copy this two style to your application res/values/styles.xml

`

<style name="BottomViewTheme_Defalut"> @null @null true false true @color/white true true </style>
<style name="BottomViewTheme_Transparent">
    <item name="android:windowFrame">@null</item>
    <item name="android:windowIsFloating">true</item>
    <!-- Transparent -->
    <item name="android:windowIsTranslucent">false</item>
    <item name="android:windowContentOverlay">@null</item>
    <item name="android:windowNoTitle">true</item>
    <item name="android:windowBackground">@color/white</item>
    <item name="android:backgroundDimEnabled">false</item>
</style>

`

if you want the bottomView has a animation,you can put the animation theme to the res/values/styles.xml or user library inside anim.

<style name="BottomToTopAnim" parent="android:Animation"> <item name="@android:windowEnterAnimation">@anim/bottomview_anim_enter</item> <item name="@android:windowExitAnimation">@anim/bottomview_anim_exit</item> </style>

res/anim/bottomview_anim_enter.xml `

<translate
    android:duration="500"
    android:fromYDelta="100%p" />

`

res/anim/bottomview_anim_exit.xml

`

<translate
    android:duration="500"
    android:toYDelta="100%p" />

`

Key Code

BottomView bottomView = new BottomView(this, R.style.BottomViewTheme_Defalut, R.layout.bottom_view); bottomView.setAnimation(R.style.BottomToTopAnim);//set animation bottomView.showBottomView(false);

If you want to get the view, use .getView()

Effect

《Android开发进阶实战:拓展与提升》已出版

新书涵盖Android最新的技术和内容,包括:新布局方式ConstraintLayout 、AndroidX、Jetpack、TV开发等,值得购买阅读。

Android开发进阶实战:拓展与提升

纸质书购买:

京东 天猫 当当

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].