Generate TextView dynamically on Android Studio
I am totally new to Android Studio with Java, I am familiar only with html , CSS , JavaScript and PHP. I am building an app and I need it to generate a list of items from an array. How…
I am totally new to Android Studio with Java, I am familiar only with html , CSS , JavaScript and PHP. I am building an app and I need it to generate a list of items from an array. How…
I'm importing data into my app by use of JSON files. My JSON file has a string attribute like so "story": "Cristoforo Colombo [nasce](myappurl://action?word=nasce) nel 1451 vicino a Genova, nel nord Italia. A 14 anni [diventa](myappurl://action?word=diventa) marinaio e viaggia in…
I am trying to make a textView invisible when pressing a button. But, if the textView is already invisible I want it to become visible. Currently I am trying sonething like this: public void ShowAndHide(View view){ if(textView == View.VISIBLE){ textView.setVisibility(View.INVISIBLE);…
So I have this function below and I want to declare a textview inside it, however using findViewById seems not working. What should I do so I can declare a textview inside a function? fun addingNewText(idt: Int): TextView { //val…
So I have two activities and in the second one there is a edittext and a button. When you type in some number/s in the edittext and when you press the button it should change the fontsize of all the…
I want to apply multiple text-style on textview programmatically in android. val myView : TextView = findViewById(R.id.date_title) // now I want to apply - Bold & italic style on myView at same time like we can do in XML file…
I am building a todo application. My goal is for the item's background color to change to red and the font to white, if urgent = true (boolean). I am able to do this, but unfortunately once it changes the…
I need to indent the same size in the second text view on the right as in the first one on the left. I tried to do through android: text alignment = "textend" android: layout_margin End = "20dp", now I…
I struggle a bit to find or think of a way that I can store the textView text. so later I can pass it back to the server if needed. I have a TextView Inside a CustomCell UITableViewCell. (I have…
Can I animate an increase in a score variable using a textview over 1 second?