All Projects → HamedTaherpour → floating-layout-android

HamedTaherpour / floating-layout-android

Licence: other
Floating Layout library for Android

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to floating-layout-android

Easyfloat
🔥 EasyFloat:浮窗从未如此简单(Android可拖拽悬浮窗口,支持页面过滤、自定义动画,可设置单页面浮窗、前台浮窗、全局浮窗,浮窗权限按需自动申请...)
Stars: ✭ 2,201 (+3901.82%)
Mutual labels:  floating, floating-window, floating-view
Aboutlibraries
AboutLibraries automatically detects all dependencies of a project and collects their information including the license. Optionally visualising it via the provided ui components.
Stars: ✭ 2,777 (+4949.09%)
Mutual labels:  android-development, android-ui
Awesome Android Complete Reference
Awesome Android references for everything like best practices, performance optimization, etc.
Stars: ✭ 2,701 (+4810.91%)
Mutual labels:  android-development, android-ui
Material-Backdrop-Android
Material Backdrop
Stars: ✭ 106 (+92.73%)
Mutual labels:  android-development, android-ui
Bottomsheet
BottomSheet dialog library for Android
Stars: ✭ 219 (+298.18%)
Mutual labels:  android-development, android-ui
Modern Android Development
Modern Android Development tools & key points
Stars: ✭ 219 (+298.18%)
Mutual labels:  android-development, android-ui
GitReposCompose
GitReposCompose is an Android application 📱 for showcasing Jetpack Compose for building declarative UI in Android. This demo app uses Github public API for fetching public repositories.
Stars: ✭ 32 (-41.82%)
Mutual labels:  android-development, android-ui
Customrefreshview
一个支持网络错误重试,无数据页(可自定义),无网络界面(可自定义)的上拉加载更多,下拉刷新控件
Stars: ✭ 160 (+190.91%)
Mutual labels:  android-development, android-ui
awesome-android-libraries
😎 A curated list of awesome Android libraries
Stars: ✭ 135 (+145.45%)
Mutual labels:  android-development, android-ui
QuestionnaireView
A simple view to be able to display question and various field (Radio, EditText, checkbox ) for answers
Stars: ✭ 34 (-38.18%)
Mutual labels:  android-development, android-ui
VideoPreLoading
Demo for video PreLoading/ PreCaching using ExoPlayer 2.13.3 in Android.
Stars: ✭ 61 (+10.91%)
Mutual labels:  android-development, android-ui
Advancedrecycleview
♻ RecycleView with multiple view types, inner horizontal RecycleView and layout animation
Stars: ✭ 172 (+212.73%)
Mutual labels:  android-development, android-ui
Awesomedialog
A Beautiful Dialog Library for Kotlin Android
Stars: ✭ 163 (+196.36%)
Mutual labels:  android-development, android-ui
Customfloatingactionbutton
This view is for replacement of standard Floating Action Button from Google Support Library. It is easy to use, customizable and you can also add text to button
Stars: ✭ 222 (+303.64%)
Mutual labels:  android-development, android-ui
Glidetoast
GlideToast is a android library to implement flying Toast Animation
Stars: ✭ 162 (+194.55%)
Mutual labels:  android-development, android-ui
QuadTreeAndroid
Library that helps to implement the QuadTree in android, by using splitting images
Stars: ✭ 30 (-45.45%)
Mutual labels:  android-development, android-ui
Materialdrawer
The flexible, easy to use, all in one drawer library for your Android project. Now brand new with material 2 design.
Stars: ✭ 11,498 (+20805.45%)
Mutual labels:  android-development, android-ui
Notzz App
📝 A Simple Note-Taking App built to demonstrate the use of Modern Android development tools - (Kotlin, Coroutines, State Flow, Hilt-Dependency Injection, Jetpack DataStore, Architecture Components, MVVM, Room, Material Design Components).
Stars: ✭ 158 (+187.27%)
Mutual labels:  android-development, android-ui
Uistatus
一个简单且强大的Ui状态视图控制库!
Stars: ✭ 137 (+149.09%)
Mutual labels:  layouts, android-ui
github-commit-browser
A blog companion sample project that demonstrates saving UI state after process death on Android utilizing the community established 3rd party libraries
Stars: ✭ 55 (+0%)
Mutual labels:  android-development, android-ui

floating-layout-android

Floating Layout for android platform

Download

Demo

Example project floating-video-player-android

Build

Step 1. Add the JitPack repository to your build file
allprojects {
    repositories {
        maven { url "https://jitpack.io" }
    }
}
Step 2. Add the dependency
dependencies {
    implementation 'com.github.HamedTaherpour:floating-layout-android:1.1.5'
}

Usage

Manifest

Step 1. Add permission and service to your manifest file
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />

<application>
    <service android:name="io.hamed.floatinglayout.service.FloatingService"/>
</application>

Layout.xml

Step 2. Create layout and don't forget add id (root_container) like this
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <FrameLayout
        android:id="@+id/root_container"
        android:layout_width="250dp"
        android:layout_height="200dp">

        ....

    </FrameLayout>

</FrameLayout>

Java

Step 3. Create FloatingLayout
private FloatingListener floatingListener = new FloatingListener() {
    @Override
    public void onCreateListener(View view) {

    }

    @Override
    public void onCloseListener() {

    }
};

floatingLayout = new FloatingLayout(this, R.layout.sample_layout);
floatingLayout.setFloatingListener(floatingListener);
floatingLayout.create();
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].