小编Edl*_*dli的帖子

硬编码字符串"Test",应该使用@string资源

嗨,大家好,我是新来的,这是我的第一个问题

这是我的代码:

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >



<TextView

    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="@string/ref"    
 />

<TextView

    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:text="Test"
 />
Run Code Online (Sandbox Code Playgroud)

我不想在第二次测试中使用字符串我该怎么办?

android-layout

6
推荐指数
1
解决办法
3万
查看次数

标签 统计

android-layout ×1