mirror of
https://github.com/jrpie/Launcher.git
synced 2025-04-19 18:30:50 +02:00
Add dotted bottom progress to swipeable tutorial
Closes #10 Now one can't exit the tutorial, this will be fixed before merging
This commit is contained in:
parent
d0201f02a0
commit
3703c5e344
5 changed files with 49 additions and 4 deletions
12
app/src/main/res/drawable/tutorial_default_dot.xml
Normal file
12
app/src/main/res/drawable/tutorial_default_dot.xml
Normal file
|
@ -0,0 +1,12 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item>
|
||||
<shape
|
||||
android:innerRadius="0dp"
|
||||
android:shape="ring"
|
||||
android:thickness="5dp"
|
||||
android:useLevel="false">
|
||||
<solid android:color="#777"/>
|
||||
</shape>
|
||||
</item>
|
||||
</layer-list>
|
12
app/src/main/res/drawable/tutorial_selected_dot.xml
Normal file
12
app/src/main/res/drawable/tutorial_selected_dot.xml
Normal file
|
@ -0,0 +1,12 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item>
|
||||
<shape
|
||||
android:innerRadius="0dp"
|
||||
android:shape="ring"
|
||||
android:thickness="5dp"
|
||||
android:useLevel="false">
|
||||
<solid android:color="#ddd"/>
|
||||
</shape>
|
||||
</item>
|
||||
</layer-list>
|
8
app/src/main/res/drawable/tutorial_tab_selector.xml
Normal file
8
app/src/main/res/drawable/tutorial_tab_selector.xml
Normal file
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<item android:drawable="@drawable/tutorial_selected_dot"
|
||||
android:state_selected="true"/>
|
||||
|
||||
<item android:drawable="@drawable/tutorial_default_dot"/>
|
||||
</selector>
|
Loading…
Add table
Add a link
Reference in a new issue