Skip to content

Commit e87c291

Browse files
Mark as code
1 parent ed77c31 commit e87c291

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

theoplayer/getting-started/01-sdks/02-android/00-getting-started.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ THEOplayer can be added to an Android application either:
103103
1. **Through a layout (XML)**: By adding the `THEOplayerView` to your layout XML file (e.g., `activity_main.xml`), or
104104
2. **Programmatically using the Constructor API**: This approach also allows you to configure the license string through a programmatic configuration instead of the `AndroidManifest.xml`.
105105

106-
### Adding THEOplayerView via XML layout
106+
### Adding `THEOplayerView` via XML layout
107107

108108
You can add the `THEOplayerView` to the layout of the `MainActivity` with the snippet below.
109109

@@ -122,7 +122,7 @@ At least the `id`, `width` and `height` attributes need to be specified on the n
122122

123123
![](../../../assets/img/android-getting-started-14_2.png)
124124

125-
### Adding THEOplayerView programmatically (Constructor API)
125+
### Adding `THEOplayerView` programmatically (Constructor API)
126126

127127
In the Activity/Fragment, you can use the [constructor API](https://docs.theoplayer.com/api-reference/android/index.html?com/theoplayer/android/api/THEOplayerView.html) to create a THEOplayer instance
128128
by passing along a context and a [`THEOplayerConfig`](https://docs.theoplayer.com/api-reference/android/index.html?com/theoplayer/android/api/THEOplayerConfig.html).
@@ -300,7 +300,7 @@ Then set an `OnClickListener()` on the button in our `MainActivity` code to trig
300300

301301
The next step is listening for player events.
302302

303-
First, we need to create two more TextViews in the `activity_main.xml` file.
303+
First, we need to create two more `TextView`s in the `activity_main.xml` file.
304304

305305
```xml
306306
<TextView
@@ -370,7 +370,7 @@ We will now listen for `PLAY`, `PAUSE` and `TIMEUPDATE` in this example.
370370
<!-- spellchecker-enable -->
371371
</Tabs>
372372

373-
When the events are triggered, we will update the **MainActivity** UI with the corresponding state.
373+
When the events are triggered, we will update the `MainActivity` UI with the corresponding state.
374374

375375
### 5. Play fullscreen video in landscape mode
376376

0 commit comments

Comments
 (0)