当前位置: 首页>>代码示例>>Java>>正文


Java CircularProgressButton.setOnClickListener方法代码示例

本文整理汇总了Java中com.dd.CircularProgressButton.setOnClickListener方法的典型用法代码示例。如果您正苦于以下问题:Java CircularProgressButton.setOnClickListener方法的具体用法?Java CircularProgressButton.setOnClickListener怎么用?Java CircularProgressButton.setOnClickListener使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.dd.CircularProgressButton的用法示例。


在下文中一共展示了CircularProgressButton.setOnClickListener方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: initViews

import com.dd.CircularProgressButton; //导入方法依赖的package包/类
private void initViews(View view)
{
    // 上传照片的View
    uploadPhotoLayout = (RelativeLayout) view.findViewById(R.id.upload_photo);
    detectPhotoButton = (CircularProgressButton) uploadPhotoLayout.findViewById(R.id.detect_photo_button);
    detectPhotoButton.setOnClickListener(this);
    photoImageView = (ImageView) view.findViewById(R.id.photo_img);
    photoImageView.setOnClickListener(this);

    // 显示结果的View
    this.containerView = view.findViewById(R.id.face_detect_container);
    photoResultImageView = (ImageView) view.findViewById(R.id.detect_result_img);
    photoResultImageView.setOnClickListener(this);
    ageTextView = (TextView) view.findViewById(R.id.age_text);
    genderTextView = (TextView) view.findViewById(R.id.gender_text);
    smileTextView = (TextView) view.findViewById(R.id.smile_text);
    raceTextView = (TextView) view.findViewById(R.id.race_text);
}
 
开发者ID:VernonVan,项目名称:Face,代码行数:19,代码来源:FaceDetectFragment.java

示例2: onCreateView

import com.dd.CircularProgressButton; //导入方法依赖的package包/类
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
                         Bundle savedInstanceState) {
    provider = getArguments().getParcelable(ARG_PROVIDER);
    View rootView = inflater.inflate(R.layout.fragment_details_query, container, false);
    TextView help = (TextView) rootView.findViewById(R.id.help);
    help.setText(getResources().getString(R.string.help_info));
    button = (CircularProgressButton) rootView.findViewById(R.id.injection_button);
    button.setOnClickListener(this);
    et = (EditText) rootView.findViewById(R.id.injection_et);
    et.setText(R.string.sql_injection);
    return rootView;
}
 
开发者ID:AlexeyZatsepin,项目名称:CP-Tester,代码行数:14,代码来源:QueryFragment.java

示例3: initViews

import com.dd.CircularProgressButton; //导入方法依赖的package包/类
private void initViews(View view)
{
    // 上传照片的View
    uploadPhotoLayout = (RelativeLayout) view.findViewById(R.id.upload_photo);
    detectPhotoButton = (CircularProgressButton) uploadPhotoLayout.findViewById(R.id.detect_photo_button);
    detectPhotoButton.setText(R.string.funnyChartlet);
    detectPhotoButton.setOnClickListener(this);
    photoImageView = (ImageView) view.findViewById(R.id.photo_img);
    photoImageView.setOnClickListener(this);

    // 趣味贴图的View
    this.containerView = view.findViewById(R.id.funny_chartlet_container);
    funnyChartletPhoto = (ImageView) view.findViewById(R.id.funny_chartlet_photo);
    funnyChartletPhoto.setOnClickListener(this);
    eye1Button = (ImageButton) view.findViewById(R.id.eye1);
    eye1Button.setOnClickListener(this);
    eye2Button = (ImageButton) view.findViewById(R.id.eye2);
    eye2Button.setOnClickListener(this);
    eye3Button = (ImageButton) view.findViewById(R.id.eye3);
    eye3Button.setOnClickListener(this);
    eye4Button = (ImageButton) view.findViewById(R.id.eye4);
    eye4Button.setOnClickListener(this);
    eye5Button = (ImageButton) view.findViewById(R.id.eye5);
    eye5Button.setOnClickListener(this);
    eye6Button = (ImageButton) view.findViewById(R.id.eye6);
    eye6Button.setOnClickListener(this);
    eye7Button = (ImageButton) view.findViewById(R.id.eye7);
    eye7Button.setOnClickListener(this);
    eye8Button = (ImageButton) view.findViewById(R.id.eye8);
    eye8Button.setOnClickListener(this);
    eye9Button = (ImageButton) view.findViewById(R.id.eye9);
    eye9Button.setOnClickListener(this);
}
 
开发者ID:VernonVan,项目名称:Face,代码行数:34,代码来源:FunnyCharletFragment.java

示例4: initViews

import com.dd.CircularProgressButton; //导入方法依赖的package包/类
private void initViews(View view)
{
    this.containerView = view.findViewById(R.id.similar_face_container);
    similarResultTextView = (HTextView) view.findViewById(R.id.similar_result_text);
    similarFace1ImageView = (ImageView) view.findViewById(R.id.similar_face_img1);
    similarFace1ImageView.setOnClickListener(this);
    similarFace2ImageView = (ImageView) view.findViewById(R.id.similar_face_img2);
    similarFace2ImageView.setOnClickListener(this);
    getSimilarIndexButton = (CircularProgressButton) view.findViewById(R.id.similar_index_button);
    getSimilarIndexButton.setOnClickListener(this);
}
 
