Lou*_*tin 4 c# android orientation android-layout xamarin
我试图在我的Android应用程序中对齐控件.
我需要这样做但是使用CODE/C#/ Xamarin这个:android:orientation ="horizontaly"
以下代码在Xamarin中不起作用(我猜java好)??.setOrientation(LinearLayout.HORIZONTAL);
接受的方法是:.Orientation我的代码缺少/错误的代码:见*下面
LinearLayout LLMain = new LinearLayout(this);
LLMain.Id = _intID;
LLMain.AddView(textView(_intID));
LLMain.AddView(editText(_intID));
LLMain.Orientation = LinearLayout.HORIZONTAL; ***
linearlayoutList.Add(LLMain);
return LLMain;
Run Code Online (Sandbox Code Playgroud)
我该如何设置这个值:??? LinearLayout.HORIZONTAL; ????
谢谢马丁