• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java OnClickButtonListener类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中hotchemi.android.rate.OnClickButtonListener的典型用法代码示例。如果您正苦于以下问题:Java OnClickButtonListener类的具体用法?Java OnClickButtonListener怎么用?Java OnClickButtonListener使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



OnClickButtonListener类属于hotchemi.android.rate包,在下文中一共展示了OnClickButtonListener类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: setupRateApp

import hotchemi.android.rate.OnClickButtonListener; //导入依赖的package包/类
public void setupRateApp(){
    AppRate.with(this)
            .setInstallDays(0) // default 10, 0 means install day.
            .setLaunchTimes(3) // default 10
            .setRemindInterval(2) // default 1
            .setShowLaterButton(true) // default true
            .setDebug(false) // default false
            .setOnClickButtonListener(new OnClickButtonListener() { // callback listener.
                @Override
                public void onClickButton(int which) {
                    Log.d(MainActivity.class.getName(), Integer.toString(which));
                }
            })
            .monitor();

    // Show a dialog if meets conditions
    AppRate.showRateDialogIfMeetsConditions(this);
}
 
开发者ID:victoraldir,项目名称:BuddyBook,代码行数:19,代码来源:MainActivity.java


示例2: initAppRateDialog

import hotchemi.android.rate.OnClickButtonListener; //导入依赖的package包/类
private void initAppRateDialog() {
    AppRate.with(this)
            .setInstallDays(0) // default 10, 0 means install day.
            .setLaunchTimes(2) // default 10
            .setRemindInterval(2) // default 1
            .setShowLaterButton(true) // default true
            .setDebug(false) // default false
            .setOnClickButtonListener(new OnClickButtonListener() { // callback listener.
                @Override
                public void onClickButton(int which) {
                    Log.d(MainActivity.class.getName(), Integer.toString(which));
                }
            })
            .monitor();
    // Show a dialog if meets conditions
    AppRate.showRateDialogIfMeetsConditions(this);
}
 
开发者ID:CheetaTech,项目名称:ColorHub,代码行数:18,代码来源:MainActivity.java


示例3: rateApp

import hotchemi.android.rate.OnClickButtonListener; //导入依赖的package包/类
private void rateApp() {
    AppRate.with(this)
            .setInstallDays(1) // default 10, 0 means install day.
            .setLaunchTimes(5) // default 10
            .setRemindInterval(2) // default 1
            .setShowLaterButton(true) // default true
            .setOnClickButtonListener(new OnClickButtonListener() { // callback listener.
                @Override
                public void onClickButton(int which) {
                    MobclickAgent.onEvent(MainActivity.this, "rate_score_"+which);
                }
            })
            .monitor();

    // Show a dialog if meets conditions
    AppRate.showRateDialogIfMeetsConditions(this);
}
 
开发者ID:maoruibin,项目名称:AppPlus,代码行数:18,代码来源:MainActivity.java


示例4: AppRating

import hotchemi.android.rate.OnClickButtonListener; //导入依赖的package包/类
void AppRating(){
    AppRate.with(this)
            .setInstallDays(0) // default 10, 0 means install day.
            .setLaunchTimes(1) // default 10
            .setRemindInterval(1) // default 1
            .setShowLaterButton(true) // default true
            .setDebug(false) // default false
            .setOnClickButtonListener(new OnClickButtonListener() { // callback listener.
                @Override
                public void onClickButton(int which) {
                    Log.d(MainActivity.class.getName(), Integer.toString(which));
                }
            })
            .monitor();

    // Show a dialog if meets conditions
    AppRate.showRateDialogIfMeetsConditions(this);

    AppRate.with(this).clearAgreeShowDialog();
}
 
开发者ID:abhijith0505,项目名称:CarbonContacts,代码行数:21,代码来源:MainActivity.java


示例5: checkAppRate

import hotchemi.android.rate.OnClickButtonListener; //导入依赖的package包/类
public void checkAppRate() {
    AppRate.with(this)
            .setInstallDays(5) // default 10, 0 means install day.
            .setLaunchTimes(10) // default 10
            .setRemindInterval(2) // default 1
            .setShowNeutralButton(false) // default true
            .setDebug(false) // default false
            .setOnClickButtonListener(new OnClickButtonListener() { // callback listener.
                @Override
                public void onClickButton(int which) {
                    Log.d(MainPage.class.getName(), Integer.toString(which));
                }
            })
            .monitor();

    // Show a dialog if meets conditions
    AppRate.showRateDialogIfMeetsConditions(this);
}
 
开发者ID:pgodzin,项目名称:QuotesSocial,代码行数:19,代码来源:MainPage.java


示例6: onCreate

import hotchemi.android.rate.OnClickButtonListener; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);

    AppRate.with(this)
            .setStoreType(StoreType.GOOGLEPLAY) //default is Google, other option is Amazon
            .setInstallDays(3) // default 10, 0 means install day.
            .setLaunchTimes(10) // default 10 times.
            .setRemindInterval(2) // default 1 day.
            .setShowLaterButton(true) // default true.
            .setDebug(true) // default false.
            .setCancelable(false) // default false.
            .setOnClickButtonListener(new OnClickButtonListener() { // callback listener.
                @Override
                public void onClickButton(int which) {
                    Log.d(MainActivity.class.getName(), Integer.toString(which));
                }
            })
            .setTitle(R.string.new_rate_dialog_title)
            .setTextLater(R.string.new_rate_dialog_later)
            .setTextNever(R.string.new_rate_dialog_never)
            .setTextRateNow(R.string.new_rate_dialog_ok)
            .monitor();

    AppRate.showRateDialogIfMeetsConditions(this);
}
 
