Posts by Junior Klawa • 331 points
19 posts
-
0
votes2
answers558
viewsA: How to save the value of a variable in Android Studio?
Giving a few more tips: @Override protected void onCreate(final Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); //Aqui é onde suas variaveis…
-
0
votes1
answer130
viewsQ: Change variable and save it by Asyncstorage
I am developing an APP that contains several texts, so the font size of the texts are imported from a single variable. I’m trying to add an option to make the font bigger, and save the size of the…
-
0
votes1
answer132
viewsQ: Upload a local image inside a webview
I have a component WebView who carries a String HTML, the problem is I can’t carry a local image inside that WebView. The image is inside the folder '../img/imagem.png' and when I place this…
-
2
votes1
answer416
viewsQ: Copy HTML from a page display in a textview
I need a direction. What method to "download" a page’s html (text only) for example: https://pt.wikipedia.org/wiki/Tancredo_Neves and display it in a textView?…
-
1
votes1
answer821
viewsQ: Concatenate a @string and XML text
I have a string called "key" and wanted to add the sequential numbers next to it in some textviews , but I don’t know how to concatenate into XML. For example: android:text="@string/key" + "1"…
-
0
votes1
answer41
viewsQ: Best HTML library for Android Studio
Someone can give me suggestions of HTML libraries to use in Android Studio, or what would be the best way to put HTML without being native? Example: Html-Textview…
-
1
votes0
answers71
viewsQ: Close an Activity and start another (Intersticial admob)
I have an Interstitial admob on an Activity and when I press a button I put the following lines of code: botaoid.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v)…
-
1
votes2
answers162
viewsA: How to make an object in Listview have an absolute position?
I figured out the answer, it was pretty basic. instead of position or itemPosition in the Switch should be placed itemValue and the value of case to the String desired to stay this way: switch(…
-
3
votes2
answers162
viewsQ: How to make an object in Listview have an absolute position?
I have a listview with several items, I also have right up a searchView to perform a filter on these items, being they "clickable", starting another Activity. The problem is that the numbering of…
-
1
votes1
answer551
viewsA: Button effect pressed
I found what I wanted, would be the selectableItemBackgroundBorderless or as the colleague above spoke attr/selectableItemBackground, just put in the background of Imagebutton.…
-
1
votes1
answer551
viewsQ: Button effect pressed
I have several buttons on an app and wanted them to have the same effect as Button when pressed, because there are several buttons, I would like to create a code in JAVA for this and not by the…
-
1
votes2
answers2390
viewsQ: Underline a word within a Textview
As I can underline, leave in bold/italic a single word within a TextView? for example: <TextView android:text="Abelha Barco Casa Dado" android:layout_width="wrap_content"…
-
2
votes1
answer530
viewsQ: Scroll View on Android Studio, Basic question
I have a very basic question, how do I see the content that is below the Scrollview visible in the editor itself? Since content exceeding the selected resolution does not appear?
-
0
votes1
answer122
viewsQ: Positioning Imagebutton in XML
I have an imagebutton in a relative layout. When I put the command: "android:layout_marginLeft=" It does the intended (move away from the left edge in x measure), but when I put:…
-
4
votes1
answer303
viewsQ: Variable that changes according to the button pressed
I have two different methods on two different buttons. the Method onE adding up 3 the variable and the Method onM that takes -1 variable. The problem is that when I put this variable to appear in…
-
3
votes2
answers1540
viewsQ: Swap a variable from True to False and vice versa
I created a button that when clicked creates the onClick method and makes a variable "true" What I want is that if this button is clicked again and the variable is true it turns "false" I’m using…
-
-1
votes1
answer62
viewsQ: Save several variables in an Edittext
Hello, my problem is how to save different strings that are written in an Editview. I can save a variable every time a button is pressed. But I don’t know how to save another string in another…
-
2
votes2
answers1327
viewsA: Skip a line in the textView
I figured out how to skip the line. just use the " n"
androidanswered Junior Klawa 331 -
0
votes2
answers1327
viewsQ: Skip a line in the textView
How to skip a line in a textView in Android Studio? Or even regarding the formatting of the text itself, leave some part in bold for example? there is something integrated automatic or I would have…
androidasked Junior Klawa 331