replace hover with custom circular menu
This commit is contained in:
BIN
app/src/main/res/drawable/autojs_logo.png
Normal file
BIN
app/src/main/res/drawable/autojs_logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 305 KiB |
8
app/src/main/res/drawable/circle_blue.xml
Normal file
8
app/src/main/res/drawable/circle_blue.xml
Normal file
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:innerRadius="0dp"
|
||||
android:shape="ring"
|
||||
android:thicknessRatio="2"
|
||||
android:useLevel="false">
|
||||
<solid android:color="#42a5f5"/>
|
||||
</shape>
|
||||
8
app/src/main/res/drawable/circle_gray.xml
Normal file
8
app/src/main/res/drawable/circle_gray.xml
Normal file
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:innerRadius="0dp"
|
||||
android:shape="ring"
|
||||
android:thicknessRatio="2"
|
||||
android:useLevel="false">
|
||||
<solid android:color="#C0C0C0"/>
|
||||
</shape>
|
||||
@@ -1,11 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<corners android:radius="32dp"/>
|
||||
<size
|
||||
android:width="64dp"
|
||||
android:height="64dp"/>
|
||||
|
||||
<solid android:color="#5cab7d"/>
|
||||
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:innerRadius="0dp"
|
||||
android:shape="ring"
|
||||
android:thicknessRatio="2"
|
||||
android:useLevel="false">
|
||||
<solid android:color="@color/colorPrimary"/>
|
||||
</shape>
|
||||
11
app/src/main/res/drawable/circle_light_green.xml
Normal file
11
app/src/main/res/drawable/circle_light_green.xml
Normal file
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<corners android:radius="32dp"/>
|
||||
<size
|
||||
android:width="64dp"
|
||||
android:height="64dp"/>
|
||||
|
||||
<solid android:color="#5cab7d"/>
|
||||
|
||||
</shape>
|
||||
8
app/src/main/res/drawable/circle_red.xml
Normal file
8
app/src/main/res/drawable/circle_red.xml
Normal file
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:innerRadius="0dp"
|
||||
android:shape="ring"
|
||||
android:thicknessRatio="2"
|
||||
android:useLevel="false">
|
||||
<solid android:color="#ef5350"/>
|
||||
</shape>
|
||||
8
app/src/main/res/drawable/circle_white.xml
Normal file
8
app/src/main/res/drawable/circle_white.xml
Normal file
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:innerRadius="0dp"
|
||||
android:shape="ring"
|
||||
android:thicknessRatio="2"
|
||||
android:useLevel="false">
|
||||
<solid android:color="@color/colorPrimary"/>
|
||||
</shape>
|
||||
8
app/src/main/res/drawable/circle_yellow.xml
Normal file
8
app/src/main/res/drawable/circle_yellow.xml
Normal file
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:innerRadius="0dp"
|
||||
android:shape="ring"
|
||||
android:thicknessRatio="2"
|
||||
android:useLevel="false">
|
||||
<solid android:color="#fdd835"/>
|
||||
</shape>
|
||||
BIN
app/src/main/res/drawable/ic_circular_menu_bounds.png
Normal file
BIN
app/src/main/res/drawable/ic_circular_menu_bounds.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.0 KiB |
BIN
app/src/main/res/drawable/ic_circular_menu_hierarchy.png
Normal file
BIN
app/src/main/res/drawable/ic_circular_menu_hierarchy.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.9 KiB |
BIN
app/src/main/res/drawable/ic_circular_menu_settings.png
Normal file
BIN
app/src/main/res/drawable/ic_circular_menu_settings.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.2 KiB |
66
app/src/main/res/layout/circular_action_menu.xml
Normal file
66
app/src/main/res/layout/circular_action_menu.xml
Normal file
@@ -0,0 +1,66 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<com.stardust.floatingcircularactionmenu.CircularActionMenu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:clickable="false"
|
||||
app:cam_angle="165"
|
||||
app:cam_radius="80dp">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/script_list"
|
||||
android:layout_width="42dp"
|
||||
android:layout_height="42dp"
|
||||
android:layout_gravity="center"
|
||||
android:background="@drawable/circle_green"
|
||||
android:foreground="?selectableItemBackgroundBorderless"
|
||||
android:padding="8dp"
|
||||
android:src="@drawable/ic_menu"
|
||||
android:tint="@android:color/white"/>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/record"
|
||||
android:layout_width="42dp"
|
||||
android:layout_height="42dp"
|
||||
android:layout_gravity="center"
|
||||
android:background="@drawable/circle_red"
|
||||
android:foreground="?selectableItemBackgroundBorderless"
|
||||
android:padding="8dp"
|
||||
android:src="@drawable/ic_ali_record"/>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/layout_bounds"
|
||||
android:layout_width="42dp"
|
||||
android:layout_height="42dp"
|
||||
android:layout_gravity="center"
|
||||
android:background="@drawable/circle_blue"
|
||||
android:foreground="?selectableItemBackgroundBorderless"
|
||||
android:padding="8dp"
|
||||
android:src="@drawable/ic_circular_menu_bounds"
|
||||
android:tint="@android:color/white"/>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/layout_hierarchy"
|
||||
android:layout_width="42dp"
|
||||
android:layout_height="42dp"
|
||||
android:layout_gravity="center"
|
||||
android:background="@drawable/circle_yellow"
|
||||
android:foreground="?selectableItemBackgroundBorderless"
|
||||
android:padding="10dp"
|
||||
android:src="@drawable/ic_circular_menu_hierarchy"
|
||||
android:tint="@android:color/white"/>
|
||||
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/settings"
|
||||
android:layout_width="42dp"
|
||||
android:layout_height="42dp"
|
||||
android:layout_gravity="center"
|
||||
android:background="@drawable/circle_gray"
|
||||
android:foreground="?selectableItemBackgroundBorderless"
|
||||
android:padding="8dp"
|
||||
android:src="@drawable/ic_circular_menu_settings"
|
||||
android:tint="@android:color/white"/>
|
||||
|
||||
|
||||
</com.stardust.floatingcircularactionmenu.CircularActionMenu>
|
||||
12
app/src/main/res/layout/circular_action_view.xml
Normal file
12
app/src/main/res/layout/circular_action_view.xml
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<ImageView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/icon"
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="48dp"
|
||||
android:src="@drawable/autojs_logo"/>
|
||||
</LinearLayout>
|
||||
@@ -26,7 +26,7 @@
|
||||
android:layout_height="40dp"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_marginLeft="8dp"
|
||||
android:background="@drawable/circle_green"
|
||||
android:background="@drawable/circle_light_green"
|
||||
android:gravity="center"
|
||||
android:textColor="@android:color/white"
|
||||
android:textSize="24sp"
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
android:layout_height="40dp"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_marginLeft="8dp"
|
||||
android:background="@drawable/circle_green"
|
||||
android:background="@drawable/circle_light_green"
|
||||
android:gravity="center"
|
||||
android:textColor="@android:color/white"
|
||||
android:textSize="24sp"
|
||||
|
||||
Reference in New Issue
Block a user