开发者ID:hotchemi,项目名称:Android-Rate,代码行数:28,代码来源:MainActivity.java


示例7: onCreate

import hotchemi.android.rate.OnClickButtonListener; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    Utils.onActivityCreateSetTheme(this);
    setContentView(R.layout.activity_main);
    Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
    setSupportActionBar(toolbar);

    if (!EROWID_DB.isChemIndexLoaded()) mFetchChemIndexTask.execute(ErowidDB.Index.CHEMICALS.toString());
    if (!EROWID_DB.isPlantIndexLoaded()) mFetchPlantIndexTask.execute(ErowidDB.Index.PLANTS.toString());
    if (!EROWID_DB.isHerbIndexLoaded()) mFetchHerbIndexTask.execute(ErowidDB.Index.HERBS.toString());
    if (!EROWID_DB.isPharmIndexLoaded()) mFetchPharmIndexTask.execute(ErowidDB.Index.PHARMS.toString());
    if (!EROWID_DB.isSmartIndexLoaded()) mFetchSmartIndexTask.execute(ErowidDB.Index.SMARTS.toString());
    if (!EROWID_DB.isAnimalIndexLoaded()) mFetchAnimalIndexTask.execute(ErowidDB.Index.ANIMALS.toString());
    if (!EROWID_DB.isVaultIndexLoaded()) mFetchVaultIndexTask.execute(ErowidDB.Index.VAULT.toString());

    // Calls the "Rate this app library"
    AppRate.with(this)
            .setInstallDays(5)
            .setLaunchTimes(5)
            .setRemindInterval(2)
            .setShowLaterButton(true)
            .setDebug(false)
            .setOnClickButtonListener(new OnClickButtonListener() { // callback listener.
                @Override
                public void onClickButton(int which) {
                    Log.d(MainActivity.class.getName(), Integer.toString(which));
                }
            })
            .monitor();
    AppRate.showRateDialogIfMeetsConditions(this);

    mDrawerLayout = (DrawerLayout) findViewById(R.id.drawer_layout);
    ActionBarDrawerToggle toggle = new ActionBarDrawerToggle(
            this, mDrawerLayout, toolbar, R.string.navigation_drawer_open, R.string.navigation_drawer_close);
    mDrawerLayout.setDrawerListener(toggle);
    toggle.syncState();

    NavigationView navigationView = (NavigationView) findViewById(R.id.nav_view);
    navigationView.setNavigationItemSelectedListener(this);

    Fragment fragment = HomeFragment.newInstance();
    FragmentTransaction ft = getSupportFragmentManager().beginTransaction();
    ft.replace(R.id.fragment_container, fragment);
    ft.commit();
}
 
开发者ID:melancholiclabs,项目名称:ElegantErowid,代码行数:47,代码来源:MainActivity.java


示例8: onCreate

import hotchemi.android.rate.OnClickButtonListener; //导入依赖的package包/类
@Override
    public void onCreate(Bundle savedInstance) {
        super.onCreate(savedInstance);
        handleNotificationWithUrlIntent(getIntent());
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
            Window window = getWindow();
            window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);
            window.clearFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
            window.setStatusBarColor(Color.parseColor("#CC3a3a3a"));
        }
        setContentView(R.layout.one_sheeld_main);
        oneSheeldLogo = (TextView) findViewById(R.id.currentViewTitle);
        initLooperThread();
        if (savedInstance == null || getThisApplication().isConnectedToBluetooth()) {
//            if (savedInstance != null) {
//                int count = getSupportFragmentManager().getBackStackEntryCount();
//                while (count > 0) {
//                    getSupportFragmentManager().beginTransaction().remove(getSupportFragmentManager().getFragments().get(count)).commit();
//                    count --;
//                }
//            }
            replaceCurrentFragment(R.id.appTransitionsContainer,
                    SheeldsList.getInstance(), "base", true, false);
        }
        postConfigChange();
        resetSlidingMenu();
        thisInstance = this;
        if (getThisApplication().getShowTutAgain()
                && getThisApplication().getTutShownTimes() < 6)
            startActivity(new Intent(MainActivity.this, Tutorial.class));
        AppRate.with(this)
                .setInstallDays(7)
                .setLaunchTimes(5)
                .setRemindInterval(2)
                .setOnClickButtonListener(new OnClickButtonListener() { // callback listener.
                    @Override
                    public void onClickButton(int which) {
                        Map<String, String> hit = null;
                        switch (which) {
                            case Dialog.BUTTON_NEGATIVE:
                                hit = new HitBuilders.EventBuilder()
                                        .setCategory("App Rating Dialog")
                                        .setAction("No")
                                        .build();
                                break;
                            case Dialog.BUTTON_NEUTRAL:
                                hit = new HitBuilders.EventBuilder()
                                        .setCategory("App Rating Dialog")
                                        .setAction("Later")
                                        .build();
                                break;
                            case Dialog.BUTTON_POSITIVE:
                                hit = new HitBuilders.EventBuilder()
                                        .setCategory("App Rating Dialog")
                                        .setAction("Yes")
                                        .build();
                                break;
                        }
                        if (hit != null) getThisApplication()
                                .getTracker()
                                .send(hit);
                    }
                })
                .monitor();
    }
 
开发者ID:Integreight,项目名称:1Sheeld-Android-App,代码行数:66,代码来源:MainActivity.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java CharSequenceLexer类代码示例发布时间:2022-05-22
下一篇:
Java Magic类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap