Finally i got a resolution. hope i could help others
This block is get the position and use animate to jump to the specific
mCardScroller.setSelection(mCardScroller.getSelectedItemPosition() + 1); mCardScroller.startAnimation(AnimationUtils.makeInAnimation(mCardScroller.getContext(), true));BUT!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! NOT WORK
IMPORTANT!!ADD THIS IN YOUR ONCREATE()
mCardScroller.activate()AND CHECK THIS TWO LIFE PERIOD
@Override protected void onResume() { super.onResume(); mCardScroller.activate(); } @Override protected void onPause() { mCardScroller.deactivate(); super.onPause(); }GOOGLE GLASS 跳到特定的CARD,如果你咬遇到一樣的問題setSelection始終無法使用,在ONCREATE()理面加入mCardScroller.activate()就會有結果了 希望可以幫住到更多人,因為GLASS的資訊好少,我們也花了一點時間來解決這個問題!!
沒有留言:
張貼留言