TextView: Limit text to specific length with 3 dots

I have TextView which should accept max 6 characters. If value has more than 6, I want to show 3 dots at the end. Used these attributes to achieve that but it just simply cut text at the end without 3 dots. android:textAlignment="viewEnd" android:maxLines="1" android:maxLength="6" android:ellipsize="end" >Solution : Cleanest and quickest way would be to… Read More TextView: Limit text to specific length with 3 dots

send tab layout on top

I want my tab layout to appear on top of my screen. Currently it is on the bottom on the screen. Tried a few ways didn’t work. How can I make it go on top of my screen. Code for the xml file <?xml version="1.0" encoding="utf-8"?> <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android&quot; xmlns:tools="http://schemas.android.com/tools&quot; android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".kanbanManagement"> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android&quot; xmlns:app="http://schemas.android.com/apk/res-auto"&hellip; Read More send tab layout on top

how show response of text view after clicking a button

I am trying to show response on screen using text view after clicking a button but getting error saying com.android.volley.toolbox.JsonObjectRequest cannot be cast to java.lang.CharSequence package com.example.volleydemo; import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widget.Button; import android.widget.TextView; import com.android.volley.Request; import com.android.volley.RequestQueue; import com.android.volley.Response; import com.android.volley.VolleyError; import com.android.volley.toolbox.JsonObjectRequest; import com.android.volley.toolbox.Volley; import org.json.JSONException; import org.json.JSONObject;… Read More how show response of text view after clicking a button

How to get a sum of all values from a node in Firebase? Error

tell me, please: what is my mistake? I’m trying to apply your example, but I can’t get the summation result. I want to add up all the prices and display them in TextView. I will be grateful for the help, I’m new to this. enter image description here MainActivity package com.example.testkorzne; import androidx.annotation.NonNull; import androidx.appcompat.app.AppCompatActivity;… Read More How to get a sum of all values from a node in Firebase? Error

Why is textView not showing?

I made cardView and implemented onClickListener, I also created a fragement the card navigates into which has a textView.. But, when I navigate into the fargement it returns this blank screen; Please what’s causign this?? Here’s the onClickListener code in .kt file; // ssJkRowling val ssJoanneRowling : CardView = view.findViewById(R.id.ss_jk_rowling) ssJoanneRowling.setOnClickListener { val ssJoanneRowlingFragment =… Read More Why is textView not showing?