如何用Java代码编写此xml

问题描述

| Android XML:
<TextView  
android:layout_width=\"fill_parent\" 
android:layout_height=\"wrap_content\" 
android:text=\"@string/hello\"
android:layout_height=\"28dp\" android:layout_width=\"180dp\"
android:layout_toRightOf=\"@+id/signinemailtxt\"
android:paddingLeft=\"50dp\"
android:layout_marginTop=\"65dp\"
android:background=\"#ffffff\" 

/>
Java:
layout=  new  RelativeLayout(this);
layout.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT,LayoutParams.FILL_PARENT));
TextView Txt=new TextView(this);
Txt.setText(\"Name\");
如何在Java代码中获取layout_marginTop,layout_toRightOf选项     

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)