我正在使用Xamarin.Forms并且正在瞄准iOS和Android.
XAML
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="XilnexOTM.Views.LoginPage"
BackgroundImage="bg1.png" >
<ScrollView>
<StackLayout Orientation="Vertical">
<Label Text="PICTURE" />
<Label Text="PIC 2" />
<Entry Placeholder="Username" />
<Entry Placeholder="Password" IsPassword="true"/>
<Button x:Name="btn_Login"
Text="Login"
BackgroundColor="#FF0000"/>
</StackLayout>
</ScrollView>
</ContentPage>
Run Code Online (Sandbox Code Playgroud)
是否有任何可能的方法将概念CSS应用于Xamarin.Forms?
xx {
background-size: cover;
background-position: right bottom;
}
Run Code Online (Sandbox Code Playgroud) 在我的Playstore中,我注意到反混淆代码包含了大量<OR>的堆栈跟踪.
(例子at <OR>.onAttach(ProfileLandingFragment.java)).
这<OR>意味着什么?
at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)
at android.view.LayoutInflater.onCreateView(LayoutInflater.java:666)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:691)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:752)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:760)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:760)
at android.view.LayoutInflater.inflate(LayoutInflater.java:495)
at android.view.LayoutInflater.inflate(LayoutInflater.java:397)
at com.example.fragment.LandingFragment.newInstance(ProfileLandingFragment.java)
at <OR>.onAttach(ProfileLandingFragment.java)
at <OR>.onActivityResult(ProfileLandingFragment.java)
at <OR>.onCreateView(ProfileLandingFragment.java)
at <OR>.onViewCreated(ProfileLandingFragment.java)
at <OR>.access$000(ProfileLandingFragment.java)
at android.support.v4.app.Fragment.isSupportFragmentClass(Fragment.java)
at <OR>.getLayoutInflater(Fragment.java)
at <OR>.onDetach(Fragment.java)
at <OR>.onOptionsMenuClosed(Fragment.java)
at <OR>.onContextItemSelected(Fragment.java)
at <OR>.performCreateView(Fragment.java)
at <OR>.performCreateOptionsMenu(Fragment.java)
at android.support.v4.app.FragmentManagerImpl.modifiesAlpha(FragmentManagerImpl.java)
at <OR>.shouldRunOnHWLayer(FragmentManagerImpl.java)
at <OR>.throwException(FragmentManagerImpl.java)
at <OR>.beginTransaction(FragmentManagerImpl.java)
at <OR>.popBackStack(FragmentManagerImpl.java)
at <OR>.putFragment(FragmentManagerImpl.java)
at <OR>.getFragment(FragmentManagerImpl.java)
at <OR>.saveFragmentInstanceState(FragmentManagerImpl.java)
at <OR>.dump(FragmentManagerImpl.java)
at <OR>.makeOpenCloseAnimation(FragmentManagerImpl.java)
at <OR>.makeFadeAnimation(FragmentManagerImpl.java)
at <OR>.loadAnimation(FragmentManagerImpl.java)
at <OR>.isStateAtLeast(FragmentManagerImpl.java)
at <OR>.moveToState(FragmentManagerImpl.java) …Run Code Online (Sandbox Code Playgroud)