You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 3, 2024. It is now read-only.
v2.0.0 and future versions are (and only will be) available on mavenCentral. For older ones see below. (v1.3.0 was published to MavenCentral during development for testing purpose and should **not** be used as it's unstable and incomplete.)
33
35
34
36
1. Add the dependency to build.gradle (Module: ...)
35
37
```gradle
36
38
dependencies {
37
-
implementation 'io.github.yanndroid:oneui:2.2.0'
39
+
implementation 'io.github.yanndroid:oneui:2.2.1'
38
40
...
39
41
}
40
42
```
@@ -74,73 +76,18 @@ res/values-v25/styles.xml
74
76
75
77
</details>
76
78
79
+
## Issues
77
80
78
-
<details>
79
-
<summary>Older versions</summary>
81
+
### Proguard
80
82
81
-
### with [Jitpack](https://jitpack.io/#Yanndroid/SamsungOneUi):
82
-
1. Add jitpack to build.gradle (Project: ...)
83
-
```gradle
84
-
allprojects {
85
-
repositories {
86
-
...
87
-
maven { url 'https://jitpack.io' }
88
-
}
89
-
}
90
-
```
91
-
2. Add the dependency to build.gradle (Module: ...)
If you encounter problems with Proguard (missing classes), see this [Issue](https://github.com/Yanndroid/OneUI-Design-Library/issues/53) by [AlirezaIvaz](https://github.com/AlirezaIvaz).
129
84
130
-
3. Apply the main theme in AndroidManifest.xml
85
+
### Preview render problem
86
+
Some of the custom views might not render in the preview, because this library is using a font (```sec-roboto-light```), which Android Studio (and other IDEs probably too) don't know. To temporarily bypass this problem you can simply add
If you encounter problems with Proguard (missing classes), see this [Issue](https://github.com/Yanndroid/OneUI-Design-Library/issues/53) by [AlirezaIvaz](https://github.com/AlirezaIvaz).
90
+
to your strings.xml. But don't forget to remove it afterwards for your release. Thanks to [roynatech2544](https://github.com/roynatech2544), for reporting this issue.
144
91
145
92
## Documentation
146
93
In general, most of the views are styled automatically when you apply ```android:theme="@style/OneUITheme"``` in AndroidManifest.xml, the usage of the custom views in the library however is needed to achieve the best results.
@@ -269,7 +216,7 @@ For further customization you can use ```android:layout``` to apply your own lay
269
216
<brclear="left"/>
270
217
271
218
#### Methods
272
-
Return the toolbar, useful for ```setSupportActionBar()```.
219
+
Return the Toolbar.
273
220
```java
274
221
publicMaterialToolbar getToolbar()
275
222
```
@@ -481,6 +428,10 @@ For further customization you can use ```android:layout``` to apply your own lay
481
428
<brclear="left"/>
482
429
483
430
#### Methods
431
+
Return the [ToolbarLayout](#ToolbarLayout).
432
+
```java
433
+
publicToolbarLayout getToolbarLayout()
434
+
```
484
435
Return the [SwitchBar](#SwitchBar).
485
436
```java
486
437
publicSwitchBar getSwitchBar()
@@ -582,6 +533,10 @@ public void seslSetFillBottomColor(int color)
582
533
Samsung also customized RecyclerView.ItemDecoration class by adding a call to **onDispatchDraw** method of the View. Overriding the ```seslOnDispatchDraw``` method lets you customize even more your list/grid view. You can find an example of it [here](https://github.com/Yanndroid/OneUI-Design-Library/blob/1e110958151a93647b71b80c68e54949a3a0691a/app/src/main/java/de/dlyt/yanndroid/oneuiexample/tabs/IconsTab.java#L298).
@@ -592,6 +547,12 @@ It's almost the same as Google's one, only difference is a different "pull-down"
592
547
```
593
548
Attributes and usage are the same as Google's [SwipeRefreshLayout](https://developer.android.com/reference/androidx/swiperefreshlayout/widget/SwipeRefreshLayout).
594
549
550
+
#### Methods
551
+
End the refresh status once the animation ends.
552
+
```java
553
+
publicvoid seslSetRefreshOnce(boolean once)
554
+
```
555
+
595
556
### Button
596
557
The Button has three styles which you can use, depending on your needs.
597
558
@@ -811,7 +772,7 @@ public void setTitle(String title)
If you want to set it up with a ViewPager you'll have to use the [ViewPager](#ViewPager) bundled in the library, the usage is the same as Google's [TabLayout](https://developer.android.com/reference/com/google/android/material/tabs/TabLayout), but you'll have to call ```updateWidget(Activity activity)``` after you configured it.
825
786
826
787
#### Methods
827
-
Add a custom ImageButton (like in Samsung's Gallery).
788
+
Add a custom ImageButton like in Samsung's Gallery (as seen in screenshot).
Usage is the same as [TooltipCompat](https://developer.android.com/reference/androidx/appcompat/widget/TooltipCompat) but with additional methods. Please note this won't show up on default views and has to be added manually instead of using ```view.setTooltipText(text)```:
1102
+
Usage is the same as [TooltipCompat](https://developer.android.com/reference/androidx/appcompat/widget/TooltipCompat) but with additional methods. Please note this won't show up on default views and has to be added manually. Instead of using ```view.setTooltipText(text)```, use:
*not all icons are shown here because there are too much by now(229). They are all listed with the file name in the icon tab of the sample app.
1143
+
*not all icons are shown here because there are too much by now (230). They are all listed with their name in the Icons tab of the sample app.
1160
1144
1161
1145
### Color theme
1162
1146
The default color of the style is the same blue as Samsung (see [Screenshots](#Screenshots)). But like Samsung has different colors for different apps, you too can use other colors which will apply on the entire App and even on the [App Icon](#App-Icon). In this library there are three different ways to do that and all three can be used simultaneously:
@@ -1274,6 +1258,15 @@ Starting with v2.1.0, the new OneUI 4 design is being added to this library and
1274
1258
1275
1259
## Changelog
1276
1260
1261
+
<details>
1262
+
<summary>2.2.1</summary>
1263
+
1264
+
- OneUI4++ (views, colors, fonts, themes)
1265
+
- PopupMenu improvements
1266
+
- fixes & minor changes
1267
+
1268
+
</details>
1269
+
1277
1270
<details>
1278
1271
<summary>2.2.0</summary>
1279
1272
@@ -1427,4 +1420,4 @@ Starting with v2.1.0, the new OneUI 4 design is being added to this library and
1427
1420
-[BlackMesa123](https://github.com/BlackMesa123) for a lot of OneUI stuff, more compatibility and his experience.
1428
1421
-[TenSeventy7](https://github.com/TenSeventy7) for some stuff and help.
1429
1422
-[leonbcode](https://github.com/leonbcode) for github actions, so this library is always up-to-date.
1430
-
- All the [Contributors](https://github.com/Yanndroid/OneUI-Design-Library/graphs/contributors) and Issue Reporters.
1423
+
- All the [Contributors](https://github.com/Yanndroid/OneUI-Design-Library/graphs/contributors) and Issue Reporters.
0 commit comments