如何TextView在一个布局中使用一个 ID创建多个s?这是我的 XML:<TextView android:id="@+id/tooltext" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="5dp" android:textColor="#ffffff" android:textStyle="bold" android:textSize="20sp" android:layout_gravity="center"/><TextView android:id="@+id/tooltext" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="5dp" android:textColor="#ffffff" android:textStyle="bold" android:textSize="20sp" android:layout_gravity="center"/><TextView android:id="@+id/tooltext" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="5dp" android:textColor="#ffffff" android:textStyle="bold" android:textSize="20sp" android:layout_gravity="center"/>这是我的 Java 代码TextView lVl = (TextView) findViewById(R.id.tooltext);lVl.setText("b a g i n n e r");当我运行时,只TextView出现一个。为什么?
添加回答
举报
0/150
提交
取消