First select Google Chrome Settings and click to Extension menu.
Check Extension for app Always On Top for YouTube.
Launch icon your browser.
Click this icon and show your video always on top.
Thank You
Tech Programming Ideas is one of the best places on the programming for programmers. Learn coding with Tech Programming Ideas tutorials. We are covered android programming, php, yii2 framework, javascript, mysql, vb.net etc.
<menu>
Menu
, which is a container for menu items. A <menu>
element must be the root node for the file and can hold one or more <item>
and<group>
elements.<item>
MenuItem
, which represents a single item in a menu. This element may contain a nested <menu>
element in order to create a submenu.<group>
<item>
elements. It allows you to categorize menu items so they share properties such as active state and visibility. For more information, see the section about Creating Menu Groups.<?xml version="1.0" encoding="utf-8"?><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:paddingBottom="@dimen/activity_vertical_margin" android:paddingLeft="@dimen/activity_horizontal_margin" android:paddingRight="@dimen/activity_horizontal_margin" android:paddingTop="@dimen/activity_vertical_margin" tools:context="com.example.root.myapplication.MainActivity"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Menu Program" /> </RelativeLayout>
<?xml version="1.0" encoding="utf-8"?><menu xmlns:android="http://schemas.android.com/apk/res/android"> <item android:id="@+id/item1" android:title="item1" /> <item android:id="@+id/item2" android:title="item2" /> <item android:id="@+id/item3" android:title="item3" /> </menu>
MainActivity.java
package com.example.root.myapplication; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.Menu; import android.view.MenuItem; import android.widget.Toast; public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); } @Override public boolean onCreateOptionsMenu(Menu menu){ getMenuInflater().inflate(R.menu.main,menu); return true; } @Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); if (id == R.id.item1) { Toast.makeText(getApplicationContext(), "First Item Selected!", Toast.LENGTH_SHORT).show(); } if (id == R.id.item2) { Toast.makeText(getApplicationContext(), "Second Item Selected!", Toast.LENGTH_SHORT).show(); } if (id == R.id.item3) { Toast.makeText(getApplicationContext(), "Third Item Selected!", Toast.LENGTH_SHORT).show(); } return true; } }
If it is in android studio 2.1.1, to create a res/menu folder follow these steps.
right click on res -> new -> Android resource directory -> change the resource type to 'menu' in the dropdown menu -> click ok
to create menu file in menu folder right click on menu folder -> new -> menu resource file ->give the file name -> click ok.
|