排行榜

  • 用户榜
  • 标签榜
  • 冲榜分奖金

频道

最新最热悬赏待采纳 筛选
  • 0

    回答

  • 4

    浏览

在本地文件里有一个xml文件,是一个AnimayedVectorDrawable(矢量图动画),当Android程序运行后,我怎么加载播放它,有没有大佬告诉我,头疼了好多天了

  • 1

    回答

  • 12

    浏览

xml文件中使用到android.support.v7.widget.CardView来进行卡片式布局,但是导入cardview-v7库出现以下问题: cannot resolve class android.support.v7.widget.CardView 在buide.gradle中以添加下列代码: compile 'com.android.support:recyclerview-v7:24.2.1' compile 'com.android.support:cardview-v7:24.1.1' compile 'com.github.bumptech.glide:glide:4.8.0' 依旧无效,请问怎么解决?

  • 0

    回答

  • 14

    浏览

想给自己的android项目添加消息推送功能,打算用第三方百度云推送实现,但是复制AndroidManifest.xml里的内容进去后name的地方报红,请问是什么原因?jar包之类的已经全部导入了  

  • 1

    回答

  • 17

    浏览

若 将destroy()方法 改成finish()方法,程序可运行,但是并不能判断所输入的信息是否正确,

  • 0

    回答

  • 8

    浏览

码元速率为1200Baud,调制方式是2DPSK(如上图),那么载波频率是多少?数据速率是多少?

  • 2

    回答

  • 21

    浏览

E/AndroidRuntime: FATAL EXCEPTION: main     Process: com.example.smartcity, PID: 6399     java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.smartcity/com.example.smartcity.ui.home.News}: android.view.InflateException: Binary XML file line #49: Binary XML file line #49: Error inflating class <unknown>         at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2665)         at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2726)         at android.app.ActivityThread.-wrap12(ActivityThread.java)         at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1477)         at android.os.Handler.dispatchMessage(Handler.java:102)         at android.os.Looper.loop(Looper.java:154)         at android.app.ActivityThread.main(ActivityThread.java:6119)         at java.lang.reflect.Method.invoke(Native Method)         at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)         at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)      Caused by: android.view.InflateException: Binary XML file line #49: Binary XML file line #49: Error inflating class <unknown>      Caused by: android.view.InflateException: Binary XML file line #49: Error inflating class <unknown>      Caused by: java.lang.reflect.InvocationTargetException         at java.lang.reflect.Constructor.newInstance0(Native Method)         at java.lang.reflect.Constructor.newInstance(Constructor.java:430)         at android.view.LayoutInflater.createView(LayoutInflater.java:645)         at com.android.internal.policy.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:58)         at android.view.LayoutInflater.onCreateView(LayoutInflater.java:717)         at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:785)         at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:727)         at android.view.LayoutInflater.rInflate(LayoutInflater.java:858)         at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:821)         at android.view.LayoutInflater.rInflate(LayoutInflater.java:861)         at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:821)         at android.view.LayoutInflater.rInflate(LayoutInflater.java:861)         at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:821)         at android.view.LayoutInflater.rInflate(LayoutInflater.java:861)         at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:821)         at android.view.LayoutInflater.inflate(LayoutInflater.java:518)         at android.view.LayoutInflater.inflate(LayoutInflater.java:426)         at android.view.LayoutInflater.inflate(LayoutInflater.java:377)         at androidx.appcompat.app.AppCompatDelegateImpl.setContentView(AppCompatDelegateImpl.java:555)         at androidx.appcompat.app.AppCompatActivity.setContentView(AppCompatActivity.java:161)         at com.example.smartcity.ui.home.News.onCreate(News.java:25)         at android.app.Activity.performCreate(Activity.java:6679)         at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118)         at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2618)         at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2726)         at android.app.ActivityThread.-wrap12(ActivityThread.java)         at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1477)         at android.os.Handler.dispatchMessage(Handler.java:102)         at android.os.Looper.loop(Looper.java:154)         at android.app.ActivityThread.main(ActivityThread.java:6119)         at java.lang.reflect.Method.invoke(Native Method)         at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)         at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)      Caused by: android.content.res.Resources$NotFoundException: Drawable com.example.smartcity:drawable/newsbackground with resource ID #0x7f0700bb      Caused by: android.content.res.Resources$NotFoundException: File res/drawable/newsbackground.xml from drawable resource ID #0x7f0700bb         at android.content.res.ResourcesImpl.loadDrawableForCookie(ResourcesImpl.java:725)         at android.content.res.ResourcesImpl.loadDrawable(ResourcesImpl.java:571)         at android.content.res.Resources.loadDrawable(Resources.java:858)         at android.content.res.TypedArray.getDrawable(TypedArray.java:928)         at android.view.View.<init>(View.java:4202)         at android.view.ViewGroup.<init>(ViewGroup.java:579)         at android.widget.LinearLayout.<init>(LinearLayout.java:211)         at android.widget.LinearLayout.<init>(LinearLayout.java:207)         at android.widget.LinearLayout.<init>(LinearLayout.java:203)         at java.lang.reflect.Constructor.newInstance0(Native Method)         at java.lang.reflect.Constructor.newInstance(Constructor.java:430)         at android.view.LayoutInflater.createView(LayoutInflater.java:645)         at com.android.internal.policy.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:58)         at android.view.LayoutInflater.onCreateView(LayoutInflater.java:717)         at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:785)         at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:727)         at android.view.LayoutInflater.rInflate(LayoutInflater.java:858)         at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:821)         at android.view.LayoutInflater.rInflate(LayoutInflater.java:861)         at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:821)         at android.view.LayoutInflater.rInflate(LayoutInflater.java:861)         at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:821)         at android.view.LayoutInflater.rInflate(LayoutInflater.java:861)         at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:821)         at android.view.LayoutInflater.inflate(LayoutInflater.java:518)         at android.view.LayoutInflater.inflate(LayoutInflater.java:426)         at android.view.LayoutInflater.inflate(LayoutInflater.java:377)         at androidx.appcompat.app.AppCompatDelegateImpl.setContentView(AppCompatDelegateImpl.java:555)         at androidx.appcompat.app.AppCompatActivity.setContentView(AppCompatActivity.java:161)         at com.example.smartcity.ui.home.News.onCreate(News.java:25)         at android.app.Activity.performCreate(Activity.java:6679)         at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118)         at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2618)         at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2726)         at android.app.ActivityThread.-wrap12(ActivityThread.java)         at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1477)         at android.os.Handler.dispatchMessage(Handler.java:102)         at android.os.Looper.loop(Looper.java:154)         at android.app.ActivityThread.main(ActivityThread.java:6119)         at java.lang.reflect.Method.invoke(Native Method)         at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)         at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)      Caused by: org.xmlpull.v1.XmlPullParserException: Binary XML file line #4<gradient> tag requires 'angle' attribute to be a multiple of 45         at android.graphics.drawable.GradientDrawable.updateGradientDrawableGradient(GradientDrawable.java:1572)         at android.graphics.drawable.GradientDrawable.inflateChildElements(GradientDrawable.java:1394)         at android.graphics.drawable.GradientDrawable.inflate(GradientDrawable.java:1215)         at android.graphics.drawable.DrawableInflater.inflateFromXml(DrawableInflater.java:130)         at android.graphics.drawable.Drawable.createFromXmlInner(Drawable.java:1227)         at android.graphics.drawable.Drawable.createFromXml(Drawable.java:1200)         at android.content.res.ResourcesImpl.loadDrawableForCookie(ResourcesImpl.java:715)             ... 41 more  

  • 0

    回答

  • 20

    浏览

