當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。