gpt4 book ai didi

android.support.wearable.view.WearableListView.setVisibility()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-24 12:11:05 25 4
gpt4 key购买 nike

本文整理了Java中android.support.wearable.view.WearableListView.setVisibility()方法的一些代码示例,展示了WearableListView.setVisibility()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WearableListView.setVisibility()方法的具体详情如下:
包路径:android.support.wearable.view.WearableListView
类名称:WearableListView
方法名:setVisibility

WearableListView.setVisibility介绍

暂无

代码示例

代码示例来源:origin: nglauber/dominando_android2

@Override
  public void onTimerSelected(View view) {
    mPodeFechar = false;
    messageView.setVisibility(View.GONE);
    mListView.setVisibility(View.VISIBLE);
  }
});

代码示例来源:origin: AmazMod/AmazMod

public void hideInfo(View v) {
  infoView.setVisibility(View.GONE);
  listView.setVisibility(View.VISIBLE);
}

代码示例来源:origin: AmazMod/AmazMod

private void hideAppInfo(){
  infoView.setVisibility(View.GONE);
  wearAppsFrameLayout.setVisibility(View.VISIBLE);
  listView.setVisibility(View.VISIBLE);
}

代码示例来源:origin: AmazMod/AmazMod

@Override
  public boolean onLongClick(View v) {
    if (screenToggle)
      setMaxBrightness(false);
    Log.d(Constants.TAG, "WearActivity flashlight off");
    mainLayout.setBackground(getResources().getDrawable(R.drawable.background));
    listView.setVisibility(View.VISIBLE);
    return false;
  }
});

代码示例来源:origin: SMSTicket/sms-ticket

@Override
protected void startConnected() {
  super.startConnected();
  vTxtError.setText("");
  vTxtError.setVisibility(View.GONE);
  vList.setVisibility(View.VISIBLE);
  vImage.setVisibility(View.VISIBLE);
}

代码示例来源:origin: nglauber/dominando_android2

@Override
public void onClick(WearableListView.ViewHolder viewHolder) {
  int position = viewHolder.getAdapterPosition();
  // Clicou em um item da lista...
  if (position == 3) {
    mListView.setVisibility(View.GONE);
    exibirConfirmacao();
  }
}

代码示例来源:origin: AmazMod/AmazMod

@Override
  public void onClick(View v) {
    Log.i(Constants.TAG,"WearAppsFragment showAppInfo buttonClose");
    scrollView.post(new Runnable() {
      public void run() {
        Log.d(Constants.TAG, "WearAppsFragment showAppInfo scrollToTop");
        //scrollView.fullScroll(scrollView.FOCUS_UP);
        scrollView.scrollTo(0, scrollView.getTop());
      }
    });
    infoView.setVisibility(View.GONE);
    wearAppsFrameLayout.setVisibility(View.VISIBLE);
    listView.setVisibility(View.VISIBLE);
  }
});

代码示例来源:origin: AmazMod/AmazMod

public void showConfirm() {
  //listView.getAnimation().setFillAfter(false);
  listView.setVisibility(View.GONE);
  mHeader.setVisibility(View.GONE);
  confirmView.setVisibility(View.VISIBLE);
  listView.setClickable(false);
  listView.clearAnimation();
  confirmView.requestFocus();
  confirmView.setClickable(true);
}

代码示例来源:origin: AmazMod/AmazMod

public void showConfirm() {
  //listView.getAnimation().setFillAfter(false);
  listView.setVisibility(View.GONE);
  mHeader.setVisibility(View.GONE);
  confirmView.setVisibility(View.VISIBLE);
  listView.setClickable(false);
  listView.clearAnimation();
  confirmView.requestFocus();
  confirmView.setClickable(true);
}

代码示例来源:origin: SMSTicket/sms-ticket

@Override
  protected void startDisconnected() {
    super.startDisconnected();
    vTxtError.setText(getString(R.string.error_please_connect));
    vTxtError.setVisibility(View.VISIBLE);
    vList.setVisibility(View.GONE);
    vImage.setVisibility(View.GONE);
  }
}

代码示例来源:origin: AmazMod/AmazMod

public void flashlight() {
  Log.d(Constants.TAG, "WearActivity flashlight on");
  listView.setVisibility(View.GONE);
  mainLayout.setBackgroundColor(getResources().getColor(android.R.color.white));
  setMaxBrightness(true);
  mainLayout.setOnLongClickListener(new View.OnLongClickListener() {
    @Override
    public boolean onLongClick(View v) {
      if (screenToggle)
        setMaxBrightness(false);
      Log.d(Constants.TAG, "WearActivity flashlight off");
      mainLayout.setBackground(getResources().getDrawable(R.drawable.background));
      listView.setVisibility(View.VISIBLE);
      return false;
    }
  });
}

