pkleczko / CustomGauge

Simple gauge view
Apache License 2.0
161 stars 62 forks source link

Gauge XML error #21

Open ghost opened 6 years ago

ghost commented 6 years ago

Added to top:

<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
            xmlns:app="http://schemas.android.com/apk/res-auto"
            xmlns:card_view="http://schemas.android.com/apk/res-auto"
            xmlns:tools="http://schemas.android.com/tools"
            xmlns:gauge="http://schemas.android.com/apk/res-auto"

Android resource linking failed

Output:  E:\Knightec\Battery4\app\src\main\res\layout\fragment_history_car1.xml:213: error: attribute endValue (aka battery.stephanie.com.battery:endValue) not found.
E:\Knightec\Battery4\app\src\main\res\layout\fragment_history_car1.xml:213: error: attribute pointEndColor (aka battery.stephanie.com.battery:pointEndColor) not found.
E:\Knightec\Battery4\app\src\main\res\layout\fragment_history_car1.xml:213: error: attribute pointSize (aka battery.stephanie.com.battery:pointSize) not found.
E:\Knightec\Battery4\app\src\main\res\layout\fragment_history_car1.xml:213: error: attribute pointStartColor (aka battery.stephanie.com.battery:pointStartColor) not found.
E:\Knightec\Battery4\app\src\main\res\layout\fragment_history_car1.xml:213: error: attribute startAngel (aka battery.stephanie.com.battery:startAngel) not found.
E:\Knightec\Battery4\app\src\main\res\layout\fragment_history_car1.xml:213: error: attribute startValue (aka battery.stephanie.com.battery:startValue) not found.
E:\Knightec\Battery4\app\src\main\res\layout\fragment_history_car1.xml:213: error: attribute strokeCap (aka battery.stephanie.com.battery:strokeCap) not found.
E:\Knightec\Battery4\app\src\main\res\layout\fragment_history_car1.xml:213: error: attribute sweepAngel (aka battery.stephanie.com.battery:sweepAngel) not found.
error: failed linking file resources.
Stoikko commented 5 years ago

Getting same error. Wanted to use this library over Speedview, but looks like I will have to go back to that.

Del-S commented 5 years ago

I'm using it like this and it works fine in my case.

app:gaugeStartAngle="270"
app:gaugeStartValue="0"
app:gaugeStrokeCap="ROUND"
frank-sorschak commented 5 years ago

doesn't work for me either. The solution above didn't help me either. Looks like "compile()" is also being depreciated.. seems like this library is out of date