Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

Layout Editor unsupport 'requestFocus' label in ScrollView #1893

Open
5 tasks done
sky130 opened this issue Aug 31, 2024 · 0 comments
Open
5 tasks done

Layout Editor unsupport 'requestFocus' label in ScrollView #1893

sky130 opened this issue Aug 31, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@sky130
Copy link

sky130 commented Aug 31, 2024

Issue Checklist

  • I confirm that this issue is not a duplicate and hasn't been reported before.
  • I agree to follow the project's code of conduct.
  • I have checked and verified that I am using the latest version of AndroidIDE from GitHub or F-Droid.

Additional terms

  • I understand that providing incomplete or inaccurate information may result in the issue being closed.
  • I agree to provide all requested details promptly for a comprehensive bug report.

Issue explanation

Layout editor cannot parse 'requestFocus' label in correctly, it will be parsed as a View label , because of that, i cannot preview ScrollView with 'requestFocus' label.

If you want to fix it, please ignore the label that it will be ok.

<?xml version="1.0" encoding="utf-8"?>
<ScrollView
     xmlns:android="http://schemas.android.com/apk/res/android"
     xmlns:app="http://schemas.android.com/apk/res-auto"
     android:layout_height="match_parent"
     android:layout_width="match_parent"
     android:id="@+id/scroll">

    <requestFocus />

    <TextView
         android:layout_height="wrap_content"
         android:layout_width="match_parent"
         android:gravity="bottom"
         android:clickable="true"
         android:layout_marginHorizontal="8dp"
         android:paddingBottom="20dp"
         android:id="@+id/textView"
         android:text="Hello World" />

</ScrollView>

Screenshot_2024-08-31-08-07-02-366_com itsaky androidide
Screenshot_2024-08-31-08-06-45-792_com itsaky androidide

Expected behavior

it can be preview in successful

Screenshot_2024-08-31-08-10-47-829_com itsaky androidide

Version name

Version : v2.7.1-beta (27102)
CI Build : true
Branch : main
Commit : 55bb46b
Variant : arm64-v8a (release)
Build type : OFFICIAL
F-Droid Build : false
F-Droid Version : null
F-Droid Version code : -1
SDK Version : 34
Supported ABIs : [arm64-v8a, armeabi-v7a, armeabi]
Manufacturer : Xiaomi
Device : 23049RAD8C

Download source

GitHub

Relevant log output

No response

@sky130 sky130 added the bug Something isn't working label Aug 31, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant