2016-07-19 1 views
0

모든 앱에서이 문제가 발생합니다. 모든 OS 버전에서 지속됩니다. 아래 스크린 샷을 통해 문제점을 확인할 수 있습니다. 앱이 실행 중일 때 스플래시 화면이 표시되는 창의 위아래 막대가 있습니다.Appcelerator : Android 창 상단 및 하단에 전체 화면이 아닙니다 ~ 2 %가 여전히 스플래시 화면을 표시합니다

var self = Titanium.UI.createWindow({ 
title : 'Tab 1', 
backgroundColor : '#fff', 
fullscreen : true, 
backgroundImage : "/images/homeBG.png", 
orientationModes : [Titanium.UI.PORTRAIT], 
}); 
self.open(); 

custom_theme.xml

<?xml version="1.0" encoding="utf-8"?> 
<resources> 
    <style name="Theme.NoActionBar" parent="@style/Theme.Titanium"> 
    <!-- Depending on the parent theme, this may be called android:windowActionBar instead of windowActionBar --> 
    <item name="windowActionBar">false</item> 
    <item name="android:paddingBottom">2dp</item> 
    <item name="android:paddingTop">2dp</item> 
    </style> 
</resources> 

Splash Screen

App Screen Shot

답변

0
<item name="android:paddingBottom">2dp</item> 
<item name="android:paddingTop">2dp</item> 

는 것 같다 (시작 화면이 계속 표시입니다 당신은 상단과 하단에 볼 수 있습니다) 그러나 문제는 내 텍스트 필드의 패딩을 변경하는 데 사용했습니다. 그것은 그것없이 정확하게 표시되지 않았기 때문입니다.

<item name="android:paddingBottom">2dp</item> 
<item name="android:paddingTop">2dp</item> 

그리고 나는 그들의 XML/TSS 파일에 텍스트 필드를 해결하려고 : 나는 UI 작업

1

이 custom_theme.xml에서이 두 가지 속성을 제거 할 수있는 또 다른 방법을 찾아야 할 것이다 테마 파일을 통해 채우기를 변경할 필요가 전혀 없으며 xml/tss에서 확실히 수행 할 수 있습니다.

마음에 드시면 사람들이 당신을 도울 수 있도록 텍스트 필드의 실제 문제를 공유 할 수 있습니다.

+0

나는 텍스트 필드에 특정 질문 [여기] (http://stackoverflow.com/questions/38488989/appcelerator-android-textfield-bottom-and-large-unable-to-chan) : –

+0

텍스트 필드의 문제점은 무엇입니까? UI 관련 또는 다른 것입니까? –

관련 문제