第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問(wèn)題,去搜搜看,總會(huì)有你想問(wèn)的

自定義viewgroup時(shí),報(bào)錯(cuò)提示:沒(méi)有找到屬性rightpadding的資源標(biāo)識(shí)符,求指導(dǎo)

自定義viewgroup時(shí),報(bào)錯(cuò)提示:沒(méi)有找到屬性rightpadding的資源標(biāo)識(shí)符,求指導(dǎo)

andriod_2014 2015-01-08 17:17:25
xml文件中的引用:<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"? ? xmlns:tools="http://schemas.android.com/tools"? ? xmlns:hyman="http://schemas.android.com/apk/res/com.imooc.slidingmenu"? ? android:layout_width="match_parent"? ? android:layout_height="match_parent" >已指明屬性的用法:public SlidingMenu(Context context, AttributeSet attrs, int defStyle) {super(context,attrs,defStyle);TypedArray a = context.getTheme().obtainStyledAttributes(attrs,R.styleable.SlidingMenu, defStyle, 0);int n = a.getIndexCount();for (int i = 0; i < n; i++){int attr = a.getIndex(i);switch (attr){case R.styleable.SlidingMenu_rightPadding:mMenuRightPadding = a.getDimensionPixelSize(attr,(int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 50, context.getResources().getDisplayMetrics()));break;}}attr.xml:<?xml version="1.0" encoding="utf-8"?><resources>? ? <attr name="rightPadding" format="dimension"></attr>? ? <declare-styleable name="SlidingMenu">? ? ? ? <attr name="rightPadding"></attr>? ? </declare-styleable></resources>mainfest中的包名也是正確的<?xml version="1.0" encoding="utf-8"?><manifest xmlns:android="http://schemas.android.com/apk/res/android"? ? package="com.immoc.slidingmenu"? ? android:versionCode="1"? ? android:versionName="1.0" >? ? <uses-sdk? ? ? ? android:minSdkVersion="8"? ? ? ? android:targetSdkVersion="21" />? ? <application? ? ? ? android:allowBackup="true"? ? ? ? android:icon="@drawable/ic_launcher"? ? ? ? android:label="@string/app_name"? ? ? ? android:theme="@style/Theme.AppCompat.Light.NoActionBar" >? ? ? ? <activity? ? ? ? ? ? android:name="com.imooc.slidingmenu.MainActivity"? ? ? ? ? ? android:label="@string/app_name" >? ? ? ? ? ? <intent-filter>? ? ? ? ? ? ? ? <action android:name="android.intent.action.MAIN" />? ? ? ? ? ? ? ? <category android:name="android.intent.category.LAUNCHER" />? ? ? ? ? ? </intent-filter>? ? ? ? </activity>? ? </application></manifest>
查看完整描述

1 回答

?
圖文

TA貢獻(xiàn)3條經(jīng)驗(yàn) 獲得超0個(gè)贊

54ae5c2c00014d8005000250.jpg

改成這樣試試看

查看完整回答
反對(duì) 回復(fù) 2015-01-08
  • 1 回答
  • 0 關(guān)注
  • 3040 瀏覽

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)