我在drawable文件夹中有ic_test.xml。
ic_test.xml
ExecutePolicy()
当我使用Glide进行加载时,Glide不起作用,因为如果我使用“ @ color,那么我将”?attr / black“ 用于” fillColor“ / black” ,Glide正在工作。 anyWay可以解决此问题吗?
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="?attr/black"
android:pathData="M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z" />
</vector>
答案 0 :(得分:1)
使用 @android:颜色/黑色
currentperiod= [studentname1, studentname2, ...etc]
def behaviorlog(name, behavior):
write name and behavior to a spreadsheet
def idle():
name=currentperiod[x]
behavior='Idle'
behaviorlog(name,behavior)
def talking():
name=currentperiod[x]
behavior='Talking'
behaviorlog(name,behavior)
def late():
name=currentperiod[x]
behavior='Late'
behaviorlog(name,behavior)
def rude():
name=currentperiod[x]
behavior='Rude'
behaviorlog(name,behavior)
def misplaced():
name=currentperiod[x]
behavior='Misplaced'
behaviorlog(name,behavior)
from tkinter import *
master= Tk()
for x in range(len(currentperiod)):
Label(master, text=currentperiod[x]).grid(row=x, sticky = W)
button1=Button(master, text='Idle', command=idlemaker)
button1.grid(row=x, column=1, sticky=W, pady=4)
button2=Button(master, text='Talking', command=talking)
button2.grid(row=x, column=2, sticky=W, pady=4)
button3=Button(master, text='Late', command=late)
button3.grid(row=x, column=3, sticky=W, pady=4)
button4=Button(master, text='Rude', command=rude)
button4.grid(row=x, column=4, sticky=W, pady=4)
button5=Button(master, text='Misplaced', command=misplaced)
button5.grid(row=x, column=5, sticky=W, pady=4)
mainloop( )
答案 1 :(得分:0)
将此添加到您的styles.xml
:
<item name="black">#000000</item>
?
仅用于访问styles.xml
,而不能访问colors.xml
。