小编Kit*_*tto的帖子

如何防止键盘打开时挤压背景图像?

我正在使用Xamarin.Forms并且正在瞄准iOSAndroid.

默认视图 没有键盘

键盘打开,背景图像被挤压 键盘打开

背景图像也在景观模式中被挤压 景观

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)

xamarin xamarin.forms

10
推荐指数
1
解决办法
7921
查看次数

<OR>在Proguard反混淆跟踪中的含义是什么?

在我的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)

proguard deobfuscation android-proguard

6
推荐指数
1
解决办法
190
查看次数