This repository was archived by the owner on Sep 3, 2024. It is now read-only.
-
Couldn't load subscription status.
- Fork 30
Round Layouts
Yanndroid edited this page Jan 27, 2022
·
2 revisions
de.dlyt.yanndroid.oneui.widget.RoundLinearLayout
de.dlyt.yanndroid.oneui.widget.RoundFrameLayout
de.dlyt.yanndroid.oneui.widget.RoundNestedScrollView
LinearLayout, FrameLayout and NestedScrollView with rounded corners. Usage is the same as their parents view.
<de.dlyt.yanndroid.oneui.widget.RoundLinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
app:roundedCorners="...">
</de.dlyt.yanndroid.oneui.widget.RoundLinearLayout>
<de.dlyt.yanndroid.oneui.widget.RoundFrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
app:roundedCorners="...">
</de.dlyt.yanndroid.oneui.widget.RoundFrameLayout>
<de.dlyt.yanndroid.oneui.widget.RoundNestedScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
app:roundedCorners="...">
</de.dlyt.yanndroid.oneui.widget.RoundNestedScrollView>To choose which corners are rounded use app:roundedCorners. Available are all (default), none, bottom_left, bottom_right, top_left and top_right (you can separate them with "|", to use multiple once). Note that DrawerLayout, ToolbarLayout and SwitchBarLayout already have rounded corners on their main content.
BlackMesa123 - OneUI Design Library - Yanndroid