Uploaded image for project: 'Documentation'
  1. Documentation
  2. TIDOC-3201

Android: CardView visible property and hide method don't work

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      Titanium SDK 7.0.2 GA
      Google Nexus 5X 7.1.0 (emulator)

      Description

      I tried setting visible property to false in my view, in my tss and in my js, but nothing happens. I also tried the .hide() method, but nothing happens.

      Test code:

      xml:

      <ScrollView id="scrollView">
      	<CardView id="cardEvent" visible="false">
      		<Label id="titleEvent">Test</Label>
      		<Label id="dateEvent">16/03/2018</Label>
      			
      		<Label id="descEvent">Test</Label>
      	</CardView>
      </ScrollView>
      

      tss:

      "#scrollView": {
      	layout: 'vertical'
      }
      "#cardEvent" : {
      	top: "20dp",
      	left: "20dp",
      	right: "20dp",
      	bottom: "20dp",
      	width: Ti.UI.FILL,
      	height: Ti.UI.SIZE,
      	contentPadding: 40,
      	cardCornerRadius: 20,
      	cardUseCompatPadding: true,
      	backgroundColor: "#fafafa",
      	layout: 'vertical'
      }
      "#titleEvent" :{
      	left: "16dp",
      	top: "24dp",
      	color: "black",
      	font : {
      		fontSize: "24sp"
      	}
      }
       
      "#dateEvent" : {
      	left: "16dp",
      	top: "12dp",
      	color: "black",
      	font: {
      		fontSize: "14sp"
      	}
      }
       
      "#descEvent" : {
      	top: "16dp",
      	bottom: "24dp",
      	left: "16dp",
      	right: "16dp",
      	font: {
      		fontSize: "14sp"
      	},
      	color: "black",
      	width: Ti.UI.SIZE,
      	height: Ti.UI.SIZE 
      }
      

      js:

      $.cardEvent.hide();
      

        Attachments

          Activity

            People

            • Assignee:
              shossain Shak Hossain
              Reporter:
              gfigueras Guillermo Figueras
            • Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:

                Backbone Issue Sync

                • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                  Git Source Code