当前位置: 编程技术>移动开发
本页文章导读:
▪Ubuntu装配wine工具 And Source Insight Ubuntu安装wine工具 And Source Insight
一、Ubuntu安装wine工具$sudo apt-get install wine注:如安装不了加入如下源: {{ deb http://cz.archive.Ubuntu.com/ubuntu lucid main universe}}you can do this:#sudo gedit /etc/apt/sources.listan.........
▪ 格局专题四: 相对布局 布局专题四: 相对布局
import android.app.Activity;
import android.os.Bundle;
/**
* 相对布局:相对控件布局
* @author 够潮
*
*/
public class Layout3 extends Activity {
@Override
protected void onCreate(Bundle savedInstance.........
▪ LinearLayout和其他元素怎么通过Java插入 LinearLayout和其他元素如何通过Java插入
请看例子:
LinearLayout temp = new LinearLayout(IndexActivity.this);
LinearLayout.LayoutParams temp11 = new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, 100,1);
temp11.setMargi.........
[1]Ubuntu装配wine工具 And Source Insight
来源: 互联网 发布时间: 2014-02-18
Ubuntu安装wine工具 And Source Insight
一、Ubuntu安装wine工具
$sudo apt-get install wine
注:如安装不了加入如下源:
{{
deb http://cz.archive.Ubuntu.com/ubuntu lucid main universe
}}
you can do this:
#sudo gedit /etc/apt/sources.list
and then append with
deb http://cz.archive.Ubuntu.com/ubuntu lucid main universe
in sources.list file
when it finishes to intall wine
then
进入InsightSetup.exe所在目录,使用wine工具安装Source Insight
$ wine InsightSetup.exe
注:之后完装和windows相同。
For Source Insight:
SI3US-343066-11287
SI3US-956386-80191
SI3US-840598-11493
SI3US-404808-04697
SI3US-510811-93484
一、Ubuntu安装wine工具
$sudo apt-get install wine
注:如安装不了加入如下源:
{{
deb http://cz.archive.Ubuntu.com/ubuntu lucid main universe
}}
you can do this:
#sudo gedit /etc/apt/sources.list
and then append with
deb http://cz.archive.Ubuntu.com/ubuntu lucid main universe
in sources.list file
when it finishes to intall wine
then
进入InsightSetup.exe所在目录,使用wine工具安装Source Insight
$ wine InsightSetup.exe
注:之后完装和windows相同。
For Source Insight:
SI3US-343066-11287
SI3US-956386-80191
SI3US-840598-11493
SI3US-404808-04697
SI3US-510811-93484
[2] 格局专题四: 相对布局
来源: 互联网 发布时间: 2014-02-18
布局专题四: 相对布局
import android.app.Activity; import android.os.Bundle; /** * 相对布局:相对控件布局 * @author 够潮 * */ public class Layout3 extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); //this.setContentView(R.layout.layout3); this.setContentView(R.layout.layout4); //this.setContentView(R.layout.layout5); } }
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" > <RelativeLayout android:layout_width="wrap_content" android:layout_height="wrap_content" > <Button android:id="@+id/A" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="A" ></Button> <Button android:id="@+id/B" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_toRightOf="@+id/A" android:text="B" ></Button> <Button android:id="@+id/C" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@+id/A" android:text="C" ></Button> <Button android:id="@+id/D" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@+id/B" android:layout_toRightOf="@+id/C" android:text="D" ></Button> <Button android:id="@+id/E" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@+id/D" android:layout_alignRight="@+id/D" android:text="E" ></Button> </RelativeLayout> </LinearLayout>
效果:
[3] LinearLayout和其他元素怎么通过Java插入
来源: 互联网 发布时间: 2014-02-18
LinearLayout和其他元素如何通过Java插入
请看例子:
请看例子:
LinearLayout temp = new LinearLayout(IndexActivity.this); LinearLayout.LayoutParams temp11 = new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, 100,1); temp11.setMargins(5, 5, 5, 5); temp.setLayoutParams(temp11); temp.setOrientation(LinearLayout.VERTICAL); temp.setGravity(Gravity.CENTER_VERTICAL|Gravity.CENTER_HORIZONTAL); ((LinearLayout)findViewById(R.id.indexBody)).addView(temp);
最新技术文章: