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 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.
10
+
# OneUi Design
11
+
12
+
:warning: v1.3.0: moved from ```de.dlyt.yanndroid.samsung``` to ```de.dlyt.yanndroid.oneui```
13
+
14
+
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/OneUI-Design-Library/raw/master/app/release/app-release.apk). Suggestions, improvements and help are always welcome.
12
15
13
16
Excuse my bad english, feel free to correct it. :)
14
17
@@ -36,6 +39,7 @@ Excuse my bad english, feel free to correct it. :)
@@ -113,7 +117,7 @@ In general, most of the views (see [Progress](#Progress)) are styled automatical
113
117
### DrawerLayout
114
118
"Ready-to-go" DrawerLayout with collapsing toolbar.
115
119
```xml
116
-
<de.dlyt.yanndroid.samsung.layout.DrawerLayout
120
+
<de.dlyt.yanndroid.oneui.layout.DrawerLayout
117
121
android:layout_width="match_parent"
118
122
android:layout_height="match_parent"
119
123
app:drawer_icon="..."
@@ -129,7 +133,7 @@ In general, most of the views (see [Progress](#Progress)) are styled automatical
129
133
130
134
<!--other views-->
131
135
132
-
</de.dlyt.yanndroid.samsung.layout.DrawerLayout>
136
+
</de.dlyt.yanndroid.oneui.layout.DrawerLayout>
133
137
134
138
```
135
139
The view with the ID specified in ```app:drawer_viewId="..."``` will be shown in the drawer and the rest of the children on the main screen.
@@ -181,7 +185,7 @@ public void setDrawerOpen(Boolean open, Boolean animate)
181
185
### ToolbarLayout
182
186
Basically the same as [DrawerLayout](#DrawerLayout) but without the drawer.
183
187
```xml
184
-
<de.dlyt.yanndroid.samsung.layout.ToolbarLayout
188
+
<de.dlyt.yanndroid.oneui.layout.ToolbarLayout
185
189
android:layout_width="match_parent"
186
190
android:layout_height="match_parent"
187
191
app:title="..."
@@ -193,7 +197,7 @@ Basically the same as [DrawerLayout](#DrawerLayout) but without the drawer.
193
197
194
198
<!--children-->
195
199
196
-
</de.dlyt.yanndroid.samsung.layout.ToolbarLayout>
200
+
</de.dlyt.yanndroid.oneui.layout.ToolbarLayout>
197
201
```
198
202
```app:navigationIcon="..."``` is the NavigationIcon of the toolbar. There are already some stock Samsung [icons](#Icons) included in the library, like a drawer and back icon.
199
203
@@ -245,7 +249,7 @@ These are the buttons you can see in the drawer of Samsung apps.
```app:selectedOptionButton="..."``` will select (colored, bold text) the OptionButton with this id. This view can also have other children, for example [DrawerDivider](#DrawerDivider).
@@ -345,7 +349,7 @@ A divider between the [OptionButtons](#OptionButton) on the drawer. It's the sam
@@ -447,7 +451,7 @@ A layout that looks like and has the same functions as the about screen in any S
447
451
android:text="..." />
448
452
449
453
450
-
</de.dlyt.yanndroid.samsung.layout.AboutPage>
454
+
</de.dlyt.yanndroid.oneui.layout.AboutPage>
451
455
```
452
456
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
457
@@ -471,7 +475,7 @@ A SwitchBar like in the wifi or bluetooth settings.
This is for further customization. I added the methode ```getView(int view)``` to some of the custom view to access the views inside it and change them directly. This can be helpful if you want to do something which isn't implemented in the custom views yet as I can't think of all possible uses. Currently this methode is available in OptionButton, AboutPage, DrawerLayout, ToolbarLayout and SplashView (both).
773
779
774
780
## Progress
775
781
@@ -814,6 +820,16 @@ My sample app icon for example:
0 commit comments