本文整理匯總了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);
}
示例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();
}
示例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);
}
示例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);
}