Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-14223] Android: Holo theme: Views with borderRadius inside a ScrollView fail to show

GitHub Issuen/a
TypeBug
PriorityLow
StatusReopened
ResolutionUnresolved
Affected Version/sRelease 3.1.0
Fix Version/sn/a
ComponentsAndroid
LabelsScrollView, android, borderRadius
ReporterThomas Neerup
AssigneeUnknown
Created2013-06-10T10:27:59.000+0000
Updated2018-02-28T20:03:41.000+0000

Description

*Problem* When a view with borderRadius=1 is put inside a scrollView and the height exceeds the height of the device, it fails to show on the screen. *Steps to reproduce* 1. Create a new Default Alloy Project 2. Drop the attached index.xml 3. Change tiapp.xml 3.1 Change defaultunit to dip:
<property name="ti.ui.defaultunit" type="string">dip</property>
3.2 Add:
    <android xmlns:android="http://schemas.android.com/apk/res/android">
        <manifest>
            <supports-screens android:anyDensity="true"/>
            <uses-sdk android:targetSdkVersion="17"/> 
            <application
                android:theme="@android:style/Theme.Holo.Light">
            </application>
        </manifest>
    </android>
4. Run the Project and see the the Green view is missing. (The Bug) 5. Change borderRadius from 1 to 0 6. Run the Project again and see the Green view is showing as i should In the index.xml the view is set to 1000. If the device has a larger screen, just increase the height so it is larger than the screen.

Attachments

FileDateSize
index.xml2013-06-10T10:27:59.000+0000304

Comments

  1. Daniel Sefton 2013-06-11

    Cannot reproduce on Samsung Galaxy S2 2.3.6, or 4.1.2 x86 emulator with Ti SDK 3.0.2 GA, 3.1 GA 3.1 RC or 3.2 CI. The green view is always there with borderRadius set to 1 or 0. Please provide your Android version, and maybe a screenshot.
  2. Thomas Neerup 2013-06-12

    So sorry... need the following in ...
        <android xmlns:android="http://schemas.android.com/apk/res/android">
               <manifest>
                   <supports-screens android:anyDensity="true"/>
                   <uses-sdk android:targetSdkVersion="17"/> 
                   <application
                       android:theme="@android:style/Theme.Holo.Light">
                   </application>
               </manifest>
           </android>
       
    for the error to appear...

JSON Source