Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visibility parameters support And(&&) operator in fremarker android studio #3

Open
sonvp opened this issue Oct 5, 2017 · 1 comment

Comments

@sonvp
Copy link

sonvp commented Oct 5, 2017

I am creating a template using freemarker. I want to check And (&&) operator with two checkbox. I check it with &&, it not working. The following is a sample template code:

<?xml version="1.0"?>
<template
    minApi="7"
    minBuildApi="8">

.......
<parameter 
   id="hasTabLayout" 
   name="Have Tab Layout" 
   type="boolean" 
   default="false"/>

<parameter 
   id="hasRecycleViewTabOne" 
   name="Tab one have recycleView" 
   type="boolean" 
   default="false"/>

<parameter
   id="adapterTabOneName"
   name="Adapter Tab One Name"
   type="string"
   constraints="class|unique|nonempty"
   default="BlankTabOneItem"
   **visibility="hasTabLayout && hasRecycleViewTabOne"** />
.......

Can you support me resolve it. Thank

@ckdevrel
Copy link
Owner

ckdevrel commented Oct 6, 2017

@sonvp Hey thanks for opening this issue. I am not sure why (AND) operator doesn't work with free marker. I was also facing the same issue, I guess there might be some limitation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants