mirror of
https://github.com/TonyJiangWJ/Auto.js.git
synced 2026-06-21 21:01:43 +08:00
change circular menu icon
This commit is contained in:
parent
02ec8f7fb5
commit
346487b0ef
@ -5,6 +5,7 @@ import android.content.Intent;
|
||||
import android.text.TextUtils;
|
||||
import android.view.ContextThemeWrapper;
|
||||
import android.view.View;
|
||||
import android.view.WindowManager;
|
||||
import android.widget.ImageView;
|
||||
import android.widget.Toast;
|
||||
|
||||
@ -64,7 +65,7 @@ public class CircularMenu implements Recorder.OnStateChangedListener {
|
||||
public static final int STATE_NORMAL = 0;
|
||||
public static final int STATE_RECORDING = 1;
|
||||
|
||||
private static final int IC_ACTION_VIEW = R.drawable.ic_circular_menu;
|
||||
private static final int IC_ACTION_VIEW = R.drawable.ic_android_eat_js;
|
||||
|
||||
CircularActionMenuFloatingWindow mWindow;
|
||||
private int mState;
|
||||
@ -112,7 +113,7 @@ public class CircularMenu implements Recorder.OnStateChangedListener {
|
||||
return menu;
|
||||
}
|
||||
});
|
||||
mWindow.setKeepToSideHiddenWidthRadio(0.3f);
|
||||
mWindow.setKeepToSideHiddenWidthRadio(0.25f);
|
||||
FloatyService.addWindow(mWindow);
|
||||
}
|
||||
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 116 KiB |
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="#ffffff"/>
|
||||
</shape>
|
||||
@ -1,12 +1,17 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout 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: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/ic_circular_menu"/>
|
||||
<com.makeramen.roundedimageview.RoundedImageView
|
||||
android:id="@+id/icon"
|
||||
android:layout_width="42dp"
|
||||
android:layout_height="42dp"
|
||||
android:background="@drawable/circle_white"
|
||||
android:padding="5dp"
|
||||
android:src="@drawable/ic_android_eat_js"
|
||||
app:riv_corner_radius="16dp"
|
||||
app:riv_oval="true"/>
|
||||
</LinearLayout>
|
||||
@ -0,0 +1,13 @@
|
||||
package com.stardust.autojs.core.floaty;
|
||||
|
||||
import com.stardust.enhancedfloaty.ResizableFloaty;
|
||||
import com.stardust.enhancedfloaty.ResizableFloatyWindow;
|
||||
|
||||
/**
|
||||
* Created by Stardust on 2017/12/5.
|
||||
*/
|
||||
|
||||
public class FloatyWindow {
|
||||
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user