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.)
@@ -139,7 +141,6 @@ dependencies {
139
141
```
140
142
141
143
</details>
142
-
<br/>
143
144
144
145
## Issues
145
146
@@ -281,7 +282,7 @@ For further customization you can use ```android:layout``` to apply your own lay
281
282
<brclear="left"/>
282
283
283
284
#### Methods
284
-
Return the toolbar, useful for ```setSupportActionBar()```.
285
+
Return the Toolbar.
285
286
```java
286
287
publicMaterialToolbar getToolbar()
287
288
```
@@ -493,6 +494,10 @@ For further customization you can use ```android:layout``` to apply your own lay
493
494
<brclear="left"/>
494
495
495
496
#### Methods
497
+
Return the [ToolbarLayout](#ToolbarLayout).
498
+
```java
499
+
publicToolbarLayout getToolbarLayout()
500
+
```
496
501
Return the [SwitchBar](#SwitchBar).
497
502
```java
498
503
publicSwitchBar getSwitchBar()
@@ -594,6 +599,10 @@ public void seslSetFillBottomColor(int color)
594
599
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).
@@ -604,6 +613,12 @@ It's almost the same as Google's one, only difference is a different "pull-down"
604
613
```
605
614
Attributes and usage are the same as Google's [SwipeRefreshLayout](https://developer.android.com/reference/androidx/swiperefreshlayout/widget/SwipeRefreshLayout).
606
615
616
+
#### Methods
617
+
End the refresh status once the animation ends.
618
+
```java
619
+
publicvoid seslSetRefreshOnce(boolean once)
620
+
```
621
+
607
622
### Button
608
623
The Button has three styles which you can use, depending on your needs.
609
624
@@ -823,7 +838,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.
837
852
838
853
#### Methods
839
-
Add a custom ImageButton (like in Samsung's Gallery).
854
+
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)```:
1168
+
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.
1209
+
*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.
1172
1210
1173
1211
### Color theme
1174
1212
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:
@@ -1439,4 +1477,4 @@ Starting with v2.1.0, the new OneUI 4 design is being added to this library and
1439
1477
-[BlackMesa123](https://github.com/BlackMesa123) for a lot of OneUI stuff, more compatibility and his experience.
1440
1478
-[TenSeventy7](https://github.com/TenSeventy7) for some stuff and help.
1441
1479
-[leonbcode](https://github.com/leonbcode) for github actions, so this library is always up-to-date.
1442
-
- All the [Contributors](https://github.com/Yanndroid/OneUI-Design-Library/graphs/contributors) and Issue Reporters.
1480
+
- All the [Contributors](https://github.com/Yanndroid/OneUI-Design-Library/graphs/contributors) and Issue Reporters.
0 commit comments