Skip to content

Commit

Permalink
Dynamic utils 4.4.4
Browse files Browse the repository at this point in the history
Dynamic locale 2.2.0.
Dynamic preferences 2.2.2.
  • Loading branch information
pranavpandey committed Jul 22, 2022
1 parent 666f156 commit d76ac88
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 8 deletions.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
# Dynamic Support

[![License](https://img.shields.io/badge/license-Apache%202-4EB1BA.svg?)](https://www.apache.org/licenses/LICENSE-2.0.html)
[![Build Status](https://travis-ci.org/pranavpandey/dynamic-support.svg?branch=master)](https://travis-ci.org/pranavpandey/dynamic-support)
[![Release](https://img.shields.io/maven-central/v/com.pranavpandey.android/dynamic-support)](https://search.maven.org/artifact/com.pranavpandey.android/dynamic-support)

A complete library to build apps for Android 4.0 (API 14) and above with a built-in theme engine.
Expand Down Expand Up @@ -57,6 +56,7 @@ dependencies {
---

## Usage

It is a collection of activities, fragments, widgets, views and some utility functions required
to build a standard Android app. It also provides some built-in use cases like an intro screen,
drawer activity, about screen, collapsing app bar, navigation bar view, color picker, multiple
Expand All @@ -65,12 +65,14 @@ locales, runtime permissions, etc. which can be used and customised according to
> For a complete reference, please read the [documentation][documentation].
### Theme engine

Each activity and widget can be themed by using the built-in theme engine with background aware
functionality to avoid any visibility issues. Colors can be selected by using the provided
[material design colors][material-design-colors] or by selecting a custom color from the built-in
picker which supports HEX, HSV, ARGB and CMYK values.

### Background aware

Below are the same colors applied on the light and dark backgrounds respectively. But the final
color is adjusted according to the colored view background to provide best visibility.

Expand All @@ -80,6 +82,7 @@ color is adjusted according to the colored view background to provide best visib
</p>

### Sample

This library is fully commented so, please check the individual classes or files for the
documentation. Basic documentation will be available soon.

Expand All @@ -92,6 +95,7 @@ It depends on the [dynamic-theme][dynamic-theme], [dynamic-locale][dynamic-local
So, their functions can also be used to perform other useful operations.

### Proguard

This library uses reflection at some places to theme widgets at runtime. So, their original name
must be preserved to theme them properly. It will automatically apply the appropriate rules if
proguard is enabled in the project.
Expand Down Expand Up @@ -163,9 +167,11 @@ checkout the `Rotation` and `Everyday` apps to experience the full potential of
</p>

### Supported

- [EZ Notes][ez-notes]

### Developed

- [Rotation][rotation]
- [Everyday][everyday]
- [Palettes][palettes]
Expand All @@ -175,6 +181,7 @@ checkout the `Rotation` and `Everyday` apps to experience the full potential of
---

## Translations

- German (de) - Flubberlutsch
- French (fr) - Nitesh Jha | Others
- Hindi (hi) - Siddh Narhari
Expand Down
7 changes: 4 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,16 @@ buildscript {
'targetSdk' : 33,
'buildTools' : '33.0.0',
'multidex' : '2.0.1',
'dynamic' : '4.1.2',
'dynamic' : '4.4.4',
'fragment' : '1.5.0',
'flexbox' : '3.0.0',
'kotlin' : '1.6.21',
'locale' : '2.1.0',
'locale' : '2.2.0',
'material' : '1.7.0-alpha02',
'preferences' : '2.2.0',
'preferences' : '2.2.2',
'swiperefresh': '1.1.0',
'theme' : '4.3.1',
'toasts' : '4.1.2',
'work' : '2.8.0-alpha02'
]

Expand Down
3 changes: 2 additions & 1 deletion dynamic-support/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,11 @@ android {
}

dependencies {
api "com.pranavpandey.android:dynamic-utils:${versions.dynamic}"
api "com.pranavpandey.android:dynamic-theme:${versions.theme}"
api "com.pranavpandey.android:dynamic-locale:${versions.locale}"
api "com.pranavpandey.android:dynamic-preferences:${versions.preferences}"
api "com.pranavpandey.android:dynamic-toasts:${versions.dynamic}"
api "com.pranavpandey.android:dynamic-toasts:${versions.toasts}"
api "androidx.fragment:fragment:${versions.fragment}"
api "androidx.swiperefreshlayout:swiperefreshlayout:${versions.swiperefresh}"
api "androidx.work:work-runtime:${versions.work}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ public void initialize() {

@Override
public void applyWindowInsets() {
DynamicViewUtils.applyWindowInsetsHorizontal(this, false);
DynamicViewUtils.applyWindowInsetsHorizontal(this);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public void initialize() {

@Override
public void applyWindowInsets() {
DynamicViewUtils.applyWindowInsetsHorizontal(this, false);
DynamicViewUtils.applyWindowInsetsHorizontal(this);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ public void initialize() {

@Override
public void applyWindowInsets() {
DynamicViewUtils.applyWindowInsetsVertical(this, false);
DynamicViewUtils.applyWindowInsetsVertical(this);
}

@Override
Expand Down

0 comments on commit d76ac88

Please sign in to comment.