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


Java MaterialMenuDrawable类代码示例

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


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

示例1: initRecyclerView

import com.balysv.materialmenu.MaterialMenuDrawable; //导入依赖的package包/类
private void initRecyclerView() {
    recyclerAdapter = new ThingRecyclerAdapter();
    recyclerAdapter.updateList(getThings());
    recyclerAdapter.setOnItemClickListener(new BaseRecyclerAdapter.OnItemClickListener<Thing>() {
        @Override
        public void onItemClick(View view, Thing item, boolean isLongClick) {
            if (isLongClick) {
                MainActivity.of(getActivity()).animateHomeIcon(MaterialMenuDrawable.IconState.X);
            } else {
                Navigator.launchDetail(MainActivity.of(getActivity()), view, item, recyclerView);
            }
        }
    });

    recyclerView.setLayoutManager(new LinearLayoutManager(getActivity()));
    recyclerView.setAdapter(recyclerAdapter);

    MainActivity.of(getActivity()).fab.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            Navigator.launchOverlay(MainActivity.of(getActivity()), v, getActivity().findViewById(R.id.base_fragment_container));
        }
    });
}
 
开发者ID:shenhuanet,项目名称:AndroidOpen,代码行数:25,代码来源:ThingListFragment.java

示例2: initUI

import com.balysv.materialmenu.MaterialMenuDrawable; //导入依赖的package包/类
private void initUI(View view) {
    recyclerView = (RecyclerView) view.findViewById(R.id.fragment_product_list_recycler_view);
    sort         = (ImageView)    view.findViewById(R.id.fragment_product_list_tab_bar_sort_img);
    search       = (ImageView)    view.findViewById(R.id.fragment_product_list_tab_bar_search_img);
    switchView   = (ImageView)    view.findViewById(R.id.fragment_product_list_tab_bar_switch_view_img);
    filterButton = (FloatingActionButton) view.findViewById(R.id.fragment_product_list_filter_fab);
    pbContainer  = (RelativeLayout) view.findViewById(R.id.progress_bar_container);
    materialMenuViewCross = (MaterialMenuView) view.findViewById(R.id.fragment_product_list_tab_bar_back_img);
    materialMenuViewCross.setState(MaterialMenuDrawable.IconState.ARROW);
    if (SharedPreferencesHelper.getCache()!=null && SharedPreferencesHelper.getCache().getUser()!=null && SharedPreferencesHelper.getTotalItems()>0) {
        RelativeLayout.LayoutParams layoutParams = (RelativeLayout.LayoutParams)filterButton.getLayoutParams();
        layoutParams.bottomMargin += Common.convertDpToPixel(home, 45);
        RelativeLayout.LayoutParams recyclerViewParams = (RelativeLayout.LayoutParams) recyclerView.getLayoutParams();
        recyclerViewParams.bottomMargin += Common.convertDpToPixel(home, 45);
    }
}
 
开发者ID:vinsol-spree-contrib,项目名称:spree-android,代码行数:17,代码来源:ProductsFragment.java

示例3: initUI

import com.balysv.materialmenu.MaterialMenuDrawable; //导入依赖的package包/类
private void initUI(View view) {
    // common
    parent          = (RelativeLayout)   view.findViewById(R.id.fragment_password_container);
    header          = (TextView)         view.findViewById(R.id.fragment_password_tab_bar_txt);
    back            = (MaterialMenuView) view.findViewById(R.id.fragment_password_tab_bar_back_img);
    back.setState(MaterialMenuDrawable.IconState.X);
    // reset pwd
    email           = (EditText)         view.findViewById(R.id.fragment_password_email_txt);
    reset           = (TextView)         view.findViewById(R.id.fragment_password_reset_btn);
    // change pwd
    currentPwd      = (EditText)         view.findViewById(R.id.fragment_password_current_txt);
    newPwd          = (EditText)         view.findViewById(R.id.fragment_password_new_txt);
    showCurrentPwd  = (ImageView)        view.findViewById(R.id.fragment_password_show_current_pwd_img);
    showNewPwd      = (ImageView)        view.findViewById(R.id.fragment_password_show_new_pwd_img);
    changePwdBtn    = (ImageButton)      view.findViewById(R.id.fragment_password_change_btn);
    currentPwd.setInputType(InputType.TYPE_TEXT_VARIATION_PASSWORD | InputType.TYPE_CLASS_TEXT);
    newPwd.setInputType(InputType.TYPE_TEXT_VARIATION_PASSWORD | InputType.TYPE_CLASS_TEXT);
}
 
