A library support form with material design, construct same with Android UI Framework

Overview

SwingUI

A slight Java Swing library support form with material design, construct same with Android UI Framework writen in Kotlin

Supported:

1. Screen:

Like Activity in Android, enable display a frame with default close action, support movable in status bar. Using by implement Screen class:

class MainScreen : Screen(900, 600) {
	override fun onCreateView() {
		container.layout = BorderLayout()
		container.add(JPanel().apply {
			background = Color.black
		})
	}
}

2. Widget:

Like View in Android, support some common widget with re-defined UI. Currently, support 2 widgets:

  • org.cuongnv.swingui.widget.TextView
  • org.cuongnv.swingui.widget.EditText

3. Material UI:

Support flat button style and flat scrollbar UI with 3 build-in UIs: FlatButtonUI, FlatCircleButtonUI and FlatScrollBarUI.

4. Animation:

Like with ValueAnimator in Android, SwingUI support play animation on property of Swing Component.

val animator = ValueAnimator.ofFloat(0f, 1f)
	.setDuration(250L)
	.setInterpolator(SinInterpolator())
	.setUpdateListener { value: Float ->
		// Redraw with new animated value [value]
	}
	 
animator.start()

Currently, supported 2 Interpolator: LinearInterpolator and SinInterpolator.

Future Update:

SwingUI in development phase, too much thing must update, if you have any ideas, please contribute with me.

License

Copyright 2021 Cuong V. Nguyen (github.com/cuongnv126).

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.
You might also like...
Android drawer icon with material design animation
Android drawer icon with material design animation

LDrawer Android drawer icon with material design animation Note Basically same as appcompat_v7 version 21, you can use appcompat_v7 compile 'com.andro

Android Sample Project with Material Design and Toolbar.

AndroidMaterialDesignToolbar -- PROJECT IS NOT SUPPORTED Android Sample Project with Material Design and Toolbar. Project use Appcompat library for ma

Android drawer icon with material design animation
Android drawer icon with material design animation

LDrawer Android drawer icon with material design animation Note Basically same as appcompat_v7 version 21, you can use appcompat_v7 compile 'com.andro

Floating Action Button for Android based on Material Design specification
Floating Action Button for Android based on Material Design specification

FloatingActionButton Yet another library for drawing Material Design promoted actions. Features Support for normal 56dp and mini 40dp buttons. Customi

Android Material Design Components
Android Material Design Components

Android-Material-Design-Components Material design is a comprehensive guide for visual, motion, and interaction design across platforms and devices. G

Modular and customizable Material Design UI components for Android

Material Components for Android Material Components for Android (MDC-Android) help developers execute Material Design. Developed by a core team of eng

Easy creation and management of toggle buttons on Android from the Material Design spec.
Easy creation and management of toggle buttons on Android from the Material Design spec.

ToggleButtonLayout Easy creation and management of toggle buttons from the Material Design spec. Read more about ToggleButtonLayout in our blog post.

A gradle plugin that generates Material Design 3 theme for Android projects.

Same as Google's Material Theme Builder, but as a gradle plugin.

Material Design icons by Google

Material design icons Material design icons is the official icon set from Google. The icons are designed under the material design guidelines. 4.0.0 U

Releases(v0.0.1)
Owner
Cuong V. Nguyen
Cuong V. Nguyen
A library to bring fully animated Material Design components to pre-Lolipop Android.

Material MaterialLibrary is an Open Source Android library that back-port Material Design components to pre-Lolipop Android. MaterialLibrary's origina

Rey Pham 6k Dec 21, 2022
The flexible, easy to use, all in one drawer library for your Android project. Now brand new with material 2 design.

MaterialDrawer ... the flexible, easy to use, all in one drawer library for your Android project. What's included ?? • Setup ??️ • Migration Guide ??

Mike Penz 11.6k Dec 27, 2022
[] Android Library that implements Snackbars from Google's Material Design documentation.

DEPRECATED This lib is deprecated in favor of Google's Design Support Library which includes a Snackbar and is no longer being developed. Thanks for a

null 1.5k Dec 16, 2022
A Material Design ViewPager easy to use library

MaterialViewPager Material Design ViewPager easy to use library Sample And have a look on a sample Youtube Video : Youtube Link Download In your modul

Florent CHAMPIGNY 8.2k Jan 1, 2023
Material You interface with dynamic theme support for your Android projects

Material You Sample Material You interface with dynamic theme support for your Android projects Requirements Android Studio Chipmunk 2021.2.1 or highe

aospstudio 3 Jul 28, 2022
A straightforward, no-BS compass app with support for Material You themes 🧭

Compass A simple & straightforward, no-BS compass app that works with your Material You colors! Motivation I do security work as a fourth job and havi

Synapse Technologies, LLC 16 Nov 23, 2022
Material Shadows for android : A library for supporting convex material shadows

MaterialShadows A library for seamlessly integrating Material shadows. The library takes existing material shadows to next level by adding the followi

Harjot Singh Oberai 2.2k Dec 19, 2022
Floating Action Button for Android based on Material Design specification

FloatingActionButton Yet another library for drawing Material Design promoted actions. Features Support for normal 56dp and mini 40dp buttons. Customi

Zendesk 6.4k Dec 26, 2022
Implementation of Ripple effect from Material Design for Android API 9+

RippleEffect ExpandableLayout provides an easy way to create a view called header with an expandable view. Both view are external layout to allow a ma

Robin Chutaux 4.9k Dec 30, 2022
Material Design implementation for Android 4.0+. Shadows, ripples, vectors, fonts, animations, widgets, rounded corners and more.

Carbon Material Design implementation for Android 4.0 and newer. This is not the exact copy of the Lollipop's API and features. It's a custom implemen

null 3k Jan 9, 2023