У меня проблема с тем, что мой StackLayout не прокручивается в scrollView.
<Page loaded="loaded" id="main">
<Page.actionBar>
<ActionBar title="Register">
</ActionBar>
</Page.actionBar>
<ScrollView orientation="vertical" id="scrollView">
<StackLayout id="Content">
<Label id="Lfname" text="First name: " />
<TextField text="{{ fname }}" id="fname" hint="first name" />
<Label text="Last name: " />
<TextField text="{{ lname }}" id="lname" hint="last name" />
<Label text="E-mail: " />
<TextField text="{{ email }}" id="email" hint="email" />
<Label text="Confirm E-mail: " />
<TextField text="{{ emailConfirm }}" id="emailConfirm" hint="email" />
<Label text="Password: "/>
<TextField text="{{ password }}" id="password" secure="true"/>
<Label text="Confirm Password: "/>
<TextField text="{{ passwordConfirm }}" id="passwordConfirm" secure="true"/>
<Button id="register" text="Register" tap="onRegister" class="confirm" />
<Button id="login" text="Login" tap="onLogin" class="link"/>
</StackLayout>
</ScrollView>
</Page>
Я часами искал проблему, но не могу ее найти.Я довольно новичок в nativescript, так что это может быть проблемой.
Вот мои пакеты:
{
"description": "NativeScript Application",
"license": "SEE LICENSE IN <your-license-filename>",
"readme": "NativeScript Application",
"repository": "<fill-your-repository-here>",
"nativescript": {
"id": "org.nativescript.foodFetish",
"tns-android": {
"version": "4.0.1"
}
},
"dependencies": {
"nativescript-theme-core": "~1.0.4",
"tns-core-modules": "^4.1.0"
},
"devDependencies": {
"babel-traverse": "^6.26.0",
"babel-types": "^6.26.0",
"babylon": "6.4.5",
"lazy": "1.0.11"
}
}
И я запускаю Android 4.4.2.