开发者ID:vinsol-spree-contrib,项目名称:spree-android,代码行数:19,代码来源:PasswordFragment.java

示例4: initUI

import com.balysv.materialmenu.MaterialMenuDrawable; //导入依赖的package包/类
private void initUI(View view) {
   // common
    pbContainer             = (RelativeLayout)       view.findViewById(R.id.progress_bar_container);
    back                    = (MaterialMenuView)     view.findViewById(R.id.fragment_address_tab_bar_back_img);
    title                   = (TextView)             view.findViewById(R.id.fragment_address_tab_bar_txt);
    back.setState(MaterialMenuDrawable.IconState.ARROW);
    // View mode
    noAddressFoundContainer = (LinearLayout)         view.findViewById(R.id.fragment_address_blank_container);
    addAddressBtn           = (FloatingActionButton) view.findViewById(R.id.fragment_address_fab);
    addressListView         = (ListView)             view.findViewById(R.id.fragment_address_list_view);
    // ADD or EDIT mode
    addOrEditContainer      = (ScrollView)           view.findViewById(R.id.fragment_address_scroll_view);
    firstName               = (EditText)             view.findViewById(R.id.fragment_address_first_name_txt);
    lastName                = (EditText)             view.findViewById(R.id.fragment_address_last_name_txt);
    addressLine1            = (EditText)             view.findViewById(R.id.fragment_address_line1_txt);
    addressLine2            = (EditText)             view.findViewById(R.id.fragment_address_line2_txt);
    city                    = (EditText)             view.findViewById(R.id.fragment_address_city_txt);
    pincode                 = (EditText)             view.findViewById(R.id.fragment_address_pincode_txt);
    phone                   = (EditText)             view.findViewById(R.id.fragment_address_phone_txt);
    save                    = (ImageButton)          view.findViewById(R.id.fragment_address_save_btn);
    stateSpinner            = (Spinner)              view.findViewById(R.id.fragment_address_state_spinner);
    setStateSpinnerAdapter();
}
 
开发者ID:vinsol-spree-contrib,项目名称:spree-android,代码行数:24,代码来源:AddressFragment.java

示例5: showPage2

import com.balysv.materialmenu.MaterialMenuDrawable; //导入依赖的package包/类
private void showPage2(final boolean isInstant, Taxon taxon) {
    currentPage = page2;

    page2.setup(getActivity(), (ArrayList<Taxon>) taxon.getChildren(), this);
    actionButton.animateState(MaterialMenuDrawable.IconState.ARROW);
    titleLabel.setText(taxon.getName());

    new Handler().post(new Runnable() {
        @Override
        public void run() {
            if(isInstant) {
                page2.showInstantly();
                page1.hideInstantly();
            } else {
                page2.show();
                page1.hide();
            }
        }
    });
}
 
开发者ID:vinsol-spree-contrib,项目名称:spree-android,代码行数:21,代码来源:DrawerFragment.java

示例6: initUI

import com.balysv.materialmenu.MaterialMenuDrawable; //导入依赖的package包/类
private void initUI(View view) {
   // common
    pbContainer             = (RelativeLayout)      view.findViewById(R.id.progress_bar_container);
    back                    = (MaterialMenuView)    view.findViewById(R.id.add_review_tab_bar_back_img);
    productNameTextView     = (TextView)            view.findViewById(R.id.add_review_item_name);
    productPriceTextView    = (TextView)            view.findViewById(R.id.add_review_item_price);
    titleEditText           = (EditText)            view.findViewById(R.id.fragment_add_review_title_edit_text);
    messageEditText         = (EditText)            view.findViewById(R.id.add_review_fragment_message_edit_text);
    ratingBar               = (RatingBar)            view.findViewById(R.id.add_review_rating_bar);
    saveReviewButton        = (ImageButton)          view.findViewById(R.id.add_review_fragment_save_review_button);

    back.setState(MaterialMenuDrawable.IconState.ARROW);

    // product name
    productNameTextView.setText(productName);

    // product price
    productPriceTextView.setText(productPrice);

}
 
