Commit 4cf33840 authored by fallenstardust's avatar fallenstardust

添加布局

parent 9b779191
......@@ -491,18 +491,18 @@ public class HomeFragment extends BaseFragemnt implements View.OnClickListener {
@Override
public void onClick(View v) {
switch (v.getId()) {
case R.id.nav_webpage: {
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setData(Uri.parse(BuildConfig.URL_DONATE));
startActivity(intent);
}
break;
case R.id.action_about:
break;
case R.id.action_replay:
break;
case R.id.action_bot:
break;
case R.id.action_game:
setRandomCardDetail();
if (mCardDetailRandom != null) {
mCardDetailRandom.show();
}
//openGame();
openGame();
break;
case R.id.action_settings: {
Intent intent = new Intent(getContext(), SettingsActivity.class);
......@@ -545,6 +545,12 @@ public class HomeFragment extends BaseFragemnt implements View.OnClickListener {
case R.id.action_reset_game_res:
updateImages();
break;
case R.id.nav_webpage: {
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setData(Uri.parse(BuildConfig.URL_DONATE));
startActivity(intent);
}
break;
}
}
}
......@@ -21,6 +21,14 @@
android:id="@+id/action_reset_game_res"
android:icon="@drawable/ic_file_download_black_24dp"
android:title="@string/reset_game_res" />
<item
android:id="@+id/action_replay"
android:icon="@drawable/ic_album"
android:title="@string/replay" />
<item
android:id="@+id/action_bot"
android:icon="@drawable/ic_copy"
android:title="@string/bot_mode" />
<item android:title="@string/menu">
<menu>
......
......@@ -319,4 +319,6 @@
<string name="file_installed">文件已导入</string>
<string name="settings_screen_padding">瀑布屏预留高度</string>
<string name="tip_load_cdb_error">加载数据出错</string>
<string name="replay">查看录像</string>
<string name="bot_mode">人机练习</string>
</resources>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment