我想将代码更改为下面提到的模板中的格式。
public ActionBar(Android.Support.V7.Widget.Toolbar toolBar,DrawerLayout drawerLayoutInp,ListView listview,Activity context)
{
initToolBar(toolBar,drawerLayoutInp,listview,context);
}
private void initToolBar(Android.Support.V7.Widget.Toolbar toolBar, DrawerLayout drawerLayoutInp, ListView listview, Activity context)
{
mToolBar = toolBar;
drawerLayout = drawerLayoutInp;
mLeftDrawer = listview;
initListView(context);
**SetSupportActionBar(mToolBar);**
mDrawerToggle = new MyActionBarDrawerToggle(this, drawerLayout, Resource.String.openDrawer,
Resource.String.closeDrawer);
drawerLayout.AddDrawerListener(mDrawerToggle);
SupportActionBar.SetDisplayHomeAsUpEnabled(true);
SupportActionBar.SetHomeButtonEnabled(true);
mDrawerToggle.SyncState();
mLeftDrawer.ItemClick += leftDrawer_Clicked;
}
private void initListView(Activity context)
{
items = new List<Tuple<string, int>>();
items.Add(new Tuple<string, int>("Profil", Resource.Mipmap.baseline_account_circle_black_24));
items.Add(new Tuple<string, int>("Events", Resource.Mipmap.baseline_event_note_black_24));
items.Add(new Tuple<string, int>("Home", Resource.Mipmap.baseline_home_black_24));
IListAdapter adapter = new Utils.ActivityListItem_Adapter(context, items);
mLeftDrawer.Adapter = adapter;
}
SELECT AVG(currentVal) AS currentVal, AVG(lastVal) AS lastVal
FROM (SELECT order_total AS currentVal, 0 AS lastVal
FROM ...
UNION ALL
SELECT 0, order_total
FROM ...
) t;
我这样尝试过:
<button type="button" class="btn btn-vilot btn-block btn-drop">
<span class="btn-sect">
<i class="icon-calendar icon-eoicon-btn"></i>
</span>
<span class="btn-sect">
<span>15 Sep, Sat</span>
<span>Check-in</span>
</button>
jQuery需要哪些修改?