主要活动中的元素布局存在问题。我在1280x720屏幕上测试了我的应用程序并且所有元素都位于正确的位置,但是当我在480x320屏幕上启动它时,我的ImageView掉到了屏幕外面。如何在activity_main.xml布局中修复此问题?以下是我的应用元素布局的屏幕截图:enter image description here activity_main.xml的代码:
$SearchStandard = @('[0-9]{3}-[0-9]{2}-[0-9]{4}' )
$NOMATCH = @('235-[0-9]{2}-[0-9]{4}')
$NOMATCH2 = @('[0-9]{3}-[0-9]{3}-[0-9]{4}')
$Word = New-Object -ComObject Word.Application
$allword = Get-childitem -recurse *.docx , *.txt
$newobj = New-Object -com word.application
Foreach ($wd in $allword) {
$docu = $newobj.Documents.Open($wd.fullname, $false, $true)
$docu.Paragraphs | ForEach-Object {
ForEach ($SearchText in $SearchStandard) {
$_.Range.Text | Where-Object {($_ -match $SearchText) -and ($_-notmatch $NOMATCH) -and ($_-notmatch $NOMATCH2)}
}
}
}