开发者ID:vinsol-spree-contrib,项目名称:spree-android,代码行数:21,代码来源:AddReviewFragment.java

示例7: initUI

import com.balysv.materialmenu.MaterialMenuDrawable; //导入依赖的package包/类
private void initUI(View view) {
       // common
        pbContainer             = (RelativeLayout)       view.findViewById(R.id.progress_bar_container);
        back                    = (MaterialMenuView)     view.findViewById(R.id.fragment_payment_tab_bar_back_img);
        title                   = (TextView)             view.findViewById(R.id.fragment_payment_tab_bar_txt);
        back.setState(MaterialMenuDrawable.IconState.ARROW);
        // View mode
        noCardFoundContainer    = (LinearLayout)         view.findViewById(R.id.fragment_payment_blank_container);
        addCardBtn              = (FloatingActionButton) view.findViewById(R.id.fragment_payment_fab);
        cardsListView           = (ListView)             view.findViewById(R.id.fragment_payment_list_view);
        // ADD or EDIT mode
        addContainer            = (LinearLayout)         view.findViewById(R.id.fragment_payment_form_container);
        cardNumber              = (EditText)             view.findViewById(R.id.fragment_payment_card_number_txt);
        name                    = (EditText)             view.findViewById(R.id.fragment_payment_name_txt);
        month                   = (EditText)             view.findViewById(R.id.fragment_payment_month_txt);
        year                    = (EditText)             view.findViewById(R.id.fragment_payment_year_txt);
//        cvv                     = (EditText)             view.findViewById(R.id.fragment_payment_cvv_txt);
        save                    = (ImageButton)          view.findViewById(R.id.fragment_payment_save_btn);
    }
 
开发者ID:vinsol-spree-contrib,项目名称:spree-android,代码行数:20,代码来源:PaymentFragment.java

示例8: initUI

import com.balysv.materialmenu.MaterialMenuDrawable; //导入依赖的package包/类
private void initUI(View view) {
    dataContainer                           =                           view.findViewById(R.id.fragment_product_detail_scroll_view_child_container);
    productImagesViewPager                  = (SliderLayout)            view.findViewById(R.id.fragment_product_detail_images_view_pager);
    productImagesViewPagerMarkerContainer   = (LinearLayout)            view.findViewById(R.id.fragment_product_detail_product_images_view_pager_marker);
    pbContainer                             = (RelativeLayout)          view.findViewById(R.id.progress_bar_container);
    addToCart                               = (FloatingActionButton)    view.findViewById(R.id.add_to_cart);
    back                                    = (MaterialMenuView)        view.findViewById(R.id.fragment_product_detail_tab_bar_back_img);
    back.setState(MaterialMenuDrawable.IconState.ARROW);
    share                   = (ImageView) view.findViewById(R.id.fragment_product_detail_tab_bar_share_img);
    productName             = (TextView)  view.findViewById(R.id.fragment_product_detail_name_text_view);
    price                   = (TextView)  view.findViewById(R.id.fragment_product_detail_item_price);
    ratingStars             =             view.findViewById(R.id.fragment_product_detail_rating_stars);
    reviewContainer         =             view.findViewById(R.id.fragment_products_detail_view_review_container);
    ratingCount             = (TextView)  view.findViewById(R.id.fragment_product_detail_rating_count);
    reviewCount             = (TextView)  view.findViewById(R.id.fragment_product_detail_review_count);

    productOptionsLinearLayout = (LinearLayout) view.findViewById(R.id.fragment_product_detail_layout_for_options);
    productDescription      = (TextView) view.findViewById(R.id.fragment_product_detail_description_value);
    productSpecificationLinearLayout = (LinearLayout) view.findViewById(R.id.fragment_product_detail_layout_for_specification);


}
 
开发者ID:vinsol-spree-contrib,项目名称:spree-android,代码行数:23,代码来源:ProductDetailFragment.java

示例9: init

