Style Layout - potatoscript/php GitHub Wiki

  1. Create a Xml file in the drawable folder ex: myStyle.xml
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
    android:shape="rectangle">
    <solid android:color="#FAF5C8" />
    <corners
        android:radius="10dp"
        android:topRightRadius="10dp"
        android:bottomRightRadius="10dp"
        android:bottomLeftRadius="10dp" />
    <stroke
        android:width="1dp"
        android:color="@android:color/black" />
</shape>
  1. Assign the xml shape to the Layout -> android:background="@drawable/myStyle.xml"
<androidx.constraintlayout.widget.ConstraintLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:background="@drawable/myStyle.xml"
    android:layout_width="match_parent"
    android:layout_height="match_parent">
⚠️ **GitHub.com Fallback** ⚠️