我在xml文件中使用了一个textview  然后设置了hint属性 在layout中可以正常使用 但是在layout-v26中hint只能显示第一个字 且再次setText时 添加的约束都无效

  • 3

    回答

  • 31

    浏览

MultiAutoCompleteTextView怎么实现文本不换行,不上下滑动。而是单行,横向滑动。singleline和maxLines都没有效果。

回答 SaluteWarmTinct
采纳率86%
10天前
  • 1

    回答

  • 19

    浏览

有没有大佬做过这样的,在xml中定义好不同的生成编号的规则,根据不同的规则生成特定的编号信息

  • 1

    回答

  • 11

    浏览

上方滚动,布局如何嵌套呢,求指点一下,非常感谢。

  • 3

    回答

  • 21

    浏览

  • 4

    回答

  • 21

    浏览

有一个SharedPreferences的XML文件内容如下: <?xml version='1.0' encoding='utf-8' standalone='yes' ?> <map> <string name="三">3</string> <string name="四">4</string> <string name="九">9</string> <string name="七">7</string> <string name="一">1</string> <string name="八">8</string> <string name="二">2</string> <string name="五">5</string> <string name="六">6</string> </map>   我是有按照一二三四这样的顺序一项一项map.put()加上去的.结果储存时就变成以上那样,而再读出来再赋值到activity后就就乱了。 请问该如何能让他按原来的顺序储存好?

  • 0

    回答

  • 7

    浏览

钥匙ON工作三秒,钥匙OFF工作三秒, 如果重复操作此步骤,不启动车辆,重复三次进入保护, 启动发动机后汽油泵一直工作, 如何同时满足这三个条件让单片机控制油泵工作,要编程和电路图。 有没有哪位大神会的,求解答。