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.
SelectMode. Changes the layout of the Toolbar to the one you can see in any Samsung app, when you long click a list item. This will show a "All" checkbox, "x selected" counter as the title and a bottom menu (see [screenshot](readme-resources/screenshots/toolbarlayout_selectmode.png)). In the Menu resource file for the bottom menu use ```app:showAsAction="always"``` to show the item as a Action instead of in the "more" menu.
316
318
```java
@@ -438,7 +440,7 @@ A layout that looks like and has the same functions as the About Screen in any S
@@ -448,7 +450,7 @@ A layout that looks like and has the same functions as the About Screen in any S
448
450
449
451
The App Name and Version are automatically added to the view. The Info Button at the top right will redirect the user to the App Info in System Settings. ```app:optional_text``` is the text that can be added between the version and the status text. The status text will change according to the state you have set to the view programmatically (see below) ,or in the layout with ```app:update_state```.
450
452
451
-
You can use ```style="@style/AboutPageButtonStyle"``` for the buttons, which are shown at the bottom.
453
+
You can use ```style="@style/ButtonStyle.AboutPage"``` for the buttons, which are shown at the bottom (layout_width and layout_height are also in this style).
452
454
<brclear="left"/>
453
455
454
456
#### Methods
@@ -610,10 +612,10 @@ The Button has three styles which you can use, depending on your needs.
(There are also ```AboutPageButtonStyle``` and ```AboutPageButtonStyle.Update``` for the [AboutPage](#AboutPage), you can also use them.)
618
+
(There are also ```ButtonStyle.AboutPage``` and ```ButtonStyle.AboutPageUpdate``` for the [AboutPage](#AboutPage), you can also use.)
617
619
618
620
### SeekBar
619
621
Samsung's SeekBar.
@@ -1237,18 +1239,19 @@ Then apply it on the activities you want with ```android:theme="@style/ThemeName
1237
1239
#### 3. Via Code
1238
1240
This method allows you to change the color of your theme dynamically within your app. It's based on [this idea](https://stackoverflow.com/a/48517223). In your activity onCreate add this line at the top **before**```super.onCreate(...)```:
1239
1241
```java
1240
-
newThemeColor(this);
1242
+
newThemeUtil(this);
1241
1243
```
1242
1244
This will apply the color theme at launch. If you want to change the color you can use these functions:
1243
1245
```java
1244
-
ThemeColor.setColor(Activity activity, int red, int green, int blue)
The color you apply with these functions will apply on every activity with ```new ThemeColor(this)``` at the top. You can also enable/disable Dark theme programmatically:
1250
+
The color you apply with these functions will apply on every activity with ```new ThemeUtil(this)``` at the top. If you are using ThemeUtil and you want to enable/disable Dark theme you'll have to do it with these methods:
Starting with v2.1.0, the new OneUI 4 design is being added to this library. Since Samsung hasn't released a stable version yet and still has a lot of stuff to fix, only some views are (partly) using the new style. As long as OneUI 4 is beta, this feature will also be, so don't expect too much. All the views which don't have the new style yet will use the old one (OneUI 3) instead. If you already want to use the OneUI 4 style, instead of ```@style/OneUITheme```use ```@style/OneUITheme``` in your manifest file.
1268
+
Starting with v2.1.0, the new OneUI 4 design is being added to this library. Since Samsung hasn't released a stable version yet and still has a lot of stuff to fix, only some views are (partly) using the new style. As long as OneUI 4 is beta, this feature will also be, so don't expect too much. All the views which don't have the new style yet will use the old one (OneUI 3) instead. If you already want to use the OneUI 4 style, instead of ```@style/OneUITheme```, ```@style/OneUIAboutTheme``` and ```@style/OneUISplashTheme```use ```@style/OneUI4Theme```, ```@style/OneUI4AboutTheme``` and ```@style/OneUI4SplashTheme``` in your manifest file.
1266
1269
1267
1270
## Progress
1268
1271
@@ -1296,6 +1299,19 @@ Starting with v2.1.0, the new OneUI 4 design is being added to this library. Sin
1296
1299
1297
1300
## Changelog
1298
1301
1302
+
<details>
1303
+
<summary>2.1.1</summary>
1304
+
1305
+
- ThemeColor > ThemeUtil
1306
+
- dark mode fix (ThemeUtil)
1307
+
- Button/AboutPage improvements
1308
+
- preference notifyChanged()
1309
+
- ToolbarLayout getToolbarMenuItemView()
1310
+
- OneUI4 Switch
1311
+
- minor changes
1312
+
1313
+
</details>
1314
+
1299
1315
<details>
1300
1316
<summary>2.1.0</summary>
1301
1317
@@ -1343,7 +1359,7 @@ Starting with v2.1.0, the new OneUI 4 design is being added to this library. Sin
1343
1359
- NestedScrollView, RecyclerView, Round Layouts
1344
1360
- and much more (most of the stuff in this release)
0 commit comments