main.xml 布局文件中,有二TextView 如下:
<LinearLayout android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="40dip">
<TextView
android:id="@+id/ftextView1"
android:layout_width="80dip"
android:layout_height="40dip"
android:text="页面一"
/>
<TextView
android:id="@+id/ftextView2"
android:layout_width="80dip"
android:layout_height="40dip"
android:text="页面二"
/>
</LinearLayout>
现需:1 点击屏上的"页面一" 可以链接到 http://a.com/a.php
2 点击屏上的"页面二" 可以转向到另一名为 activity2的 activity这如何实现呀,thanks
<LinearLayout android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="40dip">
<TextView
android:id="@+id/ftextView1"
android:layout_width="80dip"
android:layout_height="40dip"
android:text="页面一"
/>
<TextView
android:id="@+id/ftextView2"
android:layout_width="80dip"
android:layout_height="40dip"
android:text="页面二"
/>
</LinearLayout>
现需:1 点击屏上的"页面一" 可以链接到 http://a.com/a.php
2 点击屏上的"页面二" 可以转向到另一名为 activity2的 activity这如何实现呀,thanks
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货