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>?