The current question follows the challenge of Android: aligning the input field with the button width.To match the input fields and buttons to the question, the following solution was provided:
<?xml version="1.0" encoding="utf-8"?>
<inset xmlns:android="http://schemas.android.com/apk/res/android"
android:insetBottom="@android:dimen/button_inset_vertical_material"
android:insetLeft="@android:dimen/button_inset_horizontal_material"
android:insetRight="@android:dimen/button_inset_horizontal_material"
android:insetTop="@android:dimen/button_inset_vertical_material">
<shape>
<solid android:color="#ffcccccc"/>
<corners android:radius="2dip"/>
<padding
android:bottom="0dip"
android:left="0dip"
android:right="0dip"
android:top="0dip"/>
</shape>
</inset>
Unfortunately, according to the error message you received, you are not allowed to redefine <inset xmlns>
:
However, it seems that Litmon's computer, which answered the previous question kindly, did not have this error.
The reason may not be related to the access modifier, or the updated Android SDK may no longer be accessible.
System resources (starting with @android:
) or library resources have unreferenced private
resources.
The error message you see here is not that you have defined the Inset Drawable, but that you have
@android:dimen/button_inset_vertical_material
@android:dimen/button_inset_horizontal_material
These two system resources are due to private
resources.
Originally, these values may be changed or deleted without notice, so I don't recommend them, but
<?xml version="1.0" encoding="utf-8"?>
<inset xmlns:android="http://schemas.android.com/apk/res/android"
android:insetBottom="@*android:dimen/button_inset_vertical_material"
android:insetLeft="@*android:dimen/button_inset_horizontal_material"
android:insetRight="@*android:dimen/button_inset_horizontal_material"
android:insetTop="@*android:dimen/button_inset_vertical_material">
<shape>
<solid android:color="#ffcccccc"/>
<corners android:radius="2dip"/>
<padding
android:bottom="0dip"
android:left="0dip"
android:right="0dip"
android:top="0dip"/>
</shape>
</inset>
You can start a resource reference by changing it to @*
.
The best way to do this is to copy only the parts you need from your system resources into your project.
914 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
581 PHP ssh2_scp_send fails to send files as intended
572 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
611 GDB gets version error when attempting to debug with the Presense SDK (IDE)
© 2024 OneMinuteCode. All rights reserved.