本文整理汇总了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);
}