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


Java ExpandableListControl类代码示例

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


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

示例1: bindPaymentAndDelivery

import odoo.controls.ExpandableListControl; //导入依赖的package包/类
private void bindPaymentAndDelivery() {
    deliveryAndPaymentOptions = (ExpandableListControl) findViewById(R.id.deliveryAndPaymentOptions);
    final List<Object> items = new ArrayList<>();
    ExpandableListControl.ExpandableListAdapter adapter = deliveryAndPaymentOptions.getAdapter(R.layout.shop_payment_delivery_item, items,
            new ExpandableListControl.ExpandableListAdapterGetViewListener() {
                @Override
                public View getView(int position, View view, ViewGroup parent) {
                    OControls.setText(view, android.R.id.title, items.get(position));
                    return view;
                }
            });
    items.add("Cash On Delivery Available");
    items.add("30-day money-back guarantee");
    items.add("Free Shipping in India");
    adapter.notifyDataSetChanged(items);
}
 
开发者ID:dpr-odoo,项目名称:trainee-om-shop,代码行数:17,代码来源:ProductDetail.java

示例2: getMessages

import odoo.controls.ExpandableListControl; //导入依赖的package包/类
private void getMessages() {
    mChatterListView = (ExpandableListControl) findViewById(R.id.chatterMessages);
    mListAdapter = mChatterListView.getAdapter(
            R.layout.base_mail_chatter_item, chatterItems, this);
    mListAdapter.notifyDataSetChanged(chatterItems);

    // Check for server updated messages
    if (app.inNetwork()) {
        messagesLoader = new ChatterMessagesLoader();
        messagesLoader.execute();
    }
    // Updating chatter messages
    updateChatterList();
}
 
开发者ID:dpr-odoo,项目名称:trainee-om-shop,代码行数:15,代码来源:MailChatterView.java

示例3: ProductAttributeValuesView

import odoo.controls.ExpandableListControl; //导入依赖的package包/类
public ProductAttributeValuesView(Context context, ViewGroup parent, ODataRow attribute, List<ODataRow> values) {
    mContext = context;
    mAttr = attribute;
    mAttrValues = values;
    layout = (LinearLayout) LayoutInflater.from(context).inflate(R.layout.shop_cart_item_options, parent, false);
    optionsView = (ExpandableListControl) layout.findViewById(R.id.options);
}
 
开发者ID:dpr-odoo,项目名称:trainee-om-shop,代码行数:8,代码来源:ProductAttributeValuesView.java

示例4: onCreate

import odoo.controls.ExpandableListControl; //导入依赖的package包/类
@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.base_manage_accounts);
    setTitle(R.string.label_accounts);
    OAppBarUtils.setAppBar(this, true);
    setResult(RESULT_CANCELED);
    accounts.clear();
    accounts.addAll(OdooAccountManager.getAllAccounts(this));
    mList = (ExpandableListControl) findViewById(R.id.accountList);
    mAdapter = mList.getAdapter(R.layout.base_account_item, accounts, this);
    mAdapter.notifyDataSetChanged(accounts);
}
 
开发者ID:dpr-odoo,项目名称:trainee-om-shop,代码行数:14,代码来源:ManageAccounts.java


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