开发者ID:VernonVan,项目名称:Face,代码行数:12,代码来源:SimilarFaceFragment.java

示例5: onCreate

import com.dd.CircularProgressButton; //导入方法依赖的package包/类
@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main_layout);

    username = (EditText) findViewById(R.id.main_username_editText);
    password = (EditText) findViewById(R.id.main_password_editText);

    loginButton = (CircularProgressButton) findViewById(R.id.main_login_button);
    loginButton.setOnClickListener(listener);

}
 
开发者ID:helloqiu,项目名称:mianliao-login-android,代码行数:13,代码来源:MainActivity.java

示例6: onCreate

import com.dd.CircularProgressButton; //导入方法依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_login);

    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP)
        initTaskDescriptionConfig();

    accountManager = AccountManager.get(getBaseContext());

    Account[] accounts = accountManager.getAccountsByType(AccountGeneral.ACCOUNT_TYPE);

    if(accounts.length > 0) {
        Toast.makeText(this, getString(R.string.warning_multiple_account), Toast.LENGTH_LONG).show();
        finish();
        return;
    }

    mAuthTokenType = getIntent().getStringExtra(ARG_AUTH_TYPE);
    if (mAuthTokenType == null)
        mAuthTokenType = AccountGeneral.AUTHTOKEN_TYPE_FULL_ACCESS;

    // Set up the login form.
    mRegistrationView = (EditText) findViewById(R.id.registration);

    //Allow only digits or hyphen
    InputFilter filter = new InputFilter() {
        //TODO: Fix some bugs
        @Override
        public CharSequence filter(CharSequence source, int start, int end, Spanned dest, int dstart, int dend) {

            if (dest.length() >= 11) return "";

            for (int i = start; i < end; i++) {
                if (!Character.isDigit(source.charAt(i))) return "";

                if (dstart == 9) return "-" + source.charAt(i);
            }

            return null;
        }
    };

    mRegistrationView.setFilters(new InputFilter[]{filter});

    mPasswordView = (EditText) findViewById(R.id.password);
    mPasswordView.setOnEditorActionListener(new TextView.OnEditorActionListener() {
        @Override
        public boolean onEditorAction(TextView textView, int id, KeyEvent keyEvent) {
            if (id == R.id.login || id == EditorInfo.IME_NULL) {
                attemptLogin();
                return true;
            }
            return false;
        }
    });

    mRegistrationSignInButton = (CircularProgressButton) findViewById(R.id.registration_sign_in_button);
    mRegistrationSignInButton.setOnClickListener(new OnClickListener() {
        @Override
        public void onClick(View view) {
            attemptLogin();
        }
    });

}
 
开发者ID:gabrielduque,项目名称:unicap,代码行数:67,代码来源:LoginActivity.java

示例7: onViewCreated

import com.dd.CircularProgressButton; //导入方法依赖的package包/类
@Override
public void onViewCreated(View view, Bundle savedInstanceState) {
    super.onViewCreated(view, savedInstanceState);

    mListView = (ListView) view.findViewById(android.R.id.list);
    ViewCompat.setOverScrollMode(mListView, ViewCompat.OVER_SCROLL_NEVER);

    mListView.setOnItemClickListener(this);

    final LayoutInflater inflater = LayoutInflater.from(getActivity());
    final View headerView = inflater.inflate(R.layout.navigation_drawer_header,
            mListView, false);
    mListView.addHeaderView(headerView);

    // Register for the login event
    mUserClient.getBus().register(mUserListener);

    final View headerUser = headerView.findViewById(R.id.navigation_drawer_header_background);
    headerUser.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(final View v) {
            startActivityForResult(new Intent(getActivity(), UserProfileActivity.class), 100);
        }
    });

    mUsernameTextView = (TextView) headerView
            .findViewById(R.id.navigation_drawer_fragment_username);
    mAvatar = (ImageView) headerView.findViewById(R.id.navigation_drawer_fragment_avatar);

    mLoginLogout = (CircularProgressButton) headerView
            .findViewById(R.id.navigation_drawer_login_logout);
    mLoginLogout.setOnClickListener(new LoginLogoutListener());
    mLoginLogout.setIndeterminateProgressMode(true);

    final XDAAccount selectedAccount = AccountUtils.getAccount(getActivity());
    if (selectedAccount == null) {
        RetrofitClient.setAuthToken(null);
    } else {
        RetrofitClient.setAuthToken(selectedAccount.getAuthToken());
        mUserClient.getUserProfileAsync();
    }
    onUserAccountSelected(selectedAccount);

    mAdapter.onUserProfileChanged(selectedAccount);
    mSectionAdapter.notifyDataSetChanged();

    mListView.setAdapter(mSectionAdapter);
}
 
开发者ID:xda,项目名称:XDA-One,代码行数:49,代码来源:NavigationDrawerFragment.java


注:本文中的com.dd.CircularProgressButton.setOnClickListener方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。