Permalink
Browse files

huangshu up to date

  • Loading branch information...
1 parent 68e3450 commit 854dd1c44fe7bd78a57c18d6217262b250804ba1 @huangshu91 huangshu91 committed Nov 2, 2011
Showing with 13 additions and 0 deletions.
  1. +5 −0 4gtest/res/layout/home.xml
  2. +8 −0 4gtest/src/com/mobiperf/lte/ui/Home.java
View
5 4gtest/res/layout/home.xml
@@ -7,6 +7,11 @@
android:text="@string/btn_network_test"
android:drawableTop="@drawable/home_btn_networktest" />
+ <Button android:id="@+id/home_btn_networktoggle"
+ style="@style/DashboardButton"
+ android:text="@string/btn_network_toggle"
+ android:drawableTop="@drawable/home_btn_networktoggle" />
+
<Button android:id="@+id/home_btn_about"
style="@style/DashboardButton"
android:text="@string/btn_about"
View
8 4gtest/src/com/mobiperf/lte/ui/Home.java
@@ -11,6 +11,7 @@
import android.widget.Toast;
import com.mobiperf.lte.Main;
+import com.mobiperf.lte.NetworkToggle;
import com.mobiperf.lte.R;
public class Home extends Activity {
@@ -74,6 +75,13 @@ public void onClick(View v) {
startActivity(new Intent(getActivity(), Main.class));
}
});
+
+ findViewById(R.id.home_btn_networktoggle).setOnClickListener(
+ new View.OnClickListener() {
+ public void onClick(View v) {
+ startActivity(new Intent(getActivity(), NetworkToggle.class));
+ }
+ });
findViewById(R.id.home_btn_about).setOnClickListener(
new View.OnClickListener() {

0 comments on commit 854dd1c

Please sign in to comment.