android.graphics.drawable.RippleDrawable

E/dalvikvm: Could not find class 'android.graphics.drawable.RippleDrawable', referenced from method android.support.v7.widget.AppCompatImageHelper.hasOverlappingRendering

百度愣是没找到解决答案。有没有大神知道怎么解决

4个回答

看看你应用支持的android版本是否是android 5.X以上

在res目录下建一个drawable-21文件夹,把你用到ripple结点的xml文件放在这个文件夹下,不要删除原来drawable文件夹下的文件,把里边的ripple改成shape或者其它效果,5.x以下版本不支持ripple效果

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
调试接口遇到这个问题,哪儿大神帮解决一下
E/dalvikvm: Could not find class 'android.graphics.drawable.RippleDrawable', referenced from method android.support.v7.widget.AppCompatImageHelper.hasOverlappingRendering
Android 6.0集合高德地图定位的时候无报错调试闪退?
我的手机版本是android 6.0的,调用高德定位SDK之后手机闪退 LOGCAT显示 1. I/art: Late-enabling -Xcheck:jni 1. 06-23 22:40:40.121 29863-29863/com.edu.swufe.location W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter androidx.vectordrawable.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable 1. 06-23 22:40:40.542 29863-29863/com.edu.swufe.location I/Process: Sending signal. PID: 29863 SIG: 9 我的tarSdkVision是23,但是插入了动态权限管理,在安装APK的时候也询问了权限。
android 真机5.0之下出现问题
E/dalvikvm: Could not find class 'android.graphics.drawable.RippleDrawable', referenced from method android.support.v7.widget.AppCompatImageHelper.hasOverlappingRendering 看了好多是说gradle mSdkversion版本过低 我的并没有,用的是19,在4.4版本手机上测试 minSdkVersion 19 也没有使用自定义控件 所以就很奇怪 哪位大神知道怎么解决呢
其他手机都可以正常运行,只有三星手机一到setContentView就出现错误
其他手机都可以正常运行,只有三星手机一到setContentView就出现错误 异常如下:E/AndroidRuntime: FATAL EXCEPTION: main Process: fansir.com.piledoctor, PID: 15576 java.lang.RuntimeException: Unable to start activity ComponentInfo{fansir.com.piledoctor/fansir.com.piledoctor.LoginActivity}: android.view.InflateException: Binary XML file line #87: Error inflating class TextView at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2319) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2370) at android.app.ActivityThread.access$800(ActivityThread.java:155) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1243) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:136) at android.app.ActivityThread.main(ActivityThread.java:5426) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1268) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1084) at dalvik.system.NativeStart.main(Native Method) Caused by: android.view.InflateException: Binary XML file line #87: Error inflating class TextView at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:720) at android.view.LayoutInflater.rInflate(LayoutInflater.java:762) at android.view.LayoutInflater.rInflate(LayoutInflater.java:771) at android.view.LayoutInflater.inflate(LayoutInflater.java:499) at android.view.LayoutInflater.inflate(LayoutInflater.java:398) at android.view.LayoutInflater.inflate(LayoutInflater.java:354) at android.support.v7.app.AppCompatDelegateImpl.setContentView(AppCompatDelegateImpl.java:469) at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:140) at fansir.com.piledoctor.LoginActivity.onCreate(LoginActivity.java:55) at android.app.Activity.performCreate(Activity.java:5301) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1094) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2283) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2370)  at android.app.ActivityThread.access$800(ActivityThread.java:155)  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1243)  at android.os.Handler.dispatchMessage(Handler.java:102)  at android.os.Looper.loop(Looper.java:136)  at android.app.ActivityThread.main(ActivityThread.java:5426)  at java.lang.reflect.Method.invokeNative(Native Method)  at java.lang.reflect.Method.invoke(Method.java:515)  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1268)  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1084)  at dalvik.system.NativeStart.main(Native Method)  Caused by: android.content.res.Resources$NotFoundException: File res/drawable/visibility_yesorno.xml from drawable resource ID #0x7f08021c at android.content.res.Resources.loadDrawable(Resources.java:3448) at android.content.res.TypedArray.getDrawable(TypedArray.java:603) at android.view.View.<init>(View.java:3573) at android.widget.TextView.<init>(TextView.java:676) at android.support.v7.widget.AppCompatTextView.<init>(AppCompatTextView.java:87) at android.support.v7.widget.AppCompatTextView.<init>(AppCompatTextView.java:83) at android.support.v7.app.AppCompatViewInflater.createTextView(AppCompatViewInflater.java:177) at android.support.v7.app.AppCompatViewInflater.createView(AppCompatViewInflater.java:102) at android.support.v7.app.AppCompatDelegateImpl.createView(AppCompatDelegateImpl.java:1266) at android.support.v7.app.AppCompatDelegateImpl.onCreateView(AppCompatDelegateImpl.java:1316) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:691) at android.view.LayoutInflater.rInflate(LayoutInflater.java:762)  at android.view.LayoutInflater.rInflate(LayoutInflater.java:771)  at android.view.LayoutInflater.inflate(LayoutInflater.java:499)  at android.view.LayoutInflater.inflate(LayoutInflater.java:398)  at android.view.LayoutInflater.inflate(LayoutInflater.java:354)  at android.support.v7.app.AppCompatDelegateImpl.setContentView(AppCompatDelegateImpl.java:469)  at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:140)  at fansir.com.piledoctor.LoginActivity.onCreate(LoginActivity.java:55)  at android.app.Activity.performCreate(Activity.java:5301)  at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1094)  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2283)  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2370)  at android.app.ActivityThread.access$800(ActivityThread.java:155)  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1243)  at android.os.Handler.dispatchMessage(Handler.java:102)  at android.os.Looper.loop(Looper.java:136)  at android.app.ActivityThread.main(ActivityThread.java:5426)  at java.lang.reflect.Method.invokeNative(Native Method)  at java.lang.reflect.Method.invoke(Method.java:515)  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1268)  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1084)  at dalvik.system.NativeStart.main(Native Method)  Caused by: android.content.res.Resources$NotFoundException: File res/drawable/ic_visibility.xml from drawable resource ID #0x7f08017e at android.content.res.Resources.loadDrawable(Resources.java:3448) at android.content.res.Resources.getDrawable(Resources.java:1892) at android.graphics.drawable.StateListDrawable.inflate(StateListDrawable.java:176) at android.graphics.drawable.Drawable.createFromXmlInner(Drawable.java:973) at android.graphics.drawable.Drawable.createFromXml(Drawable.java:913) at android.content.res.Resources.loadDrawable(Resources.java:3444) at android.content.res.TypedArray.getDrawable(TypedArray.java:603)  at android.view.View.<init>(View.java:3573)  at android.widget.TextView.<init>(TextView.java:676)  at android.support.v7.widget.AppCompatTextView.<init>(AppCompatTextView.java:87)  at android.support.v7.widget.AppCompatTextView.<init>(AppCompatTextView.java:83)  at android.support.v7.app.AppCompatViewInflater.createTextView(AppCompatViewInflater.java:177)  at android.support.v7.app.AppCompatViewInflater.createView(AppCompatViewInflater.java:102)  at android.support.v7.app.AppCompatDelegateImpl.createView(AppCompatDelegateImpl.java:1266)  at android.support.v7.app.AppCompatDelegateImpl.onCreateView(AppCompatDelegateImpl.java:1316)  at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:691)  at android.view.LayoutInflater.rInflate(LayoutInflater.java:762)  at android.view.LayoutInflater.rInflate(LayoutInflater.java:771)  at android.view.LayoutInflater.inflate(LayoutInflater.java:499)  at android.view.LayoutInflater.inflate(LayoutInflater.java:398)  at android.view.LayoutInflater.inflate(LayoutInflater.java:354)  at android.support.v7.app.AppCompatDelegateImpl.setContentView(AppCompatDelegateImpl.java:469)  at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:140)  at fansir.com.piledoctor.LoginActivity.onCreate(LoginActivity.java:55)  at android.app.Activity.performCreate(Activity.java:5301)  at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1094)  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2283)  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2370)  at android.app.ActivityThread.access$800(ActivityThread.java:155)  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1243)  at android.os.Handler.dispatchMessage(Handler.java:102)  at android.os.Looper.loop(Looper.java:136)  at android.app.ActivityThread.main(ActivityThread.java:5426)  at java.lang.reflect.Method.invokeNative(Native Method)  at java.lang.reflect.Method.invoke(Method.java:515)  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1268)  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1084)  at dalvik.system.NativeStart.main(Native Method)  Caused by: org.xmlpull.v1.XmlPullParserException: Binary XML file line #1: invalid drawable tag vector at android.graphics.drawable.Drawable.createFromXmlInner(Drawable.java:969) at android.graphics.drawable.Drawable.createFromXml(Drawable.java:913) at android.content.res.Resources.loadDrawable(Resources.java:3444) at android.content.res.Resources.getDrawable(Resources.java:1892)  at android.graphics.drawable.StateListDrawable.inflate(StateListDrawable.java:176)  at android.graphics.drawable.Drawable.createFromXmlInner(Drawable.java:973)  at android.graphics.drawable.Drawable.createFromXml(Drawable.java:913)  at android.content.res.Resources.loadDrawable(Resources.java:3444)  at android.content.res.TypedArray.getDrawable(TypedArray.java:603)  at android.view.View.<init>(View.java:3573)  at android.widget.TextView.<init>(TextView.java:676)  at android.support.v7.widget.AppCompatTextView.<init>(AppCompatTextView.java:87)  at android.support.v7.widget.AppCompatTextView.<init>(AppCompatTextView.java:83)  at android.support.v7.app.AppCompatViewInflater.createTextView(AppCompatViewInflater.java:177)  at android.support.v7.app.AppCompatViewInflater.createView(AppCompatViewInflater.java:102)  at android.support.v7.app.AppCompatDelegateImpl.createView(AppCompatDelegateImpl.java:1266)  at android.support.v7.app.AppCompatDelegateImpl.onCreateView(AppCompatDelegateImpl.java:1316)  at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:691)  at android.view.LayoutInflater.rInflate(LayoutInflater.java:762)  at android.view.LayoutInflater.rInflate(LayoutInflater.java:771)  at android.view.LayoutInflater.inflate(LayoutInflater.java:499)  at android.view.LayoutInflater.inflate(LayoutInflater.java:398)  at android.view.LayoutInflater.inflate(LayoutInflater.java:354)  at android.support.v7.app.AppCompatDelegateImpl.setContentView(AppCompatDelegateImpl.java:469)  at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:140)  at fansir.com.piledoctor.LoginActivity.onCreate(LoginActivity.java:55)  at android.app.Activity.performCreate(Activity.java:5301)  at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1094)  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2283)  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2370)  at android.app.ActivityThread.access$800(ActivityThread.java:155)  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1243)  at android.os.Handler.dispatchMessage(Handler.java:102)  at android.os.Looper.loop(Looper.java:136)  at android.app.ActivityThread.main(ActivityThread.java:5426)  at java.lang.reflect.Method.invokeNative(Native Method)  at java.lang.reflect.Method.invoke(Method.java:515)  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1268)  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1084)  at dalvik.system.NativeStart.main(Native Method) 
只要在xml布局中加入FloathingActionButton导致app运行崩溃
我的运行环境compileSdkVersion 24 buildToolsVersion "24.0.2" 我导入的是compile 'com.android.support:design:24.2.0'。 布局中是这样写的 <android.support.design.widget.FloatingActionButton android:src="@drawable/btn_bottom_back" android:alpha="0.9" android:layout_margin="20dp" android:backgroundTint="#111" android:layout_width="45dp" android:layout_height="45dp" /> 我觉得没有任何问题。 一跳转到activity就崩溃。 注册:<activity android:name=".activity.JingXuanArticleActivity"/> 报错内容为: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.wenny.themost/com.wenny.themost.activity.JingXuanArticleActivity}: android.view.InflateException: Binary XML file line #98: Binary XML file line #98: Error inflating class android.support.design.widget.FloatingActionButton Caused by: android.view.InflateException: Binary XML file line #98: Binary XML file line #98: Error inflating class android.support.design.widget.FloatingActionButton Caused by: android.view.InflateException: Binary XML file line #98: Error inflating class android.support.design.widget.FloatingActionButton Caused by: java.lang.reflect.InvocationTargetException at java.lang.reflect.Constructor.newInstance(Native Method) Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'android.graphics.drawable.Drawable android.graphics.drawable.Drawable$ConstantState.newDrawable()' on a null object reference
Android接入穿山甲SDK冲突java.lang.VerifyError
一加载就遇到了冲突问题,改用Glide好了,但视频还是有问题,它内部有调用 AQuery类 请大佬给解决方案 java.lang.VerifyError Verifier rejected class com.androidquery.callback.DrawableAjaxCallback: android.graphics.drawable.Drawable com.androidquery.callback.Drawabltring (declaration of 'com.androidque 出错堆栈 1 com.androidquery.callback.DrawableAjaxCallback.async(DrawableAjaxCallback.java) 2 com.androidquery.callback.AQuery2.a(AQuery2.java:74) 3 com.androidquery.callback.AQuery2.image(AQuery2.java:19) 4 com.androidquery.AbstractAQuery.image(AbstractAQuery.java:789)
Android 一用charAt()就卡退了
不知道怎么回事。。 ``` package com.example.lenovo.myapplication; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.Toast; public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); Button button = (Button)findViewById(R.id.button); button.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { Toast.makeText(MainActivity.this,"123456".charAt(2),Toast.LENGTH_SHORT).show(); } }); } } ``` ![图片说明](https://img-ask.csdn.net/upload/201911/04/1572859721_587300.png) 报错: ``` 11/04 17:21:36: Launching app $ adb push D:\study\Android\MyApplication2\app\build\outputs\apk\app-debug.apk /data/local/tmp/com.example.lenovo.myapplication $ adb shell pm install -r "/data/local/tmp/com.example.lenovo.myapplication" Success $ adb shell am start -n "com.example.lenovo.myapplication/com.example.lenovo.myapplication.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER Connected to process 4133 on device Nexus_5_API_24 [emulator-5554] W/System: ClassLoader referenced unknown path: /data/app/com.example.lenovo.myapplication-1/lib/x86 I/InstantRun: Instant Run Runtime started. Android package is com.example.lenovo.myapplication, real application class is null. W/System: ClassLoader referenced unknown path: /data/app/com.example.lenovo.myapplication-1/lib/x86 W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable W/gralloc_ranchu: Gralloc pipe failed [ 11-04 09:21:43.377 4133: 4133 D/ ] HostConnection::get() New Host Connection established 0xa63882c0, tid 4133 [ 11-04 09:21:43.425 4133: 4224 D/ ] HostConnection::get() New Host Connection established 0xa6388740, tid 4224 I/OpenGLRenderer: Initialized EGL, version 1.4 D/OpenGLRenderer: Swap behavior 1 W/ResourceType: No package identifier when getting value for resource number 0x00000033 D/AndroidRuntime: Shutting down VM E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.lenovo.myapplication, PID: 4133 android.content.res.Resources$NotFoundException: String resource ID #0x33 at android.content.res.Resources.getText(Resources.java:331) at android.widget.Toast.makeText(Toast.java:287) at com.example.lenovo.myapplication.MainActivity$1.onClick(MainActivity.java:19) at android.view.View.performClick(View.java:5610) at android.view.View$PerformClick.run(View.java:22260) at android.os.Handler.handleCallback(Handler.java:751) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:154) at android.app.ActivityThread.main(ActivityThread.java:6077) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755) Application terminated. ```
有什么方法可以迭代整个 R.raw,R.drawable 或者任何 R 类吗?
有什么方法可以迭代整个 R.raw,R.drawable 或者任何 R 类吗?我想通过 iterate 动态的来逐条获取这些文件夹的每一个id。 ArrayList resArray = new ArrayList(); foreach(int id : R.raw) { resArray.add(id); } 有什么方法可以实现?
Universal-Image-Loader初始化的时候,固定图片的大小,请问配置文件怎么修改?
showImageForEmptyUri绑定的大小和下载的大小不同,请问怎么固定图片大小?下面是我的配置 .showImageOnLoading(R.drawable.video_default) .showImageForEmptyUri(R.drawable.image_background_empty) .showImageOnFail(R.drawable.image_background_erro) .cacheInMemory(false) .cacheOnDisk(true) .considerExifParams(true) .imageScaleType(ImageScaleType.IN_SAMPLE_INT) .bitmapConfig(Bitmap.Config.RGB_565) .decodingOptions(android.graphics.BitmapFactory.Options decodingOptions) .delayBeforeLoading(0) .resetViewBeforeLoading(true) .displayer(new FadeInBitmapDisplayer(100)) .build();
Android使用Xutils3下载安装apk报错问题,求解
1.根据xutils3的文档说明,创建了一个类对xutils进行初始化 ``` public class MyApp extends Application { @Override public void onCreate() { super.onCreate(); x.Ext.init(this); x.Ext.setDebug(false); } } ``` 2.然后在配置文件中做了如下配置 ``` <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" package="com.gao.mysafe"> <uses-permission android:name="android.permission.INTERNET"/> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> <uses-permission android:name="android.permission.INSTALL_PACKAGES" tools:ignore="ProtectedPermissions" /> <application android:name=".MyApp" android:allowBackup="true" android:icon="@mipmap/safe_launcher" android:label="@string/app_name" android:supportsRtl="true" android:theme="@style/AppTheme"> <activity android:name=".SplashActivity"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> <activity android:name=".MainActivity"></activity> </application> </manifest> ``` 3.在activity中调用了xutils的下载方法 ``` //apk下载地址,放置apk的路径 //1.获取sd卡路径 String path = Environment.getExternalStorageDirectory().getPath() + "/mysafe.apk"; //2.发送请求,获取apk,并放到指定路径 RequestParams rp = new RequestParams(url); rp.setSaveFilePath(path); rp.setAutoRename(true); x.http().get(rp, new Callback.ProgressCallback<File>() { //下载成功 @Override public void onSuccess(File result) { ToastUtils.show(SplashActivity.this, "下载成功,开始安装!!"); installAPK(result); } //下载出现问题 @Override public void onError(Throwable ex, boolean isOnCallback) { } @Override public void onCancelled(CancelledException cex) { } @Override public void onFinished() { } @Override public void onWaiting() { } //刚刚开始下载 @Override public void onStarted() { } //下载过程中方法 @Override public void onLoading(long total, long current, boolean isDownloading) { } }); ``` 然后在模拟器中出现了如下问题 ``` D/dalvikvm: Not late-enabling CheckJNI (already on) I/InstantRun: Instant Run Runtime started. Android package is com.gao.mysafe, real application class is com.gao.mysafe.MyApp. W/InstantRun: No instant run dex files added to classpath D/dalvikvm: GC_FOR_ALLOC freed 68K, 5% free 2929K/3056K, paused 2ms, total 3ms I/dalvikvm-heap: Grow heap (frag case) to 34.554MB for 33177612-byte allocation D/dalvikvm: GC_FOR_ALLOC freed <1K, 1% free 35328K/35460K, paused 5ms, total 5ms D/OpenGLRenderer: Enabling debug mode 0 I/dalvikvm: Could not find method android.view.Window$Callback.onProvideKeyboardShortcuts, referenced from method android.support.v7.view.WindowCallbackWrapper.onProvideKeyboardShortcuts W/dalvikvm: VFY: unable to resolve interface method 16550: Landroid/view/Window$Callback;.onProvideKeyboardShortcuts (Ljava/util/List;Landroid/view/Menu;I)V D/dalvikvm: VFY: replacing opcode 0x72 at 0x0002 W/dalvikvm: VFY: unable to find class referenced in signature (Landroid/view/SearchEvent;) I/dalvikvm: Could not find method android.view.Window$Callback.onSearchRequested, referenced from method android.support.v7.view.WindowCallbackWrapper.onSearchRequested W/dalvikvm: VFY: unable to resolve interface method 16552: Landroid/view/Window$Callback;.onSearchRequested (Landroid/view/SearchEvent;)Z D/dalvikvm: VFY: replacing opcode 0x72 at 0x0002 I/dalvikvm: Could not find method android.view.Window$Callback.onWindowStartingActionMode, referenced from method android.support.v7.view.WindowCallbackWrapper.onWindowStartingActionMode W/dalvikvm: VFY: unable to resolve interface method 16556: Landroid/view/Window$Callback;.onWindowStartingActionMode (Landroid/view/ActionMode$Callback;I)Landroid/view/ActionMode; D/dalvikvm: VFY: replacing opcode 0x72 at 0x0002 I/dalvikvm: Could not find method android.content.res.TypedArray.getChangingConfigurations, referenced from method android.support.v7.widget.TintTypedArray.getChangingConfigurations W/dalvikvm: VFY: unable to resolve virtual method 747: Landroid/content/res/TypedArray;.getChangingConfigurations ()I D/dalvikvm: VFY: replacing opcode 0x6e at 0x0002 I/dalvikvm: Could not find method android.content.res.TypedArray.getType, referenced from method android.support.v7.widget.TintTypedArray.getType W/dalvikvm: VFY: unable to resolve virtual method 769: Landroid/content/res/TypedArray;.getType (I)I D/dalvikvm: VFY: replacing opcode 0x6e at 0x0008 I/dalvikvm: Could not find method android.content.res.Resources.getDrawable, referenced from method android.support.v7.widget.ResourcesWrapper.getDrawable W/dalvikvm: VFY: unable to resolve virtual method 710: Landroid/content/res/Resources;.getDrawable (ILandroid/content/res/Resources$Theme;)Landroid/graphics/drawable/Drawable; D/dalvikvm: VFY: replacing opcode 0x6e at 0x0002 I/dalvikvm: Could not find method android.content.res.Resources.getDrawableForDensity, referenced from method android.support.v7.widget.ResourcesWrapper.getDrawableForDensity W/dalvikvm: VFY: unable to resolve virtual method 712: Landroid/content/res/Resources;.getDrawableForDensity (IILandroid/content/res/Resources$Theme;)Landroid/graphics/drawable/Drawable; D/dalvikvm: VFY: replacing opcode 0x6e at 0x0002 E/dalvikvm: Could not find class 'android.graphics.drawable.RippleDrawable', referenced from method android.support.v7.widget.AppCompatImageHelper.hasOverlappingRendering W/dalvikvm: VFY: unable to resolve instanceof 158 (Landroid/graphics/drawable/RippleDrawable;) in Landroid/support/v7/widget/AppCompatImageHelper; D/dalvikvm: VFY: replacing opcode 0x20 at 0x000c I/dalvikvm: Could not find method android.content.Context.getColorStateList, referenced from method android.support.v7.content.res.AppCompatResources.getColorStateList W/dalvikvm: VFY: unable to resolve virtual method 470: Landroid/content/Context;.getColorStateList (I)Landroid/content/res/ColorStateList; D/dalvikvm: VFY: replacing opcode 0x6e at 0x0006 ``` 4.调用安装方法后也出现了错误 ``` private void installAPK(File file) { //系统应用界面,源码,安装apk入口 Intent intent = new Intent(Intent.ACTION_VIEW); intent.addCategory("android.intent.category.DEFAULT"); //文件作为数据源 intent.setData(Uri.fromFile(file)); //设置安装类型 intent.setType("application/vnd.android.package-archive"); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); /* 也可以用下面代码一行完成 intent.setDataAndType(Uri.fromFile(file),"application/vnd.android.package-archive"); */ try{ startActivityForResult(intent, 0); }catch (Exception e){ e.printStackTrace(); } } ``` 问题如下: ``` D/dalvikvm: GC_FOR_ALLOC freed 422K, 2% free 36957K/37436K, paused 3ms, total 3ms W/System.err: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW cat=[android.intent.category.DEFAULT] typ=application/vnd.android.package-archive flg=0x10000000 } W/System.err: at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1632) W/System.err: at android.app.Instrumentation.execStartActivity(Instrumentation.java:1424) W/System.err: at android.app.Activity.startActivityForResult(Activity.java:3424) W/System.err: at android.app.Activity.startActivityForResult(Activity.java:3385) W/System.err: at com.gao.mysafe.SplashActivity.installAPK(SplashActivity.java:338) W/System.err: at com.gao.mysafe.SplashActivity.access$500(SplashActivity.java:30) W/System.err: at com.gao.mysafe.SplashActivity$6.onSuccess(SplashActivity.java:280) W/System.err: at com.gao.mysafe.SplashActivity$6.onSuccess(SplashActivity.java:275) W/System.err: at org.xutils.http.HttpTask.onSuccess(HttpTask.java:447) W/System.err: at org.xutils.common.task.TaskProxy$InternalHandler.handleMessage(TaskProxy.java:198) W/System.err: at android.os.Handler.dispatchMessage(Handler.java:102) W/System.err: at android.os.Looper.loop(Looper.java:136) W/System.err: at android.app.ActivityThread.main(ActivityThread.java:5017) W/System.err: at java.lang.reflect.Method.invokeNative(Native Method) W/System.err: at java.lang.reflect.Method.invoke(Method.java:515) W/System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779) W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595) W/System.err: at dalvik.system.NativeStart.main(Native Method) ``` 弄了半天不知道是什么问题,在真机上也不好使,安装不上,求大神解答一下,谢谢了!!
Imageview进行了recycle()之后再次打开加载同一图片遇到闪退
如题,由于优化内存,进行了bitmap.recycle,但是再次打开加载同一个activity的时候闪退。activity在finish的时候已经recycle,而且没有其他地方引用,居然会闪退。希望有更好的方法。求助,谢谢。代码如下:(setName之类的已经在merge中建立和声明) import android.content.Intent; import android.graphics.Bitmap; import android.graphics.Color; import android.graphics.drawable.BitmapDrawable; import android.graphics.drawable.Drawable; import android.os.Bundle; import android.view.KeyEvent; import android.view.View; import android.widget.ImageView; public class DetailYS extends merge { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.merge); setName(" ys", Color.rgb(255,255,255)); setBirthday(""); setPhone(""); setEmail(""); setUni(""); setPhoto(R.drawable.yangshun); findViewById(R.id.floatingActionButtonCall).setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { DetailYS.this.onDestroy(); Intent intent = new Intent(DetailYS.this,MainActivity.class); startActivity(intent); } }); } @Override protected void onDestroy(){ super.onDestroy(); ImageView imageView = findViewById(R.id.app_bar_image); if(imageView!=null){ Drawable drawable = imageView.getDrawable(); if(drawable!=null){ if (drawable instanceof BitmapDrawable){ BitmapDrawable bitmapDrawable = (BitmapDrawable)drawable; Bitmap bitmap = bitmapDrawable.getBitmap(); if(bitmap!=null && !bitmap.isRecycled()){ bitmap.recycle(); } } } } DetailYS.this.finish(); } public boolean onKeyDown(int keyCode, KeyEvent event) { if(keyCode== KeyEvent.KEYCODE_BACK){ DetailYS.this.finish(); Intent intent = new Intent(DetailYS.this,MainActivity.class); startActivity(intent); } return true; } } ``` ```
求大神解答滑动屏幕切换图片,划多长时间就一直切换,手势移开了就停止滑动
package com.exsample.clonn; import android.os.Bundle; import android.app.Activity; import android.view.GestureDetector; import android.view.GestureDetector.OnGestureListener; import android.view.Menu; import android.view.MotionEvent; import android.view.View; import android.view.View.OnTouchListener; import android.widget.ImageView; public class MainActivity extends Activity implements OnTouchListener, OnGestureListener { private GestureDetector detector = new GestureDetector(this); int[] girls = new int[] { R.drawable.shapan000, R.drawable.shapan001, R.drawable.shapan002, R.drawable.shapan003, R.drawable.shapan004, R.drawable.shapan005, R.drawable.shapan006, R.drawable.shapan007, R.drawable.shapan008, R.drawable.shapan009, R.drawable.shapan010, R.drawable.shapan011, R.drawable.shapan012, R.drawable.shapan013, R.drawable.shapan014, R.drawable.shapan015, R.drawable.shapan016, R.drawable.shapan017, R.drawable.shapan018, R.drawable.shapan019, R.drawable.shapan020, R.drawable.shapan021, R.drawable.shapan022, R.drawable.shapan023, R.drawable.shapan024, R.drawable.shapan025, R.drawable.shapan026, R.drawable.shapan027, R.drawable.shapan028, R.drawable.shapan029, R.drawable.shapan030, R.drawable.shapan031, R.drawable.shapan032, R.drawable.shapan033, R.drawable.shapan034, R.drawable.shapan035, R.drawable.shapan036, R.drawable.shapan037, R.drawable.shapan038, R.drawable.shapan039, R.drawable.shapan040, R.drawable.shapan041, R.drawable.shapan042, R.drawable.shapan043, R.drawable.shapan044, R.drawable.shapan045, R.drawable.shapan046, R.drawable.shapan047, R.drawable.shapan048, R.drawable.shapan049, R.drawable.shapan050, R.drawable.shapan051, R.drawable.shapan052, R.drawable.shapan053, R.drawable.shapan054, R.drawable.shapan055, R.drawable.shapan056, R.drawable.shapan057, R.drawable.shapan058, R.drawable.shapan059, R.drawable.shapan060, }; private int index; private ImageView image; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); image = (ImageView) findViewById(R.id.myImg); image.setImageResource(girls[index]); image.setOnTouchListener(this); image.setLongClickable(true); detector.setIsLongpressEnabled(true); } public void goNext() { index++; index = Math.abs(index % girls.length); image.setImageResource(girls[index]); } @Override public boolean onTouch(View v, MotionEvent event) { if(event.getAction()==MotionEvent.ACTION_MOVE) { } return true; } public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.activity_main, menu); return true; } public boolean onScroll(MotionEvent e1, MotionEvent e2, float distanceX, float distanceY) { // TODO Auto-generated method stub return false; } public void onLongPress(MotionEvent e) { this.goNext(); } public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) { if (velocityX < 0) { goNext(); } else if (velocityX > 0) { goPrevious(); } return false; } private void goPrevious() { index--; index = Math.abs(index % girls.length); image.setImageResource(girls[index]); } }
app安装后点击闪退,log如下,请问是什么问题啊,麻烦各位指教一下
08-29 21:37:56.458 4962-4962/? I/art: Late-enabling -Xcheck:jni 08-29 21:37:56.618 4962-4962/com.example.coolweather W/System: ClassLoader referenced unknown path: /data/app/com.example.coolweather-1/lib/arm64 08-29 21:37:56.674 4962-4962/com.example.coolweather W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable 08-29 21:37:56.745 4962-4962/com.example.coolweather D/AndroidRuntime: Shutting down VM 08-29 21:37:56.745 4962-4962/com.example.coolweather E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.coolweather, PID: 4962 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.coolweather/com.example.coolweather.MainActivity}: java.lang.NumberFormatException: null at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2695) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2768) at android.app.ActivityThread.-wrap12(ActivityThread.java) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1481) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:154) at android.app.ActivityThread.main(ActivityThread.java:6153) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:758) Caused by: java.lang.NumberFormatException: null at java.lang.Integer.parseInt(Integer.java:483) at java.lang.Integer.parseInt(Integer.java:556) at org.litepal.parser.LitePalParser.usePullParse(LitePalParser.java:160) at org.litepal.parser.LitePalParser.parseLitePalConfiguration(LitePalParser.java:102) at org.litepal.parser.LitePalAttr.loadLitePalXMLConfiguration(LitePalAttr.java:99) at org.litepal.parser.LitePalAttr.getInstance(LitePalAttr.java:90) at org.litepal.tablemanager.Connector.buildConnection(Connector.java:104) at org.litepal.tablemanager.Connector.getWritableDatabase(Connector.java:63) at org.litepal.tablemanager.Connector.getDatabase(Connector.java:87) at org.litepal.crud.DataSupport.findAll(DataSupport.java:1027) at org.litepal.crud.DataSupport.findAll(DataSupport.java:994) at com.example.coolweather.ChooseAreaFragment.queryProvinces(ChooseAreaFragment.java:115) at com.example.coolweather.ChooseAreaFragment.onActivityCreated(ChooseAreaFragment.java:106) at android.support.v4.app.Fragment.performActivityCreated(Fragment.java:2201) at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1326) at android.support.v4.app.FragmentManagerImpl.moveFragmentToExpectedState(FragmentManager.java:1528) at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1595) at android.support.v4.app.FragmentManagerImpl.dispatchActivityCreated(FragmentManager.java:2900) at android.support.v4.app.FragmentController.dispatchActivityCreated(FragmentController.java:201) at android.support.v4.app.FragmentActivity.onStart(FragmentActivity.java:603) at android.support.v7.app.AppCompatActivity.onStart(AppCompatActivity.java:178) at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1249) at android.app.Activity.performStart(Activity.java:6722) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2658) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2768)  at android.app.ActivityThread.-wrap12(ActivityThread.java)  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1481)  at android.os.Handler.dispatchMessage(Handler.java:102)  at android.os.Looper.loop(Looper.java:154)  at android.app.ActivityThread.main(ActivityThread.java:6153)  at java.lang.reflect.Method.invoke(Native Method)  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:758)  08-29 21:37:56.752 4962-4962/? I/Process: Sending signal. PID: 4962 SIG: 9
ANDROID STUDIO网络问题
报错为: 01/09 11:01:50: Launching app $ adb push C:\Users\Administrator\AndroidStudioProjects\MyApplication13\app\build\outputs\apk\app-debug.apk /data/local/tmp/com.example.administrator.myapplication $ adb shell pm install -r "/data/local/tmp/com.example.administrator.myapplication" Success $ adb shell am start -n "com.example.administrator.myapplication/com.example.administrator.myapplication.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER Client not ready yet..Connected to process 2346 on device emulator-5554 W/System: ClassLoader referenced unknown path: /data/app/com.example.administrator.myapplication-1/lib/x86 I/InstantRun: Instant Run Runtime started. Android package is com.example.administrator.myapplication, real application class is null. W/System: ClassLoader referenced unknown path: /data/app/com.example.administrator.myapplication-1/lib/x86 W/art: Verification of void android.support.v7.app.AppCompatActivity.onSupportActionModeFinished(android.support.v7.view.ActionMode) took 1.372s W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable W/gralloc_ranchu: Gralloc pipe failed [ 01-09 03:02:02.837 2346: 2346 D/ ] HostConnection::get() New Host Connection established 0x9daf8380, tid 2346 I/OpenGLRenderer: Initialized EGL, version 1.4 D/OpenGLRenderer: Swap behavior 1 D/NetworkSecurityConfig: No Network Security Config specified, using platform default Application terminated. 在权限中,我已经添加了网络权限。 但是不知道为什么就是不行。 源代码如下: package com.example.administrator.myapplication; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.view.View; import android.widget.Button; import android.widget.TextView; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.net.HttpURLConnection; import java.net.URL; import static android.icu.lang.UCharacter.GraphemeClusterBreak.V; public class MainActivity extends AppCompatActivity implements View.OnClickListener{ TextView responseText; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); Button sendRquest=(Button)findViewById(R.id.send_request); responseText=(TextView)findViewById(R.id.requestion_text); sendRquest.setOnClickListener(this); } public void onClick(View v) { if(v.getId()==R.id.send_request) { sendResquestWithHttpURLConnection(); } } private void sendResquestWithHttpURLConnection() { new Thread(new Runnable() { @Override public void run() { HttpURLConnection connection=null; BufferedReader reader=null; try{ URL url=new URL("http://www.baidu.com"); connection=(HttpURLConnection)url.openConnection(); connection.setRequestMethod("GET"); connection.setConnectTimeout(8000); connection.setReadTimeout(8000); InputStream in=connection.getInputStream(); reader=new BufferedReader(new InputStreamReader(in)); StringBuilder response=new StringBuilder(); String line; while((line=reader.readLine())!=null) { response.append(in); } showResponse(response.toString()); } catch(Exception e) { e.printStackTrace(); } finally { if(reader!=null){ try{ reader.close(); }catch (IOException e) { e.printStackTrace(); } } if(connection!=null) { connection.disconnect(); } } } }).start(); } private void showResponse(final String response){ runOnUiThread(new Runnable(){ public void run(){ responseText.setText(response); } }); } }
安卓开发中java.lang.RuntimeException: Unable to start activity ComponentInfo问题
package com.example.test; import android.app.ActivityGroup; import android.app.LocalActivityManager; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.TextView; @SuppressWarnings("deprecation") public class MainActivity extends ActivityGroup { // Tab Activity Layout private LocalActivityManager localActivityManager = null; private LinearLayout mainTabContainer = null; private Intent mainTabIntent = null; // Tab banner title private TextView mainTabTitleTextView = null; // Tab ImageView private ImageView appreciateImageView = null; private ImageView discussImageView = null; private ImageView identificationImageView = null; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); appreciateImageView = (ImageView) super .findViewById(R.id.appreciate_tab_btn); mainTabContainer = (LinearLayout) findViewById(R.id.main_tab_banner_title); appreciateImageView.setImageResource(R.drawable.appreciate_press); discussImageView.setImageResource(R.drawable.discuss_normal); identificationImageView .setImageResource(R.drawable.identification_normal); localActivityManager = getLocalActivityManager(); mainTabTitleTextView = (TextView) findViewById(R.id.main_tab_banner_title); appreciateImageView = (ImageView) findViewById(R.id.appreciate_tab_btn); discussImageView = (ImageView) findViewById(R.id.discuss_tab_btn); identificationImageView = (ImageView) findViewById(R.id.identification_tab_btn); setContainerView("appreciate", AppreciateTabActivity.class); setContentView(R.layout.activity_main); initTab(); } /** * 初始化Tab项 */ private void initTab() { mainTabTitleTextView = (TextView) findViewById(R.id.main_tab_banner_title); appreciateImageView = (ImageView) findViewById(R.id.appreciate_tab_btn); discussImageView = (ImageView) findViewById(R.id.discuss_tab_btn); identificationImageView = (ImageView) findViewById(R.id.identification_tab_btn); appreciateImageView.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { appreciateImageView .setImageResource(R.drawable.appreciate_press); discussImageView.setImageResource(R.drawable.discuss_normal); identificationImageView .setImageResource(R.drawable.identification_normal); setContainerView("appreciate", AppreciateTabActivity.class); mainTabTitleTextView.setText("欣赏美花"); } }); discussImageView.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { appreciateImageView .setImageResource(R.drawable.appreciate_normal); discussImageView.setImageResource(R.drawable.discuss_press); identificationImageView .setImageResource(R.drawable.identification_normal); setContainerView("discuss", DiscussTabActivity.class); mainTabTitleTextView.setText("评花论花"); } }); identificationImageView.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { appreciateImageView .setImageResource(R.drawable.appreciate_normal); discussImageView.setImageResource(R.drawable.discuss_normal); identificationImageView .setImageResource(R.drawable.identification_press); setContainerView("identification", IdentificationTabActivity.class); mainTabTitleTextView.setText("亮眼识花"); } }); } public void setContainerView(String id, Class<?> activity) { mainTabContainer.removeAllViews(); mainTabIntent = new Intent(this, activity); mainTabContainer.addView(localActivityManager.startActivity(id, mainTabIntent).getDecorView()); } } 出现如下错误:![CSDN移动问答][1] [1]: http://xiangce.baidu.com/picture/detail/a3296cfaddcb74077c4b6751e000a41f08316fc6?from=dialoghttp://xiangce.baidu.com/picture/detail/a3296cfaddcb74077c4b6751e000a41f08316fc6?from=dialog
android 第一次做自定义控件 java.lang.RuntimeException异常
package com.example.q9722.biancheng; import android.content.Context; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.graphics.Rect; import android.util.AttributeSet; import android.widget.TextView; /** * Created by q9722 on 2018/1/1. */ public class test_text extends TextView { private String mText = "111",mNumber = "222"; private Paint mPaint; private Rect mNumberRect; public test_text(Context context, String mText, String mNumber) { this(context, null, mText, mNumber); } public test_text(Context context, AttributeSet attrs, String mText, String mNumber) { this(context, attrs, 0, mText, mNumber); } public test_text(Context context, AttributeSet attrs, int defStyleAttr, String mText, String mNumber) { super(context, attrs, defStyleAttr); this.mText = mText; this.mNumber = mNumber; init(); } private void init() { mPaint = new Paint(); } @Override protected void onDraw(Canvas canvas) { super.onDraw(canvas); mPaint.setColor(Color.BLACK); mPaint.setStyle(Paint.Style.STROKE); canvas.drawRect(0, 0, getWidth(), getHeight(), mPaint); canvas.drawCircle(getWidth()/6*4, getHeight()/4*3,getHeight()/4,mPaint); mPaint.setTextSize(18); mPaint.getTextBounds(mNumber, 0, mNumber.length(), mNumberRect); canvas.drawText(mText, 2 ,getHeight()/5,mPaint); canvas.drawText(mNumber, (getWidth()/6*4)-(mNumberRect.width()/2), (getHeight()/4*3)-(mNumberRect.hashCode()/2), mPaint); } } 01/01 18:58:49: Launching app $ adb push C:\Users\q9722\AndroidStudioProjects\BianCheng\app\build\outputs\apk\app-debug.apk /data/local/tmp/com.example.q9722.biancheng $ adb shell pm install -r "/data/local/tmp/com.example.q9722.biancheng" Success $ adb shell am start -n "com.example.q9722.biancheng/com.example.q9722.biancheng.SplashActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER Client not ready yet..Waiting for process to come online Connected to process 30129 on device xiaomi-mi_5-43ac216f W/System: ClassLoader referenced unknown path: /data/app/com.example.q9722.biancheng-1/lib/arm64 I/InstantRun: Instant Run Runtime started. Android package is com.example.q9722.biancheng, real application class is null. W/System: ClassLoader referenced unknown path: /data/app/com.example.q9722.biancheng-1/lib/arm64 W/MIUI-BLOCK-MONITOR: The msg { when=-72ms what=110 obj=AppBindData{appInfo=ApplicationInfo{7c1e14a com.example.q9722.biancheng}} target=android.app.ActivityThread$H planTime=1514804333143 dispatchTime=1514804333215 finishTime=0 } took 3826ms and took 3754ms after dispatch. W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable W/System: ClassLoader referenced unknown path: /system/app/MiuiContentCatcher/lib/arm64 D/AccessibilityManager: current package=com.example.q9722.biancheng, accessibility manager mIsFinalEnabled=false, mOptimizeEnabled=true, mIsUiAutomationEnabled=false, mIsInterestedPackage=false V/BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance@717395 V/BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance@bc3ccaa V/BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance@664d14e D/ActivityThreadInjector: clearCachedDrawables. I/Adreno: QUALCOMM build : 620c068, I09d312ff84 Build Date : 08/07/17 OpenGL ES Shader Compiler Version: XE031.09.00.04 Local Branch : Remote Branch : Remote Branch : Reconstruct Branch : I/Choreographer: Skipped 33 frames! The application may be doing too much work on its main thread. I/OpenGLRenderer: Initialized EGL, version 1.4 D/OpenGLRenderer: Swap behavior 1 V/BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance@c8e9e47 I/Timeline: Timeline: Activity_launch_request time:84494803 V/BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance@cd359d1 V/BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance@4011c36 D/AndroidRuntime: Shutting down VM E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.q9722.biancheng, PID: 30129 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.q9722.biancheng/com.example.q9722.biancheng.MainActivity}: android.view.InflateException: Binary XML file line #15: Binary XML file line #15: Error inflating class com.example.q9722.biancheng.test_text at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2724) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2785) at android.app.ActivityThread.-wrap12(ActivityThread.java) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1532) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:163) at android.app.ActivityThread.main(ActivityThread.java:6321) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:880) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:770) Caused by: android.view.InflateException: Binary XML file line #15: Binary XML file line #15: Error inflating class com.example.q9722.biancheng.test_text Caused by: android.view.InflateException: Binary XML file line #15: Error inflating class com.example.q9722.biancheng.test_text Caused by: java.lang.NoSuchMethodException: <init> [class android.content.Context, interface android.util.AttributeSet] at java.lang.Class.getConstructor0(Class.java:2204) at java.lang.Class.getConstructor(Class.java:1683) at android.view.LayoutInflater.createView(LayoutInflater.java:622) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:812) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:752) at android.view.LayoutInflater.rInflate(LayoutInflater.java:883) at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:846) at android.view.LayoutInflater.inflate(LayoutInflater.java:522) at android.view.LayoutInflater.inflate(LayoutInflater.java:430) at android.view.LayoutInflater.inflate(LayoutInflater.java:377) at android.support.v7.app.AppCompatDelegateImplV9.setContentView(AppCompatDelegateImplV9.java:284) at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:140) at com.example.q9722.biancheng.MainActivity.onCreate(MainActivity.java:17) at android.app.Activity.performCreate(Activity.java:6847) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1119) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2677) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2785) at android.app.ActivityThread.-wrap12(ActivityThread.java) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1532) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:163) at android.app.ActivityThread.main(ActivityThread.java:6321) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:880) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:770) Application terminated.
从网上下载 JPEG 出现的问题
我使用下面的类来下载一个图像,发送的url是正确的,但是url.getContext() 每次都返回null。问题出在哪里呢? package com.WasserSportLotse; import java.io.IOException; import java.io.InputStream; import java.net.MalformedURLException; import java.net.URL; import android.content.Context; import android.graphics.drawable.Drawable; class ImageDownloader { private Drawable d; public ImageDownloader(Context ctx, String url, String saveFilename) { try { InputStream is = (InputStream) this.fetch(url); d = Drawable.createFromStream(is, "src"); } catch (MalformedURLException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } } public Drawable getImage(){ return d; } public Object fetch(String address) throws MalformedURLException,IOException { URL url = new URL(address); Object content = url.getContent(); return content; } }
Fragment 上面的按钮失灵
求教大神,我在MainActivity上面做个了一个FragmentTabhost,在第一个碎片的顶部加了两个按钮,然后点击事件如下,本来我想让它们能在点击的时候能更换按钮的背景和按钮上字体的颜色,但是,现在好像不起作用,求大神帮我看看怎么回事 ![图片说明](https://img-ask.csdn.net/upload/201607/19/1468888060_862429.png) package com.ruicaiedu.ifriend.fragment; import android.graphics.drawable.Drawable; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v4.app.Fragment; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.Button; import com.ruicaiedu.ifriend.R; /** * Created by Administrator on 2016/7/18 0018. */ public class FragmentFirstNearby extends Fragment { private View view; private Button btn_firstfragment_nearbyMan; private Button btn_firstfragment_nearbyQun; @Nullable @Override public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { view = inflater.inflate(R.layout.fragment_first, container, false); btn_firstfragment_nearbyMan = (Button) view.findViewById(R.id.btn_firstfragment_nearbyMan); btn_firstfragment_nearbyQun = (Button) view.findViewById(R.id.btn_firstfragment_nearbyQun); //设置两个按钮的监听事件 btn_firstfragment_nearbyMan.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) {//按的左边的附近的人 的按钮 //设置两个按钮的颜色 btn_firstfragment_nearbyMan.setBackground(getResources().getDrawable(R.drawable.firsttopleftwhite)); btn_firstfragment_nearbyMan.setTextColor(getResources().getColor(R.color.themeColor)); btn_firstfragment_nearbyQun.setBackground(getResources().getDrawable(R.drawable.firsttoprigthpurple)); btn_firstfragment_nearbyQun.setTextColor(getResources().getColor(R.color.viewtheme)); } }); btn_firstfragment_nearbyMan.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) {//按的 右边的附近的群的 按钮 //设置两个按钮的颜色 btn_firstfragment_nearbyQun.setBackground(getResources().getDrawable(R.drawable.firsttoprightwhite)); btn_firstfragment_nearbyQun.setTextColor(getResources().getColor(R.color.themeColor)); btn_firstfragment_nearbyMan.setBackground(getResources().getDrawable(R.drawable.firsttopleftpurple)); btn_firstfragment_nearbyMan.setTextColor(getResources().getColor(R.color.viewtheme)); } }); return view; } }
AndroidStudio中\com.android.support错误如何解决
今天在AndroidStudio中创建项目老是出现 ** E:\AndroidStudioProjects\HelloStudio\myproject\build\intermediates\exploded-aar\com.android.support\appcompat-v7\21.0.3\res\drawable-mdpi\abc_ab_share_pack_holo_dark.9.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited** 这个错误 要怎么解决啊
终于明白阿里百度这样的大公司,为什么面试经常拿ThreadLocal考验求职者了
点击上面↑「爱开发」关注我们每晚10点,捕获技术思考和创业资源洞察什么是ThreadLocalThreadLocal是一个本地线程副本变量工具类,各个线程都拥有一份线程私...
《奇巧淫技》系列-python!!每天早上八点自动发送天气预报邮件到QQ邮箱
将代码部署服务器,每日早上定时获取到天气数据,并发送到邮箱。 也可以说是一个小人工智障。 思路可以运用在不同地方,主要介绍的是思路。
加快推动区块链技术和产业创新发展,2019可信区块链峰会在京召开
11月8日,由中国信息通信研究院、中国通信标准化协会、中国互联网协会、可信区块链推进计划联合主办,科技行者协办的2019可信区块链峰会将在北京悠唐皇冠假日酒店开幕。   区块链技术被认为是继蒸汽机、电力、互联网之后,下一代颠覆性的核心技术。如果说蒸汽机释放了人类的生产力,电力解决了人类基本的生活需求,互联网彻底改变了信息传递的方式,区块链作为构造信任的技术有重要的价值。   1...
阿里面试官问我:如何设计秒杀系统?我的回答让他比起大拇指
你知道的越多,你不知道的越多 点赞再看,养成习惯 GitHub上已经开源 https://github.com/JavaFamily 有一线大厂面试点脑图和个人联系方式,欢迎Star和指教 前言 Redis在互联网技术存储方面使用如此广泛,几乎所有的后端技术面试官都要在Redis的使用和原理方面对小伙伴们进行360°的刁难。 作为一个在互联网公司面一次拿一次Offer的面霸,打败了...
C语言魔塔游戏
很早就很想写这个,今天终于写完了。 游戏截图: 编译环境: VS2017 游戏需要一些图片,如果有想要的或者对游戏有什么看法的可以加我的QQ 2985486630 讨论,如果暂时没有回应,可以在博客下方留言,到时候我会看到。 下面我来介绍一下游戏的主要功能和实现方式 首先是玩家的定义,使用结构体,这个名字是可以自己改变的 struct gamerole { char n...
面试官问我:什么是消息队列?什么场景需要他?用了会出现什么问题?
你知道的越多,你不知道的越多 点赞再看,养成习惯 GitHub上已经开源 https://github.com/JavaFamily 有一线大厂面试点脑图、个人联系方式和人才交流群,欢迎Star和完善 前言 消息队列在互联网技术存储方面使用如此广泛,几乎所有的后端技术面试官都要在消息队列的使用和原理方面对小伙伴们进行360°的刁难。 作为一个在互联网公司面一次拿一次Offer的面霸...
Android性能优化(4):UI渲染机制以及优化
文章目录1. 渲染机制分析1.1 渲染机制1.2 卡顿现象1.3 内存抖动2. 渲染优化方式2.1 过度绘制优化2.1.1 Show GPU overdraw2.1.2 Profile GPU Rendering2.2 卡顿优化2.2.1 SysTrace2.2.2 TraceView 在从Android 6.0源码的角度剖析View的绘制原理一文中,我们了解到View的绘制流程有三个步骤,即m...
微服务中的Kafka与Micronaut
今天,我们将通过Apache Kafka主题构建一些彼此异步通信的微服务。我们使用Micronaut框架,它为与Kafka集成提供专门的库。让我们简要介绍一下示例系统的体系结构。我们有四个微型服务:订单服务,行程服务,司机服务和乘客服务。这些应用程序的实现非常简单。它们都有内存存储,并连接到同一个Kafka实例。 我们系统的主要目标是为客户安排行程。订单服务应用程序还充当网关。它接收来自客户的请求...
致 Python 初学者们!
作者| 许向武 责编 | 屠敏 出品 | CSDN 博客 前言 在 Python 进阶的过程中,相信很多同学应该大致上学习了很多 Python 的基础知识,也正在努力成长。在此期间,一定遇到了很多的困惑,对未来的学习方向感到迷茫。我非常理解你们所面临的处境。我从2007年开始接触 Python 这门编程语言,从2009年开始单一使用 Python 应对所有的开发工作,直至今...
究竟你适不适合买Mac?
我清晰的记得,刚买的macbook pro回到家,开机后第一件事情,就是上了淘宝网,花了500元钱,找了一个上门维修电脑的师傅,上门给我装了一个windows系统。。。。。。 表砍我。。。 当时买mac的初衷,只是想要个固态硬盘的笔记本,用来运行一些复杂的扑克软件。而看了当时所有的SSD笔记本后,最终决定,还是买个好(xiong)看(da)的。 已经有好几个朋友问我mba怎么样了,所以今天尽量客观...
程序员一般通过什么途径接私活?
二哥,你好,我想知道一般程序猿都如何接私活,我也想接,能告诉我一些方法吗? 上面是一个读者“烦不烦”问我的一个问题。其实不止是“烦不烦”,还有很多读者问过我类似这样的问题。 我接的私活不算多,挣到的钱也没有多少,加起来不到 20W。说实话,这个数目说出来我是有点心虚的,毕竟太少了,大家轻喷。但我想,恰好配得上“一般程序员”这个称号啊。毕竟苍蝇再小也是肉,我也算是有经验的人了。 唾弃接私活、做外...
字节跳动面试官这样问消息队列:分布式事务、重复消费、顺序消费,我整理了一下
你知道的越多,你不知道的越多 点赞再看,养成习惯 GitHub上已经开源 https://github.com/JavaFamily 有一线大厂面试点脑图、个人联系方式和人才交流群,欢迎Star和完善 前言 消息队列在互联网技术存储方面使用如此广泛,几乎所有的后端技术面试官都要在消息队列的使用和原理方面对小伙伴们进行360°的刁难。 作为一个在互联网公司面一次拿一次Offer的面霸...
Python爬虫爬取淘宝,京东商品信息
小编是一个理科生,不善长说一些废话。简单介绍下原理然后直接上代码。 使用的工具(Python+pycharm2019.3+selenium+xpath+chromedriver)其中要使用pycharm也可以私聊我selenium是一个框架可以通过pip下载 pip installselenium -ihttps://pypi.tuna.tsinghua.edu.cn/simple/ ...
阿里程序员写了一个新手都写不出的低级bug,被骂惨了。
这种新手都不会范的错,居然被一个工作好几年的小伙子写出来,差点被当场开除了。
Java工作4年来应聘要16K最后没要,细节如下。。。
前奏: 今天2B哥和大家分享一位前几天面试的一位应聘者,工作4年26岁,统招本科。 以下就是他的简历和面试情况。 基本情况: 专业技能: 1、&nbsp;熟悉Sping了解SpringMVC、SpringBoot、Mybatis等框架、了解SpringCloud微服务 2、&nbsp;熟悉常用项目管理工具:SVN、GIT、MAVEN、Jenkins 3、&nbsp;熟悉Nginx、tomca...
SpringBoot2.x系列教程(三十六)SpringBoot之Tomcat配置
Spring Boot默认内嵌的Tomcat为Servlet容器,关于Tomcat的所有属性都在ServerProperties配置类中。同时,也可以实现一些接口来自定义内嵌Servlet容器和内嵌Tomcat等的配置。 关于此配置,网络上有大量的资料,但都是基于SpringBoot1.5.x版本,并不适合当前最新版本。本文将带大家了解一下最新版本的使用。 ServerProperties的部分源...
Python绘图,圣诞树,花,爱心 | Turtle篇
每周每日,分享Python实战代码,入门资料,进阶资料,基础语法,爬虫,数据分析,web网站,机器学习,深度学习等等。 公众号回复【进群】沟通交流吧,QQ扫码进群学习吧 微信群 QQ群 1.画圣诞树 import turtle screen = turtle.Screen() screen.setup(800,600) circle = turtle.Turtle()...
作为一个程序员,CPU的这些硬核知识你必须会!
CPU对每个程序员来说,是个既熟悉又陌生的东西? 如果你只知道CPU是中央处理器的话,那可能对你并没有什么用,那么作为程序员的我们,必须要搞懂的就是CPU这家伙是如何运行的,尤其要搞懂它里面的寄存器是怎么一回事,因为这将让你从底层明白程序的运行机制。 随我一起,来好好认识下CPU这货吧 把CPU掰开来看 对于CPU来说,我们首先就要搞明白它是怎么回事,也就是它的内部构造,当然,CPU那么牛的一个东...
破14亿,Python分析我国存在哪些人口危机!
一、背景 二、爬取数据 三、数据分析 1、总人口 2、男女人口比例 3、人口城镇化 4、人口增长率 5、人口老化(抚养比) 6、各省人口 7、世界人口 四、遇到的问题 遇到的问题 1、数据分页,需要获取从1949-2018年数据,观察到有近20年参数:LAST20,由此推测获取近70年的参数可设置为:LAST70 2、2019年数据没有放上去,可以手动添加上去 3、将数据进行 行列转换 4、列名...
听说想当黑客的都玩过这个Monyer游戏(1~14攻略)
第零关 进入传送门开始第0关(游戏链接) 请点击链接进入第1关: 连接在左边→ ←连接在右边 看不到啊。。。。(只能看到一堆大佬做完的留名,也能看到菜鸡的我,在后面~~) 直接fn+f12吧 &lt;span&gt;连接在左边→&lt;/span&gt; &lt;a href="first.php"&gt;&lt;/a&gt; &lt;span&gt;←连接在右边&lt;/span&gt; o...
在家远程办公效率低?那你一定要收好这个「在家办公」神器!
相信大家都已经收到国务院延长春节假期的消息,接下来,在家远程办公可能将会持续一段时间。 但是问题来了。远程办公不是人在电脑前就当坐班了,相反,对于沟通效率,文件协作,以及信息安全都有着极高的要求。有着非常多的挑战,比如: 1在异地互相不见面的会议上,如何提高沟通效率? 2文件之间的来往反馈如何做到及时性?如何保证信息安全? 3如何规划安排每天工作,以及如何进行成果验收? ...... ...
作为一个程序员,内存和磁盘的这些事情,你不得不知道啊!!!
截止目前,我已经分享了如下几篇文章: 一个程序在计算机中是如何运行的?超级干货!!! 作为一个程序员,CPU的这些硬核知识你必须会! 作为一个程序员,内存的这些硬核知识你必须懂! 这些知识可以说是我们之前都不太重视的基础知识,可能大家在上大学的时候都学习过了,但是嘞,当时由于老师讲解的没那么有趣,又加上这些知识本身就比较枯燥,所以嘞,大家当初几乎等于没学。 再说啦,学习这些,也看不出来有什么用啊!...
这个世界上人真的分三六九等,你信吗?
偶然间,在知乎上看到一个问题 一时间,勾起了我深深的回忆。 以前在厂里打过两次工,做过家教,干过辅导班,做过中介。零下几度的晚上,贴过广告,满脸、满手地长冻疮。 再回首那段岁月,虽然苦,但让我学会了坚持和忍耐。让我明白了,在这个世界上,无论环境多么的恶劣,只要心存希望,星星之火,亦可燎原。 下文是原回答,希望能对你能有所启发。 如果我说,这个世界上人真的分三六九等,...
2020年全新Java学习路线图,含配套视频,学完即为中级Java程序员!!
新的一年来临,突如其来的疫情打破了平静的生活! 在家的你是否很无聊,如果无聊就来学习吧! 世上只有一种投资只赚不赔,那就是学习!!! 传智播客于2020年升级了Java学习线路图,硬核升级,免费放送! 学完你就是中级程序员,能更快一步找到工作! 一、Java基础 JavaSE基础是Java中级程序员的起点,是帮助你从小白到懂得编程的必经之路。 在Java基础板块中有6个子模块的学...
B 站上有哪些很好的学习资源?
哇说起B站,在小九眼里就是宝藏般的存在,放年假宅在家时一天刷6、7个小时不在话下,更别提今年的跨年晚会,我简直是跪着看完的!! 最早大家聚在在B站是为了追番,再后来我在上面刷欧美新歌和漂亮小姐姐的舞蹈视频,最近两年我和周围的朋友们已经把B站当作学习教室了,而且学习成本还免费,真是个励志的好平台ヽ(.◕ฺˇд ˇ◕ฺ;)ノ 下面我们就来盘点一下B站上优质的学习资源: 综合类 Oeasy: 综合...
爬取薅羊毛网站百度云资源
这是疫情期间无聊做的爬虫, 去获取暂时用不上的教程 import threading import time import pandas as pd import requests import re from threading import Thread, Lock # import urllib.request as request # req=urllib.request.Requ...
如何优雅地打印一个Java对象?
你好呀,我是沉默王二,一个和黄家驹一样身高,和刘德华一样颜值的程序员。虽然已经写了十多年的 Java 代码,但仍然觉得自己是个菜鸟(请允许我惭愧一下)。 在一个月黑风高的夜晚,我思前想后,觉得再也不能这么蹉跎下去了。于是痛下决心,准备通过输出的方式倒逼输入,以此来修炼自己的内功,从而进阶成为一名真正意义上的大神。与此同时,希望这些文章能够帮助到更多的读者,让大家在学习的路上不再寂寞、空虚和冷。 ...
雷火神山直播超两亿,Web播放器事件监听是怎么实现的?
Web播放器解决了在手机浏览器和PC浏览器上播放音视频数据的问题,让视音频内容可以不依赖用户安装App,就能进行播放以及在社交平台进行传播。在视频业务大数据平台中,播放数据的统计分析非常重要,所以Web播放器在使用过程中,需要对其内部的数据进行收集并上报至服务端,此时,就需要对发生在其内部的一些播放行为进行事件监听。 那么Web播放器事件监听是怎么实现的呢? 01 监听事件明细表 名...
3万字总结,Mysql优化之精髓
本文知识点较多,篇幅较长,请耐心学习 MySQL已经成为时下关系型数据库产品的中坚力量,备受互联网大厂的青睐,出门面试想进BAT,想拿高工资,不会点MySQL优化知识,拿offer的成功率会大大下降。 为什么要优化 系统的吞吐量瓶颈往往出现在数据库的访问速度上 随着应用程序的运行,数据库的中的数据会越来越多,处理时间会相应变慢 数据是存放在磁盘上的,读写速度无法和内存相比 如何优化 设计...
HTML5适合的情人节礼物有纪念日期功能
前言 利用HTML5,css,js实现爱心树 以及 纪念日期的功能 网页有播放音乐功能 以及打字倾诉感情的画面,非常适合情人节送给女朋友 具体的HTML代码 具体只要修改代码里面的男某某和女某某 文字段也可自行修改,还有代码下半部分的JS代码需要修改一下起始日期 注意月份为0~11月 也就是月份需要减一。 当然只有一部分HTML和JS代码不够运行的,文章最下面还附加了完整代码的下载地址 &lt;!...
相关热词 c# 为空 判断 委托 c#记事本颜色 c# 系统默认声音 js中调用c#方法参数 c#引入dll文件报错 c#根据名称实例化 c#从邮件服务器获取邮件 c# 保存文件夹 c#代码打包引用 c# 压缩效率
立即提问