首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > 移动开发 >

intent发起一个url地址以及一个相对格局的使用

2012-09-28 
intent发起一个url地址以及一个相对布局的使用Intent intent new Intent(Intent.ACTION_VIEW)?intent.s

intent发起一个url地址以及一个相对布局的使用

Intent intent = new Intent(Intent.ACTION_VIEW);?
intent.setData(Uri.parse("http://www.stackoverflow.com"));?
startActivity(intent);?

<RelativeLayout?
? ? xmlns:android="http://schemas.android.com/apk/res/android"?
? ? android:layout_height="50dip"?
? ? android:layout_width="fill_parent"?
? ? android:layout_weight="0">?
<ImageView ?
? ? android:layout_height="50dip"?
? ? android:layout_width="50dip"?
? ? android:layout_alignParentLeft="true"?
? ? android:layout_centerVertical="true"/>?
<TextView?
? ? android:layout_height="wrap_content"?
? ? android:layout_width="wrap_content"?
? ? android:layout_centerInParent="true" ?
? ? android:text="some text"/>?
<ImageView ?
? ? android:layout_height="50dip"?
? ? android:layout_width="50dip"?
? ? android:layout_alignParentRight="true"?
? ? android:layout_centerVertical="true"/>?
</RelativeLayout>?

热点排行