Updates the Day Zero onboarding experience on smartphones and small screen devices to a multi‑step, horizontally advancing flow driven by CTA buttons. It introduces distinct layouts per step, a pager animation helper, and updates onboarding logic to support a scalable, multi‑step sequence with minimal duplication. Tablet support is intentionally out of scope and will be handled in a separate PR.
29 lines
1.0 KiB
XML
29 lines
1.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Copyright (c) 2026 The Brave Authors. All rights reserved.
|
|
This Source Code Form is subject to the terms of the Mozilla Public
|
|
License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
-->
|
|
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
|
<item android:state_enabled="false">
|
|
<shape android:shape="rectangle">
|
|
<solid android:color="@color/button_disabled" />
|
|
<corners android:radius="48dp" />
|
|
</shape>
|
|
</item>
|
|
|
|
<item android:state_pressed="true">
|
|
<shape android:shape="rectangle">
|
|
<solid android:color="@color/brave_button_pressed" />
|
|
<corners android:radius="48dp" />
|
|
</shape>
|
|
</item>
|
|
|
|
<item>
|
|
<shape android:shape="rectangle">
|
|
<solid android:color="@color/button_background" />
|
|
<corners android:radius="48dp" />
|
|
</shape>
|
|
</item>
|
|
</selector>
|