import com.balysv.materialmenu.MaterialMenuDrawable; //导入依赖的package包/类
@AfterViews
void init() {
    mTvTitle.setText(getTitle());
    mMaterialBackButton.setState(MaterialMenuDrawable.IconState.ARROW);

    iv_InputPIN.setTag(false);//设置是否手动输入PIN码,初始值 设置为 false
    et_BluetoothPin.setText("1234");//设置初始PIN码 为 1234
    et_BluetoothPin.setTextSize(15f);//设置初始PIN码字体大小 为 15f
    et_BluetoothPin.setTextColor(getResources().getColor(R.color.close_pin));//设置初始PIN码字体颜色

    ll_NearConn.setTag(false);//初始化最近连接 tag

    if(bluetoothListAdapter!=null){
        lv_BluetoothList.setAdapter(bluetoothListAdapter);
    }
}
 
开发者ID:bangqu,项目名称:eshow-android,代码行数:17,代码来源:BluetoothActivity.java

示例10: init

import com.balysv.materialmenu.MaterialMenuDrawable; //导入依赖的package包/类
@AfterViews
void init() {
    AbViewUtil.scaleContentView((RelativeLayout) findViewById(R.id.rlParent));

    mTvTitle.setText(getTitle());
    mMaterialBackButton.setState(MaterialMenuDrawable.IconState.ARROW);
    mMaterialBackButton.setVisibility(View.VISIBLE);

    tab_title_color_choose = getResources().getColor(R.color.colorAccent);
    tab_title_color_normal = getResources().getColor(R.color.text_gray);

    ic_baseInfo_normal = getResources().getDrawable(R.drawable.ic_baseinfo_normal);
    ic_baseInfo_choose = getResources().getDrawable(R.drawable.ic_baseinfo_pressed);

    ic_person_normal = getResources().getDrawable(R.drawable.ic_person_normal);
    ic_person_choose = getResources().getDrawable(R.drawable.ic_person_pressed);

    ic_account_normal = getResources().getDrawable(R.drawable.ic_account_normal);
    ic_account_choose = getResources().getDrawable(R.drawable.ic_account_pressed);

    baseInfoFragment = new BaseInfoFragment();
    personFragment = new cn.org.eshow.demo.fragment.PersonFragment();
    accountFragment = new AccountFragment();
    chooseBaseInfo();
    registerBroadcast();
}
 
开发者ID:bangqu,项目名称:eshow-android,代码行数:27,代码来源:InfoFormActivity.java

示例11: findView

import com.balysv.materialmenu.MaterialMenuDrawable; //导入依赖的package包/类
private void findView() {

        rlBack = (RelativeLayout) findViewById(R.id.rlBack);
        rlBack.setOnClickListener(this);
        mMaterialBackButton = (MaterialMenuView) findViewById(R.id.material_back_button);
        mMaterialBackButton.setState(MaterialMenuDrawable.IconState.ARROW);

        tvTitle = (TextView) findViewById(R.id.tvTitle);
        if(AbStrUtil.isEmpty(title)){
            tvTitle.setText(getTitle());
        }else{
            tvTitle.setText(title);
        }

        webView = (WebView) findViewById(R.id.webview);
        progressBar = (ProgressBar) findViewById(R.id.progressBar);
        progressBar.setVisibility(View.VISIBLE);
    }
 
开发者ID:bangqu,项目名称:eshow-android,代码行数:19,代码来源:WebActivity.java

示例12: init

import com.balysv.materialmenu.MaterialMenuDrawable; //导入依赖的package包/类
@AfterViews
void init() {
    AbViewUtil.scaleContentView((RelativeLayout) findViewById(R.id.rlParent));
    mTvSubTitle.setText("保存");
    mTvSubTitle.setVisibility(View.VISIBLE);
    mMaterialBackButton.setState(MaterialMenuDrawable.IconState.ARROW);

    returnCode = getIntent().getIntExtra(INTENT_RETURN_CODE_TAG,InfoFormActivity_.RETURN_BASEINFO_CODE);
    String title = getIntent().getStringExtra(INTENT_TITLE_TAG);
    mTvTitle.setText(title);

    interfaceName = getIntent().getStringExtra(INTNET_INTERFACE_TAG);
    paramKey = getIntent().getStringExtra(INTNET_PARAMKEY_TAG);

    String paramValue = getIntent().getStringExtra(INTENT_PARAMVALUE_TAG);
    if(!AbStrUtil.isEmpty(paramValue)){
        if(paramValue.equals("男")){
            chooseSex(true);
        }else{
            chooseSex(false);
        }
    }
}
 
