Android studio 安卓工作室“;编辑layout.xml中的字符串资源值,而不切换到strings.xml
我们可以将直接硬编码字符串中的字符串资源提取到Android studio 安卓工作室“;编辑layout.xml中的字符串资源值,而不切换到strings.xml,android-studio,android-resources,Android Studio,Android Resources,我们可以将直接硬编码字符串中的字符串资源提取到string.xml资源文件中吗?但是我们如何编辑字符串资源值呢 例如: <EditText android:id="@+id/notes" android:layout_width="match_parent" android:layout_height="wrap_content" android:hint="@string/notes /> 我只是在变量存储的地方打开: 窗口: 突出显示变量并按C
string.xml
资源文件中吗?但是我们如何编辑字符串资源值呢
例如:
<EditText
android:id="@+id/notes"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/notes
/>
我只是在变量存储的地方打开:
窗口:
突出显示变量并按CTRL+B或CTRL+Click
Mac:
与Windows only CMD相同,而不是CTRL