初始化项目框架
This commit is contained in:
13
libcolorpickerdialogex/src/main/AndroidManifest.xml
Normal file
13
libcolorpickerdialogex/src/main/AndroidManifest.xml
Normal file
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="cc.winboll.studio.libcolorpickerdialogex" >
|
||||
|
||||
<application>
|
||||
<activity
|
||||
android:name="cc.winboll.studio.LibraryActivity"
|
||||
android:label="@string/lib_name" >
|
||||
</activity>
|
||||
</application>
|
||||
|
||||
</manifest>
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
package cc.winboll.studio;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.os.Bundle;
|
||||
import cc.winboll.studio.libcolorpickerdialogex.R;
|
||||
|
||||
public class LibraryActivity extends Activity {
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.library);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
package cc.winboll.studio.libcolorpickerdialogex;
|
||||
|
||||
import android.app.AlertDialog;
|
||||
import android.content.Context;
|
||||
import android.content.DialogInterface;
|
||||
import com.a4455jkjh.colorpicker.ColorPickerDialog;
|
||||
import com.a4455jkjh.colorpicker.view.ColorPickerLayout;
|
||||
import com.a4455jkjh.colorpicker.view.OnColorChangedListener;
|
||||
import java.lang.CharSequence;
|
||||
import java.lang.Object;
|
||||
|
||||
/**
|
||||
* @Author 豆包&ZhanGSKen<zhangsken@qq.com>
|
||||
* @Date 2026/05/02 15:14
|
||||
*/
|
||||
public class ColorPickerDialogEx extends com.a4455jkjh.colorpicker.ColorPickerDialog {
|
||||
|
||||
public static final String TAG = "ColorPickerDialog";
|
||||
|
||||
public ColorPickerDialogEx(Context context, int p) {
|
||||
super(context, p);
|
||||
}
|
||||
|
||||
public void dismiss() {
|
||||
super.dismiss();
|
||||
}
|
||||
|
||||
public void onClick(DialogInterface dialogInterface, int p) {
|
||||
super.onClick(dialogInterface, p);
|
||||
}
|
||||
|
||||
public ColorPickerDialog setOnColorChangedListener(OnColorChangedListener onColorChangedListener) {
|
||||
return super.setOnColorChangedListener(onColorChangedListener);
|
||||
}
|
||||
|
||||
public ColorPickerDialog setTitle(int p) {
|
||||
return super.setTitle(p);
|
||||
}
|
||||
|
||||
public ColorPickerDialog setTitle(CharSequence charSequence) {
|
||||
return super.setTitle(charSequence);
|
||||
}
|
||||
|
||||
public void show() {
|
||||
super.show();
|
||||
}
|
||||
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 9.2 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 5.1 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 14 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 19 KiB |
11
libcolorpickerdialogex/src/main/res/layout/library.xml
Normal file
11
libcolorpickerdialogex/src/main/res/layout/library.xml
Normal file
@@ -0,0 +1,11 @@
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="center">
|
||||
|
||||
<TextView
|
||||
android:text="@string/text_libraryactivity"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
</LinearLayout>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<style name="AppTheme" parent="@android:style/Theme.Material.Light">
|
||||
</style>
|
||||
</resources>
|
||||
8
libcolorpickerdialogex/src/main/res/values/strings.xml
Normal file
8
libcolorpickerdialogex/src/main/res/values/strings.xml
Normal file
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<string name="lib_name">libdebugtemp</string>
|
||||
<string name="hello_world">Hello world!</string>
|
||||
<string name="text_libraryactivity">LibraryActivity</string>
|
||||
|
||||
</resources>
|
||||
5
libcolorpickerdialogex/src/main/res/values/styles.xml
Normal file
5
libcolorpickerdialogex/src/main/res/values/styles.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<style name="AppTheme" parent="@android:style/Theme.Holo.Light">
|
||||
</style>
|
||||
</resources>
|
||||
Reference in New Issue
Block a user