0

나는이 문제에 상당히 직면 해 있습니다. 문제는 내 앱이 SplashScreenImage.jpg를로드 한 후 검은 색 화면이 표시된다는 것입니다. 검은 색 화면은 4 ~ 5 초 동안 나타납니다. 내 앱이 방문 페이지를로드합니다.창 전화 번호 8 : 스플래시 화면 후 검은 색 화면

스플래시 화면에 일부 플러그인을 사용해 보았습니다. navigator.splashscreen.show()hide 플러그인을 사용했지만 성공하지 못했습니다.

+0

이 포럼 사이트와 달리, 우리가 "감사합니다", 또는 "어떤 도움 감사합니다", 또는 서명을 사용하지 않는 [그래서]. "[안녕하세요, '고마워,'태그 라인 및 인사말을 게시물에서 삭제해야합니까?] (http://meta.stackexchange.com/questions/2950/should-hi-thanks-taglines-and-salutations-be 참조) - 게시물에서 제거). BTW, "사전에 감사드립니다." "고맙습니다." –

답변

0

Splashscreen 바로 뒤에 나타나는 검은 색 화면의 시간을 줄이거 나 줄일 수 있다고 생각하지 않습니다. 하지만 앱을 더 빠르게 만들면 앱을 더 빨리로드 할 수 있습니다. Ways to Load Applications Faster

참조 : How to make a windows phone application load faster like default applications?

+0

안녕하세요. 실제로는 당신의 방법을 시도했지만 작동하지 않았습니다. 쉬운 방법이 있어야합니다. 나를 도와주세요. 다른 해결책으로 나간다. – vidyasagar85

1

은 말 그대로 해결이 검은 화면 문제보기에 대한 두 개 이상의 일 검색. 마지막으로 웹에서 적절한 해결책을 얻지 못하면서 문제를 파헤 치고 해결하기로 결정했습니다.

그래서 여기가

그냥에서 MainPage.xaml에 다음 줄을 추가 솔루션입니다

<Image HorizontalAlignment="Center" VerticalAlignment="Center" Source="yoursplashimage.jpg"/> 

그래서 지금에서 MainPage.xaml이

<phone:PhoneApplicationPage 
x:Class="yourappsnamespace.MainPage" 
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" 
xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" 
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
mc:Ignorable="d" FontFamily="{StaticResource PhoneFontFamilyNormal}" 
FontSize="{StaticResource PhoneFontSizeNormal}" 
Foreground="{StaticResource PhoneForegroundBrush}" 
Background="Black" 
SupportedOrientations="PortraitOrLandscape" Orientation="Portrait" 
shell:SystemTray.IsVisible="True" d:DesignHeight="768" d:DesignWidth="480" 
xmlns:my="clr-namespace:WPCordovaClassLib"> 
<Grid x:Name="LayoutRoot" Background="Transparent" HorizontalAlignment="Stretch"> 
    <Grid.RowDefinitions> 
     <RowDefinition Height="*"/> 
    </Grid.RowDefinitions> 
    <Image HorizontalAlignment="Center" VerticalAlignment="Center" Source="yoursplashimage.jpg"/> 
    <my:CordovaView HorizontalAlignment="Stretch" 
       Margin="0,0,0,0" 
       x:Name="CordovaView" 
       VerticalAlignment="Stretch" /> 
</Grid> 

</phone:PhoneApplicationPage> 

을 다음과 같이 어떤 일부의한다 이제 벙어리 블랙 스크린을 없애 버릴거야. 이미지를 깜빡 거리지 않게하려면 SplashScreenImage.jpg를 루트 폴더에서 제거하면됩니다 (참고 : SplashScreenImage.jpg를 제거하지 않으면 OK입니다. 선택에 따라 달라집니다)

0

다음 작업을 수행 할 수 있습니다. 브랜딩 용도로만 SplashScreen을 사용하고 있습니다.

새 페이지를 만듭니다.

SplashScreen 이미지를이 페이지의 배경 이미지로 설정하십시오. 로드 이벤트에

는 지연 시간이 MainPage에 이동을 통해 후이 LayoutRoot로드 이벤트가 일부 지연

를 추가 말한다.

코드는 다소 같다 : -

using System.Threading.Tasks; //add the namespace 
    private async void LayoutRoot_Loaded(object sender, RoutedEventArgs e) 
    { 
     await Task.Delay(4000); //add the delay 
     NavigationService.Navigate(new Uri("/StartingPage.xaml")); //navigate to your starting page 
    }