Round Layouts - OneUIProject/OneUI-Design-Library GitHub Wiki
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.