开发者ID:bangqu,项目名称:eshow-android,代码行数:24,代码来源:ModifySexActivity.java

示例13: init

import com.balysv.materialmenu.MaterialMenuDrawable; //导入依赖的package包/类
@AfterViews
void init() {
    AbViewUtil.scaleContentView((RelativeLayout) findViewById(R.id.rlParent));
    mTvTitle.setText(getTitle());
    mTvSubTitle.setVisibility(View.VISIBLE);
    mMaterialBackButton.setState(MaterialMenuDrawable.IconState.ARROW);
    mMaterialBackButton.setVisibility(View.VISIBLE);
    tvCodeLogin=(TextView)findViewById(R.id.tvCodeLogin);
    tvCodeLogin.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            Intent intent=new Intent(LoginActivity.this,CodeLoginActivity.class);
            startActivity(intent);
        }
    });

    userName = getIntent().getStringExtra(InputPasswordActivity.INTENT_TEL);
    if(cn.org.eshow.framwork.util.AbStrUtil.isEmpty(userName)){
        userName = SharedPrefUtil.getTempTel(mContext);
    }
    mEtTel.setText(userName);
}
 
开发者ID:bangqu,项目名称:eshow-android,代码行数:23,代码来源:LoginActivity.java

示例14: initViews

import com.balysv.materialmenu.MaterialMenuDrawable; //导入依赖的package包/类
@Override
public void initViews() {
    rlBack=(RelativeLayout)findViewById(R.id.rlBack);
    material_back_button=(MaterialMenuView) findViewById(R.id.material_back_button);
    tvTitle=(TextView) findViewById(R.id.tvTitle);
    ivRight=(ImageView) findViewById(R.id.ivRight);
    ivRight.setImageResource(R.mipmap.ic_menu_add);
    ivRight.setVisibility(View.VISIBLE);
    plAlbums=(PullToRefreshListView)findViewById(R.id.plAlbums);
    lvAlbums=plAlbums.getRefreshableView();
    material_back_button.setState(MaterialMenuDrawable.IconState.ARROW);
    tvTitle.setText("相册");

    FooterView= LayoutInflater.from(this).inflate(R.layout.list_footer,null);
    ivLoading =(ImageView) FooterView.findViewById(R.id.ivLoading);
    tvLoading=(TextView)FooterView.findViewById(R.id.tvLoading);
    lvAlbums.addFooterView(FooterView);
    loading(ivLoading);


}
 
开发者ID:bangqu,项目名称:eshow-android,代码行数:22,代码来源:AlbumActivity.java

示例15: onCreate

import com.balysv.materialmenu.MaterialMenuDrawable; //导入依赖的package包/类
@AfterViews
void onCreate() {
    if (!EventBus.getDefault().isRegistered(this))
        EventBus.getDefault().register(this);
    overridePendingTransition(R.anim.slide_in_right, R.anim.fadeout);
    fragmentManager = getSupportFragmentManager();
    FilesListFragment_ fragment = new FilesListFragment_();
    Bundle bundle = new Bundle();
    bundle.putString(Config.vault_extra, vault);
    bundle.putString(Config.password_extra, password);
    fragment.setArguments(bundle);
    fragmentManager.beginTransaction()
            .replace(android.R.id.content, fragment)
            .commit();
    getSupportActionBar().setDisplayHomeAsUpEnabled(false);
    materialMenu = new MaterialMenuIconCompat(this, Color.WHITE, MaterialMenuDrawable.Stroke.THIN);
    materialMenu.animateState(MaterialMenuDrawable.IconState.ARROW);
}
 
开发者ID:SecrecySupportTeam,项目名称:Secrecy_fDroid_DEPRECIATED,代码行数:19,代码来源:FilesActivity.java


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