1 Replies - 257 Views - Last Post: 24 June 2019 - 06:59 AM

#1 Soumyajitm32   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 24-June 19

Android Studio:-error: not well-formed (invalid token).error: not well

Posted 24 June 2019 - 12:53 AM

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:gravity="center_horizontal"
    android:orientation="vertical"
    tools:context=".MainActivity">

    <ImageView
        android:layout_width="250dp"
        android:layout_height="220dp"
        android:baselineAligned="false"
        android:src="@drawable/image"/>
    <SeekBar
        android:id="@+id/positionBar"
        android:layout_width="250dp"
        android:layout_height="wrap_content"
        android:layout_marginTop="40dp"/>

    <androidx.appcompat.widget.LinearLayoutCompat
        android:layout_width="match_parent"
        android:layout_height="wrap_content">
        <TextView
        android:id="@+id/elapsedTimeLabel"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginLeft="45dp"
        android:text="00.00"/>

        <TextView
        android:id="@+id/remainingTimeLabel"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginLeft="177dp"
        android:text="-4.00"/>
    </androidx.appcompat.widget.LinearLayoutCompat>

    <Button
        android:id="@+id/playButton"
        android:layout_width="40dp"
        android:layout_height="40dp"
        android:layout_marginTop="40dp"
        android:background="@drawable/play"
        android:onclick="playBtnClick"
        tools:ignore="onclick" />

    <androidx.appcompat.widget.LinearLayoutCompat
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginTop="40dp"
        android:gravity="center"
        android:orientation="horizontal"

        <ImageView
            android:layout_width="18dp"
            android:layout_height="18dp"
            android:src="@drawable/sound"/>

        <SeekBar
            android:id="@+id/volumeBar"
            android:layout_width="250dp"
            android:layout_height="wrap_content"
            android:max="100"
            android:progress="50"
            />

        <ImageView
        android:layout_width="24dp"
        android:layout_height="24dp"
        android:src="@drawable/sound2"/>

        ></androidx.appcompat.widget.LinearLayoutCompat>

</LinearLayout>
:code:

This post has been edited by modi123_1: 24 June 2019 - 06:55 AM
Reason for edit:: In the future, please highlight the text that is code and click the [code] button in the editor.


Is This A Good Question/Topic? 0
  • +

Replies To: Android Studio:-error: not well-formed (invalid token).error: not well

#2 modi123_1   User is online

  • Suitor #2
  • member icon



Reputation: 15356
  • View blog
  • Posts: 61,556
  • Joined: 12-June 08

Re: Android Studio:-error: not well-formed (invalid token).error: not well

Posted 24 June 2019 - 06:59 AM

Please post your full error message.

Also check to make sure your tags are properly closed.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1