Hat jemand mit CircleProgress - Android Material Design aus dieser Link gearbeitet?Wie Prozentzeichen aus CircleProgress Bibliothek entfernen - Material Design Android
Ich bin mit ArcProgress aus dem genannten Link arbeiten.
Hier ist mein Bedürfnis,
Auf dem obigen Bild enthält Nummer "". In der Nähe dieser Nummer eins Prozent (%) Symbol dort. Ich möchte dieses Prozentzeichen entfernen.
Wie wird es entfernt?
Irgendwelche Vorschläge?
Vielen Dank im Voraus ....
activity_main.xml
<?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"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<com.github.lzyzsd.circleprogress.ArcProgress
android:id="@+id/arc_dBal"
android:layout_width="150dp"
android:layout_height="150dp"
android:layout_marginLeft="10dp"
app:arc_bottom_text="Remaning"
app:arc_finished_color="#ffff00"
app:arc_progress="46"
app:arc_text_color="00ffff"
app:arc_unfinished_color="#2A50E4" />
</LinearLayout>
main.java
public class DataUsage extends Fragment {
private ArcProgress arc_dBal,arc_validity;
@Nullable
@Override
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.activity_main,null);
arc_dBal = (ArcProgress)view.findViewById(R.id.arc_dBal);
arc_validity = (ArcProgress)view.findViewById(R.id.arc_validity);
/*** CIRCLE PROGRESS ***/
arc_dBal.setProgress(46);
return view;
}
}
default_suffix_text geändert = "%"; zu default_suffix_text = ""; in ArcProgress.java, wie ich es nie wollte – Veer3383
verwenden Sie dieses Attribut ' ', btw Sie haben die Quelldatei von 'com.github.lzyzsd.circleprogress.ArcProgress' so schauen Sie einfach, wie es funktioniert, bevor Sie auf SO fragen –
pskink
@ Veer3383 Vielen Dank. Es funktioniert gut ... – prabu