代码示例来源:origin: AmazMod/AmazMod

public void hideConfirm() {
  //confirmView.getAnimation().setFillAfter(false);
  confirmView.setVisibility(View.GONE);
  mHeader.setVisibility(View.VISIBLE);
  listView.setVisibility(View.VISIBLE);
  confirmView.setClickable(false);
  confirmView.clearAnimation();
  listView.requestFocus();
  listView.setClickable(true);
}

代码示例来源:origin: AmazMod/AmazMod

public void hideConfirm() {
  //confirmView.getAnimation().setFillAfter(false);
  confirmView.setVisibility(View.GONE);
  mHeader.setVisibility(View.VISIBLE);
  listView.setVisibility(View.VISIBLE);
  confirmView.setClickable(false);
  confirmView.clearAnimation();
  listView.requestFocus();
  listView.setClickable(true);
}

代码示例来源:origin: AmazMod/AmazMod

@Override
public void onClick(WearableListView.ViewHolder viewHolder) {
  final int itemChosen = viewHolder.getPosition();
  Log.i(Constants.TAG,"WearAppsFragment onClick itemChosen: " + itemChosen);
  if (appInfoList.get(itemChosen).getAppName().equals(REFRESH)) {
    appInfoList.clear();
    mAdapter.clear();
    wearAppsFrameLayout.setVisibility(View.GONE);
    listView.setVisibility(View.GONE);
    progressBar.setVisibility(View.GONE);
    loadApps();
  } else
    showAppInfo(itemChosen);
  //Toast.makeText(mContext, "Selected: " + appInfoList.get(itemChosen).getAppName(), Toast.LENGTH_SHORT).show();
}

代码示例来源:origin: AmazMod/AmazMod

@Override
public void onClick(WearableListView.ViewHolder viewHolder) {
  final int itemChosen = viewHolder.getPosition();
  Log.i(Constants.TAG,"WearNotificationsFragment onClick itemChosen: " + itemChosen);
  if (notificationInfoList.get(itemChosen).getNotificationTitle().equals(REFRESH)) {
    notificationInfoList.clear();
    mAdapter.clear();
    wearNotificationsFrameLayout.setVisibility(View.GONE);
    listView.setVisibility(View.GONE);
    progressBar.setVisibility(View.GONE);
    updateContent();
  } else
    showNotification(itemChosen);
  //Toast.makeText(mContext, "Selected: " + appInfoList.get(itemChosen).getAppName(), Toast.LENGTH_SHORT).show();
}

代码示例来源:origin: AmazMod/AmazMod

@SuppressLint("SetTextI18n")
public void showInfo() {
  setButtonTheme(buttonClose);
  ActivityManager.MemoryInfo memoryInfo = new ActivityManager.MemoryInfo();
  ActivityManager activityManager = (ActivityManager) getSystemService(ACTIVITY_SERVICE);
  if (activityManager != null) {
    try {
      activityManager.getMemoryInfo(memoryInfo);
      double freeRAM = memoryInfo.availMem / 0x100000L;
      long elapsedRealtime = SystemClock.elapsedRealtime() ;
      long sleepTime = SystemClock.elapsedRealtime() - SystemClock.uptimeMillis();
      textView02.setText("Uptime: " + formatInterval(elapsedRealtime, false));
      textView03.setText("SleepTime: " + formatInterval(sleepTime, false));
      textView04.setText("Free RAM: " + freeRAM + "MB");
    } catch (Exception ex) {
      Log.e(Constants.TAG, "WearActivity onCreate exception: " + ex.toString());
    }
  }
  infoView.setVisibility(View.VISIBLE);
  listView.setVisibility(View.GONE);
}

代码示例来源:origin: AmazMod/AmazMod

listView.setVisibility(View.GONE);
infoView.setVisibility(View.VISIBLE);

代码示例来源:origin: AmazMod/AmazMod

listView.setVisibility(View.GONE);
progressBar.setVisibility(View.VISIBLE);

代码示例来源:origin: AmazMod/AmazMod

Log.i(Constants.TAG,"WearAppsFragment loadApps");
wearAppsFrameLayout.setVisibility(View.VISIBLE);
listView.setVisibility(View.GONE);
progressBar.setVisibility(View.VISIBLE);

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com