为了账号安全,请及时绑定邮箱和手机立即绑定

为什么我在声明命名空间后无法改变进度条的颜色等属性呢

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
   xmlns:xym="http://schemas.android.com/apk/res-auto"
   android:orientation="vertical"
   android:layout_width="match_parent"
   android:layout_height="match_parent">
 <com.example.ironbear.activitylifecycletest.progressbarView.HorizontalProgressBarWithProgress
       android:layout_width="match_parent"
       android:layout_height="wrap_content"
       android:padding="15dp"
       android:progress="20"
       xym:progress_reach_color="#610"
       xym:progress_unreach_color="#111"
       />
</LinearLayout>

正在回答

1 回答

xmlns:xym="http://schemas.android.com/apk/res-auto"

apk/后面应该是你的包名哦

0 回复 有任何疑惑可以回复我~
#1

XmeetsYM 提问者

我用的是Android studio,后面添加的是包名的话会报错,提示要使用res-auto
2016-11-13 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消
Android-打造炫酷进度条
  • 参与学习       30852    人
  • 解答问题       59    个

Android开发中各种各样的自定义进度条介绍,让你的APP更炫酷

进入课程

为什么我在声明命名空间后无法改变进度条的颜色等属性呢

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信