ActivityIndicator 때문에 삽질했네요.

listview에 무한스크롤이 적용되어 있는데,
서버에서 fetch해오는 속도보다 유저의 스크롤이 빨라서 대기 상태일 때,
loading indicator를 추가해주었거든요.

Titanium.UI.ActivityIndicator 를 사용했지요.

<!-- loading Row -->
<ItemTemplate name="loadingRow" class="cm_loadingRow" >
	<View class="cm_loadingRowWrap">
		<ActivityIndicator bindId="loadingIndicator" class="cm_loading_ai" />
	</View>
</ItemTemplate>

그런데~ ActivityIndicator가 안나오는 거에요~

http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.ActivityIndicator
에 보면 properties에는 visible조차도 없는데!!

그런데 매뉴얼에 없던 visible이 있었습니다…
visible: true 로 주니 나오더군요-_ -;;;;;;;;;;;

기본값이 false인가봐요… 그래놓고 매뉴얼에도 없으면 삽질을 하지 말입니다.

검색해보니깐…

        // If you don't set visible to true, the indicator will not show,
        // because unlike other UI elements, it is hidden by default
        visible: true, 

라네요… 어야-_ -;;;

1개의 좋아요

저도 과거에 겪었던 문제입니다. ㅠㅠ