有了新NavigationView的仍然建议使用ActionBarDrawerToggle或这不是"材料设计"?例如,之前我们应该在抽屉打开时隐藏操作栏项目,但现在指南说他们应该留下来.
android android-support-library navigation-drawer android-design-library
我的模型中有以下内容:
public class Equipment
{
public enum Type
{
Detector,
VegetationClearance,
Removal,
Engaging
}
}
Run Code Online (Sandbox Code Playgroud)
并在视图模型中:
private Equipment.Type _equipmentType;
public Equipment.Type EquipmentType
{
get { return _equipmentType; }
set
{
_equipmentType = value;
RaisePropertyChanged(() => EquipmentType);
}
}
Run Code Online (Sandbox Code Playgroud)
我想将这些值用作ItemsSource,以便用户可以从枚举中进行选择:
<Mvx.MvxSpinner
android:id="@+id/type"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
local:MvxBind="ItemsSource Equipment.Type; SelectedItem TypeSelection" />
Run Code Online (Sandbox Code Playgroud)
这根本不起作用.有没有办法将枚举绑定为ItemsSource?
我换了我的PagerSlidingTabStrip用于新的android.support.design.TabLayout,现在标签显示在屏幕的中心而不是左对齐,就像他们使用PagerSlidingTabStrip一样.我希望它们在屏幕左侧对齐,就像在景观平板电脑上的谷歌游戏商店(这是PagerSlidingTabStrip给我的)