官术网_书友最值得收藏!

Conventions

In this book, you will find a number of text styles that distinguish between different kinds of information. Here are some examples of these styles and an explanation of their meaning.

Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "Edit the MainActivity Java class so that it extends CardboardActivity and implements CardboardView.StereoRenderer."

A block of code is set as follows:

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        CardboardView cardboardView = (CardboardView) findViewById(R.id.cardboard_view);
        cardboardView.setRenderer(this);
        setCardboardView(cardboardView);
    }

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        CardboardView cardboardView = (CardboardView) findViewById(R.id.cardboard_view);
 cardboardView.setRenderer(this);
 setCardboardView(cardboardView);
    }

Any command-line input or output is written as follows:

git clone https://github.com/googlesamples/cardboard-java.git

New terms and important words are shown in bold. Words that you see on the screen, for example, in menus or dialog boxes, appear in the text like this: "In Android Studio, select File | New | New Module…. Select Import .JAR/.AAR Package."

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.

主站蜘蛛池模板: 灌阳县| 三台县| 黑山县| 嘉定区| 随州市| 华宁县| 桦甸市| 肥城市| 山东| 迭部县| 闻喜县| 澄迈县| 老河口市| 荔波县| 大安市| 林甸县| 浮山县| 抚州市| 革吉县| 神农架林区| 陵川县| 盱眙县| 盈江县| 泉州市| 三亚市| 孟津县| 惠水县| 金沙县| 新巴尔虎右旗| 汕头市| 札达县| 光泽县| 达州市| 南通市| 山丹县| 师宗县| 马山县| 油尖旺区| 民乐县| 龙门县| 浏阳市|