Uploaded image for project: 'Appcelerator - INBOX'
  1. Appcelerator - INBOX
  2. AC-3548

ti.modules.titanium.ui.widget.TiUILabel$1 cannot be cast to android.view.ViewGroup

    Details

      Description

      Hi, I'm getting crashes because of ti.modules.titanium.ui.widget.TiUILabel$1
      java.lang.ClassCastException Reason: ti.modules.titanium.ui.widget.TiUILabel$1 cannot be cast to android.view.ViewGroup
      Namejava.lang.ClassCastException
      Reason
      ti.modules.titanium.ui.widget.TiUILabel$1 cannot be cast to android.view.ViewGroup
      Crashed Thread

      0	java.lang.ClassCastException: ti.modules.titanium.ui.widget.TiUILabel$1 cannot be cast to android.view.ViewGroup
      !	1	at android.support.v4.app.BackStackRecord.configureTransitions(BackStackRecord.java:1132)
      2	at android.support.v4.app.BackStackRecord.beginTransition(BackStackRecord.java:1039)
      3	at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:658)
      4	at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1572)
      5	at android.support.v4.app.FragmentManagerImpl$1.run(FragmentManager.java:493)
      6	at android.os.Handler.handleCallback(Handler.java:739)
      7	at android.os.Handler.dispatchMessage(Handler.java:95)
      8	at android.os.Looper.loop(Looper.java:145)
      9	at android.app.ActivityThread.main(ActivityThread.java:5938)
      10	at java.lang.reflect.Method.invoke(Native Method)
      11	at java.lang.reflect.Method.invoke(Method.java:372)
      12	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1389)
      13	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1184)
      

      TEST Code

      XML

      <Alloy>
      <Window>
      <View class="labelOuterContainer"  id="bedroomsContainer">
      	<View class="labelInnerContainer" id="bedroomsWrapper">
      		<Label id="bedrooms" class="headerLabel" />
      		<Label id="bedroomsCount" class="contentLabel" />
      	</View>
      	<View class="innerView"/>
      </View>
      </Window>
      </Alloy>
      

      TSS

      ".labelOuterContainer":{
        height: Ti.UI.SIZE,
        width: Ti.UI.SIZE,
        layout: "horizontal",
        top: 10
      }
       
      ".labelInnerContainer":{
        height: Ti.UI.SIZE,
        width: Ti.UI.SIZE,
        layout: "vertical"
      }
       
      ".headerLabel":{
        color: Alloy.Globals.Colors.WHITE,
        left: 0,
        font:{
          fontSize: 10
        },
        wordWrap: false,
        ellipsize: true,
        width:Ti.UI.SIZE
      }
       
      ".headerLabel[formFactor=tablet]":{
        font:{
          fontSize: 16
        }
      }
       
      ".contentLabel":{
        color: Alloy.Globals.Colors.WHITE,
        top: 3,
        left: 0,
        font:{
          fontSize: 14
        },
        ellipsize: true,
        width:Ti.UI.SIZE
      }
       
      ".contentLabel[formFactor=tablet]":{
        font:{
          fontSize: 20
        }
      }
       
      ".headerLabel[platform=ios formFactor=handheld]":{
        minimumFontSize: 10,
        height: 14,
        ellipsize: false
      }
       
      ".headerLabel[platform=ios formFactor=tablet]":{
        minimumFontSize: 16,
        height: 20,
        ellipsize: false
      }
       
       
      ".contentLabel[platform=ios formFactor=handheld]":{
        minimumFontSize: 14,
        height: 18,
        ellipsize: false
      }
       
      ".contentLabel[platform=ios formFactor=tablet]":{
        minimumFontSize: 20,
        height: 24,
        ellipsize: false
      }
       
      ".innerView":{
        width: 20,
        height: Ti.UI.SIZE
      }
      
      

        Attachments

          Activity

            People

            • Assignee:
              shossain Shak Hossain (Inactive)
              Reporter:
              imbudhiraja Manish Budhiraja
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Git Integration