Esempio n. 1
0
 public TitleBuilder(Context context, View view) {
   if (null == view) {
     L.error(this, "view is null");
   } else if (null == context) {
     L.error(this, "context is null");
   } else {
     left_tv = (TextView) view.findViewById(R.id.pop_left_tv);
     title_tv = (TextView) view.findViewById(R.id.pop_title_tv);
     right_ib = (ImageButton) view.findViewById(R.id.pop_right_ib);
     this.context = context;
   }
 }
 @SFIntegerMessage(messageId = ActivityMessageId.OBJECTTEST1, theadId = ThreadId.BackThread)
 public void objectTest1(String str, Integer num) {
   Log.e(TAG, "method->objectTest1,str: " + str + " num: " + num);
   L.error(TAG, "method->objectTest1,thread name: " + Thread.currentThread().getName());
   if (num == 4) {
     SFBridgeManager.unregister(this);
   }
   SFBridgeManager.send(ActivityMessageId.OBJECTTEST1, "object hello", ++num);
 }
 public void onEvent(TVGameInterface.CategoryCountEvent countEvent) {
   L.info(TAG, "method->onReceiveTotalPageCount,countEvent: " + countEvent);
   int count = (int) Math.ceil(countEvent.mCount * 1.0f / 12);
   if (count == mHomePageAdapter.getCount()) {
     return;
   } else {
     ((HomePageAdapter) mHomePageAdapter).setCount(count);
     notifyDataSetChange();
   }
 }
 @SFIntegerMessage(messageId = ActivityMessageId.TEST2)
 public void receiveTest2() {
   Log.e(TAG, "method->receiveTest1,str: ");
   L.error(TAG, "method->receiveTest2,thread name: " + Thread.currentThread().getName());
 }
 @SFIntegerMessage(messageId = ActivityMessageId.TEST1, theadId = ThreadId.MainThread)
 public void receiveTest1(String str) {
   Log.e(TAG, "method->receiveTest1,str: " + str);
   L.error(TAG, "method->receiveTest1,thread name: " + Thread.currentThread().getName());
 }