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.
A library for Android, which makes your app look like Samsung's OneUI. In this library, there is a theme which will apply for each view (see [Progress](#Progress)) in your layout. Of course it also has dark mode and even landscape/dex support. The texts which are the custom views are all translated to 90 languages, so you don't need to worry for these. This library has been tested in AndroidStudio, but should work in other IDEs too. You can try out the latest example [here](https://github.com/Yanndroid/SamsungOneUi/raw/master/app/release/app-release.apk).
11
+
A library for Android, which makes your app look like Samsung's OneUI 3. In this library, there is a theme which will apply for each view (see [Progress](#Progress)) in your layout. Of course it also has dark mode and even landscape/dex support. The text which is in the custom views is translated to 90 languages, so you don't need to worry for these. This library has been tested in AndroidStudio, but should work in other IDEs too. You can try out the latest example [here](https://github.com/Yanndroid/SamsungOneUi/raw/master/app/release/app-release.apk). Suggestions, improvements and help are always welcome.
12
12
13
13
Excuse my bad english, feel free to correct it. :)
14
14
@@ -23,7 +23,9 @@ Excuse my bad english, feel free to correct it. :)
23
23
-[DrawerDivider](#DrawerDivider)
24
24
-[SplashViewSimple](#SplashViewSimple)
25
25
-[SplashViewAnimated](#SplashViewAnimated)
26
+
-[AboutPage](#AboutPage)
26
27
-[SwitchBar](#SwitchBar)
28
+
-[RelatedCard](#RelatedCard)
27
29
-[SeekBar](#SeekBar)
28
30
-[ProgressBar](#ProgressBar)
29
31
-[Button](#Button)
@@ -59,7 +61,7 @@ allprojects {
59
61
2. Add the dependency to build.gradle (Module: ...)
In general most of the views (see [Progress](#Progress)) are styled automatically when you set ```android:theme="@style/SamsungTheme"``` in AndroidManifest.xml.
111
+
In general, most of the views (see [Progress](#Progress)) are styled automatically when you set ```android:theme="@style/SamsungTheme"``` in AndroidManifest.xml.
110
112
111
113
### DrawerLayout
112
114
"Ready-to-go" DrawerLayout with collapsing toolbar.
@@ -115,14 +117,14 @@ In general most of the views (see [Progress](#Progress)) are styled automaticall
115
117
android:layout_width="match_parent"
116
118
android:layout_height="match_parent"
117
119
app:drawer_icon="..."
118
-
app:drawer_viewId="@id/viewindrawer"
120
+
app:drawer_viewId="@id/viewInDrawer"
119
121
app:toolbar_subtitle="..."
120
122
app:toolbar_title="..."
121
123
app:toolbar_expanded="..."
122
124
app:toolbar_expandable="...">
123
125
124
126
<View
125
-
android:id="@+id/viewindrawer"
127
+
android:id="@+id/viewInDrawer"
126
128
... />
127
129
128
130
<!--other views-->
@@ -429,6 +431,44 @@ Listener for the splash animation
The app name and version are automatically added to the view. The info icon at the top right will redirect the user to the app info in settings. The ```app:optional_text="..."``` is the text between the version and the status text. The status text will change according to the state you set the view (see below). You can use ```style="@style/ButtonStyle.AboutPage"``` for the buttons, which are shown at the bottom.
453
+
:warning: For the back button (top left) to work you need to call this methode in your activity ```aboutPage.initAboutPage(this);```
454
+
455
+
#### Methods
456
+
Essential for the back button to work.
457
+
```java
458
+
publicvoid initAboutPage(Activity activity)
459
+
```
460
+
Set the update state of the view to either ```AboutPage.LOADING```, ```AboutPage.NO_UPDATE``` or ```AboutPage.UPDATE_AVAILABLE```. This will change the visibility of certain views and the text of the Status.
461
+
```java
462
+
publicvoid setUpdateState(@UpdateStateint state)
463
+
```
464
+
Set the optional text between the version and the status text.
0 commit comments