Skip to content

Commit 921d585

Browse files
committed
隐藏Dplus入口
1 parent 3b9141e commit 921d585

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

app/src/main/java/com/umeng/soexample/HomeActivity.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,14 @@ public void onClick(View view) {
3232
startActivity(intent);
3333
}
3434
});
35-
findViewById(R.id.home_dplus).setOnClickListener(new OnClickListener() {
35+
/*findViewById(R.id.home_dplus).setOnClickListener(new OnClickListener() {
3636
@Override
3737
public void onClick(View view) {
3838
Intent intent = new Intent(HomeActivity.this, UDplusActivity.class);
3939
startActivity(intent);
4040
}
4141
});
42+
*/
4243
findViewById(R.id.home_game).setOnClickListener(new OnClickListener() {
4344
@Override
4445
public void onClick(View view) {

app/src/main/res/layout/activity_home.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,19 @@
2626
android:layout_below="@id/title_bar"
2727
app:umicon="@drawable/um_app"
2828
android:layout_height="@dimen/item_height"/>
29+
<!--
2930
<com.umeng.soexample.views.Item
3031
android:id="@+id/home_dplus"
3132
android:layout_width="match_parent"
3233
android:layout_below="@id/home_uapp"
3334
app:umtitle="统计UDplus"
3435
app:umicon="@drawable/um_dplus"
3536
android:layout_height="@dimen/item_height"/>
37+
-->
3638
<com.umeng.soexample.views.Item
3739
android:id="@+id/home_game"
3840
android:layout_width="match_parent"
39-
android:layout_below="@id/home_dplus"
41+
android:layout_below="@id/home_uapp"
4042
app:umtitle="统计UGame"
4143
app:umicon="@drawable/um_ugame"
4244
android:layout_height="@dimen/item_height"/>

0 commit comments

Comments
 (0)