Add a snackbar for a test

develop
LEdoian 3 years ago
parent 0f2519c742
commit e9a97f722e

@ -56,7 +56,7 @@ namespace QuickPlay
if (item.ItemId == Resource.Id.action_settings) if (item.ItemId == Resource.Id.action_settings)
Toast.MakeText(this, "Here would be settings, when someone creates it", Android.Widget.ToastLength.Short).Show(); Toast.MakeText(this, "Here would be settings, when someone creates it", Android.Widget.ToastLength.Short).Show();
if (item.ItemId == Resource.Id.action_edit) if (item.ItemId == Resource.Id.action_edit)
Toast.MakeText(this, "No editing this time", Android.Widget.ToastLength.Short).Show(); Android.Support.Design.Widget.Snackbar.Make(FindViewById(Resource.Id.include1), "No editing this time", 10000).Show();
return base.OnOptionsItemSelected(item); return base.OnOptionsItemSelected(item);
} }

@ -3082,20 +3082,20 @@ namespace QuickPlay
// aapt resource value: 0x7f090069 // aapt resource value: 0x7f090069
public const int action_bar_title = 2131296361; public const int action_bar_title = 2131296361;
// aapt resource value: 0x7f0900b0 // aapt resource value: 0x7f0900b1
public const int action_container = 2131296432; public const int action_container = 2131296433;
// aapt resource value: 0x7f09008e // aapt resource value: 0x7f09008e
public const int action_context_bar = 2131296398; public const int action_context_bar = 2131296398;
// aapt resource value: 0x7f0900bb // aapt resource value: 0x7f0900bc
public const int action_divider = 2131296443; public const int action_divider = 2131296444;
// aapt resource value: 0x7f0900c1 // aapt resource value: 0x7f0900c2
public const int action_edit = 2131296449; public const int action_edit = 2131296450;
// aapt resource value: 0x7f0900b1 // aapt resource value: 0x7f0900b2
public const int action_image = 2131296433; public const int action_image = 2131296434;
// aapt resource value: 0x7f090003 // aapt resource value: 0x7f090003
public const int action_menu_divider = 2131296259; public const int action_menu_divider = 2131296259;
@ -3112,14 +3112,14 @@ namespace QuickPlay
// aapt resource value: 0x7f09006b // aapt resource value: 0x7f09006b
public const int action_mode_close_button = 2131296363; public const int action_mode_close_button = 2131296363;
// aapt resource value: 0x7f0900c0 // aapt resource value: 0x7f0900c1
public const int action_settings = 2131296448; public const int action_settings = 2131296449;
// aapt resource value: 0x7f0900b2 // aapt resource value: 0x7f0900b3
public const int action_text = 2131296434; public const int action_text = 2131296435;
// aapt resource value: 0x7f0900bc // aapt resource value: 0x7f0900bd
public const int actions = 2131296444; public const int actions = 2131296445;
// aapt resource value: 0x7f09006c // aapt resource value: 0x7f09006c
public const int activity_chooser_view_content = 2131296364; public const int activity_chooser_view_content = 2131296364;
@ -3136,8 +3136,8 @@ namespace QuickPlay
// aapt resource value: 0x7f09003f // aapt resource value: 0x7f09003f
public const int always = 2131296319; public const int always = 2131296319;
// aapt resource value: 0x7f09009f // aapt resource value: 0x7f0900a0
public const int appTitleText = 2131296415; public const int appTitleText = 2131296416;
// aapt resource value: 0x7f090065 // aapt resource value: 0x7f090065
public const int async = 2131296357; public const int async = 2131296357;
@ -3169,8 +3169,8 @@ namespace QuickPlay
// aapt resource value: 0x7f090086 // aapt resource value: 0x7f090086
public const int checkbox = 2131296390; public const int checkbox = 2131296390;
// aapt resource value: 0x7f0900ba // aapt resource value: 0x7f0900bb
public const int chronometer = 2131296442; public const int chronometer = 2131296443;
// aapt resource value: 0x7f090061 // aapt resource value: 0x7f090061
public const int clip_horizontal = 2131296353; public const int clip_horizontal = 2131296353;
@ -3181,8 +3181,8 @@ namespace QuickPlay
// aapt resource value: 0x7f090040 // aapt resource value: 0x7f090040
public const int collapseActionView = 2131296320; public const int collapseActionView = 2131296320;
// aapt resource value: 0x7f0900a6 // aapt resource value: 0x7f0900a7
public const int container = 2131296422; public const int container = 2131296423;
// aapt resource value: 0x7f090082 // aapt resource value: 0x7f090082
public const int content = 2131296386; public const int content = 2131296386;
@ -3190,8 +3190,8 @@ namespace QuickPlay
// aapt resource value: 0x7f090075 // aapt resource value: 0x7f090075
public const int contentPanel = 2131296373; public const int contentPanel = 2131296373;
// aapt resource value: 0x7f0900a7 // aapt resource value: 0x7f0900a8
public const int coordinator = 2131296423; public const int coordinator = 2131296424;
// aapt resource value: 0x7f09007c // aapt resource value: 0x7f09007c
public const int custom = 2131296380; public const int custom = 2131296380;
@ -3205,20 +3205,20 @@ namespace QuickPlay
// aapt resource value: 0x7f09006f // aapt resource value: 0x7f09006f
public const int default_activity_button = 2131296367; public const int default_activity_button = 2131296367;
// aapt resource value: 0x7f0900a9 // aapt resource value: 0x7f0900aa
public const int design_bottom_sheet = 2131296425; public const int design_bottom_sheet = 2131296426;
// aapt resource value: 0x7f0900af
public const int design_menu_item_action_area = 2131296431;
// aapt resource value: 0x7f0900ae // aapt resource value: 0x7f0900ae
public const int design_menu_item_action_area = 2131296430; public const int design_menu_item_action_area_stub = 2131296430;
// aapt resource value: 0x7f0900ad // aapt resource value: 0x7f0900ad
public const int design_menu_item_action_area_stub = 2131296429; public const int design_menu_item_text = 2131296429;
// aapt resource value: 0x7f0900ac // aapt resource value: 0x7f0900ac
public const int design_menu_item_text = 2131296428; public const int design_navigation_view = 2131296428;
// aapt resource value: 0x7f0900ab
public const int design_navigation_view = 2131296427;
// aapt resource value: 0x7f090027 // aapt resource value: 0x7f090027
public const int disableHome = 2131296295; public const int disableHome = 2131296295;
@ -3277,8 +3277,8 @@ namespace QuickPlay
// aapt resource value: 0x7f090071 // aapt resource value: 0x7f090071
public const int icon = 2131296369; public const int icon = 2131296369;
// aapt resource value: 0x7f0900bd // aapt resource value: 0x7f0900be
public const int icon_group = 2131296445; public const int icon_group = 2131296446;
// aapt resource value: 0x7f090041 // aapt resource value: 0x7f090041
public const int ifRoom = 2131296321; public const int ifRoom = 2131296321;
@ -3286,11 +3286,11 @@ namespace QuickPlay
// aapt resource value: 0x7f09006e // aapt resource value: 0x7f09006e
public const int image = 2131296366; public const int image = 2131296366;
// aapt resource value: 0x7f0900a1 // aapt resource value: 0x7f0900a2
public const int include1 = 2131296417; public const int include1 = 2131296418;
// aapt resource value: 0x7f0900b6 // aapt resource value: 0x7f0900b7
public const int info = 2131296438; public const int info = 2131296439;
// aapt resource value: 0x7f090068 // aapt resource value: 0x7f090068
public const int italic = 2131296360; public const int italic = 2131296360;
@ -3301,8 +3301,8 @@ namespace QuickPlay
// aapt resource value: 0x7f09004e // aapt resource value: 0x7f09004e
public const int labeled = 2131296334; public const int labeled = 2131296334;
// aapt resource value: 0x7f0900a5 // aapt resource value: 0x7f0900a6
public const int largeLabel = 2131296421; public const int largeLabel = 2131296422;
// aapt resource value: 0x7f090054 // aapt resource value: 0x7f090054
public const int left = 2131296340; public const int left = 2131296340;
@ -3319,8 +3319,8 @@ namespace QuickPlay
// aapt resource value: 0x7f090070 // aapt resource value: 0x7f090070
public const int list_item = 2131296368; public const int list_item = 2131296368;
// aapt resource value: 0x7f0900bf // aapt resource value: 0x7f0900c0
public const int masked = 2131296447; public const int masked = 2131296448;
// aapt resource value: 0x7f09009c // aapt resource value: 0x7f09009c
public const int message = 2131296412; public const int message = 2131296412;
@ -3340,8 +3340,8 @@ namespace QuickPlay
// aapt resource value: 0x7f09002f // aapt resource value: 0x7f09002f
public const int multiply = 2131296303; public const int multiply = 2131296303;
// aapt resource value: 0x7f0900aa // aapt resource value: 0x7f0900ab
public const int navigation_header_container = 2131296426; public const int navigation_header_container = 2131296427;
// aapt resource value: 0x7f090042 // aapt resource value: 0x7f090042
public const int never = 2131296322; public const int never = 2131296322;
@ -3352,14 +3352,14 @@ namespace QuickPlay
// aapt resource value: 0x7f090025 // aapt resource value: 0x7f090025
public const int normal = 2131296293; public const int normal = 2131296293;
// aapt resource value: 0x7f0900b8 // aapt resource value: 0x7f0900b9
public const int notification_background = 2131296440; public const int notification_background = 2131296441;
// aapt resource value: 0x7f0900b4 // aapt resource value: 0x7f0900b5
public const int notification_main_column = 2131296436; public const int notification_main_column = 2131296437;
// aapt resource value: 0x7f0900b3 // aapt resource value: 0x7f0900b4
public const int notification_main_column_container = 2131296435; public const int notification_main_column_container = 2131296436;
// aapt resource value: 0x7f090060 // aapt resource value: 0x7f090060
public const int outline = 2131296352; public const int outline = 2131296352;
@ -3376,11 +3376,11 @@ namespace QuickPlay
// aapt resource value: 0x7f090058 // aapt resource value: 0x7f090058
public const int pin = 2131296344; public const int pin = 2131296344;
// aapt resource value: 0x7f0900a0 // aapt resource value: 0x7f0900a1
public const int playerNameText = 2131296416; public const int playerNameText = 2131296417;
// aapt resource value: 0x7f0900a3 // aapt resource value: 0x7f0900a4
public const int progressBar1 = 2131296419; public const int progressBar1 = 2131296420;
// aapt resource value: 0x7f090006 // aapt resource value: 0x7f090006
public const int progress_circular = 2131296262; public const int progress_circular = 2131296262;
@ -3391,17 +3391,17 @@ namespace QuickPlay
// aapt resource value: 0x7f090087 // aapt resource value: 0x7f090087
public const int radio = 2131296391; public const int radio = 2131296391;
// aapt resource value: 0x7f0900a2 // aapt resource value: 0x7f0900a3
public const int recyclerView1 = 2131296418; public const int recyclerView1 = 2131296419;
// aapt resource value: 0x7f090055 // aapt resource value: 0x7f090055
public const int right = 2131296341; public const int right = 2131296341;
// aapt resource value: 0x7f0900b7 // aapt resource value: 0x7f0900b8
public const int right_icon = 2131296439; public const int right_icon = 2131296440;
// aapt resource value: 0x7f0900b5 // aapt resource value: 0x7f0900b6
public const int right_side = 2131296437; public const int right_side = 2131296438;
// aapt resource value: 0x7f09000c // aapt resource value: 0x7f09000c
public const int save_image_matrix = 2131296268; public const int save_image_matrix = 2131296268;
@ -3478,8 +3478,8 @@ namespace QuickPlay
// aapt resource value: 0x7f09002c // aapt resource value: 0x7f09002c
public const int showTitle = 2131296300; public const int showTitle = 2131296300;
// aapt resource value: 0x7f0900a4 // aapt resource value: 0x7f0900a5
public const int smallLabel = 2131296420; public const int smallLabel = 2131296421;
// aapt resource value: 0x7f090016 // aapt resource value: 0x7f090016
public const int snackbar_action = 2131296278; public const int snackbar_action = 2131296278;
@ -3547,8 +3547,8 @@ namespace QuickPlay
// aapt resource value: 0x7f09005a // aapt resource value: 0x7f09005a
public const int textStart = 2131296346; public const int textStart = 2131296346;
// aapt resource value: 0x7f0900af // aapt resource value: 0x7f0900b0
public const int text_input_password_toggle = 2131296431; public const int text_input_password_toggle = 2131296432;
// aapt resource value: 0x7f090018 // aapt resource value: 0x7f090018
public const int textinput_counter = 2131296280; public const int textinput_counter = 2131296280;
@ -3559,8 +3559,8 @@ namespace QuickPlay
// aapt resource value: 0x7f09001a // aapt resource value: 0x7f09001a
public const int textinput_helper_text = 2131296282; public const int textinput_helper_text = 2131296282;
// aapt resource value: 0x7f0900b9 // aapt resource value: 0x7f0900ba
public const int time = 2131296441; public const int time = 2131296442;
// aapt resource value: 0x7f090023 // aapt resource value: 0x7f090023
public const int title = 2131296291; public const int title = 2131296291;
@ -3568,23 +3568,26 @@ namespace QuickPlay
// aapt resource value: 0x7f090080 // aapt resource value: 0x7f090080
public const int titleDividerNoCustom = 2131296384; public const int titleDividerNoCustom = 2131296384;
// aapt resource value: 0x7f09009e // aapt resource value: 0x7f09009f
public const int titleText = 2131296414; public const int titleText = 2131296415;
// aapt resource value: 0x7f09007e // aapt resource value: 0x7f09007e
public const int title_template = 2131296382; public const int title_template = 2131296382;
// aapt resource value: 0x7f09009d // aapt resource value: 0x7f09009e
public const int toolbar = 2131296413; public const int toolbar = 2131296414;
// aapt resource value: 0x7f090045 // aapt resource value: 0x7f090045
public const int top = 2131296325; public const int top = 2131296325;
// aapt resource value: 0x7f09009d
public const int topBar = 2131296413;
// aapt resource value: 0x7f09007d // aapt resource value: 0x7f09007d
public const int topPanel = 2131296381; public const int topPanel = 2131296381;
// aapt resource value: 0x7f0900a8 // aapt resource value: 0x7f0900a9
public const int touch_outside = 2131296424; public const int touch_outside = 2131296425;
// aapt resource value: 0x7f09000f // aapt resource value: 0x7f09000f
public const int transition_current_scene = 2131296271; public const int transition_current_scene = 2131296271;
@ -3616,8 +3619,8 @@ namespace QuickPlay
// aapt resource value: 0x7f09001b // aapt resource value: 0x7f09001b
public const int view_offset_helper = 2131296283; public const int view_offset_helper = 2131296283;
// aapt resource value: 0x7f0900be // aapt resource value: 0x7f0900bf
public const int visible = 2131296446; public const int visible = 2131296447;
// aapt resource value: 0x7f090043 // aapt resource value: 0x7f090043
public const int withText = 2131296323; public const int withText = 2131296323;

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout <RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
@ -8,6 +8,7 @@
> >
<android.support.design.widget.AppBarLayout <android.support.design.widget.AppBarLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:id="@+id/topBar"
android:layout_height="?attr/actionBarSize" android:layout_height="?attr/actionBarSize"
> >
<android.support.v7.widget.Toolbar <android.support.v7.widget.Toolbar
@ -42,6 +43,9 @@
<include <include
layout="@layout/content_main" layout="@layout/content_main"
android:id="@+id/include1" android:id="@+id/include1"
android:layout_height="fill_parent"
android:layout_width="match_parent"
android:layout_below="@id/topBar"
/> />
</android.support.design.widget.CoordinatorLayout> </RelativeLayout>
Loading…
Cancel
Save