问题描述
您好我有一个非常快速的问题。在下面的代码中Java没有导入TextView id,我真的不明白为什么。有人可以帮帮我吗?顺便说一下,我对android编程很新。
< textview>
android:id =@ + id / display
android:layout_width =wrap_removed
android:layout_height =wrap_removed
android:layout_alignParentTop =true
android:layout_centerHorizontal =true
android:layout_marginTop =23dp
android:fontFamily =sans-serif-thin
android:text =CV你的全部是:
android:textColor =#ffffff
android:textSize =25dp
android:textStyle =italic
/>
TextView display =(TextView )findViewById(android.R.id。);
Hello I have a very quick question. In the code below Java doesn't import the TextView id, I don't really understand why. Can someone help me out please?? By the way I'm very new with android programing.
<textview>
android:id="@+id/display"
android:layout_width="wrap_removed"
android:layout_height="wrap_removed"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:layout_marginTop="23dp"
android:fontFamily="sans-serif-thin"
android:text="CV YOUR TOTAL IS: "
android:textColor="#ffffff"
android:textSize="25dp"
android:textStyle="italic"
/>
TextView display=(TextView) findViewById(android.R.id.);
推荐答案
这篇关于创建一个计算器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!