Skip to main content

All Questions

Tagged with
0 votes
1 answer
130 views

Android change specific words on TextView from Java or XML

Since Android XML layouts are all rectangular, how can I have just some parts of the TextView with different font sizes and params? In the example below, the time (which is in grey and has a smaller ...
ludicrous's user avatar
  • 175
3 votes
3 answers
596 views

How to make a TextView have a fully round background, no matter the length of text

I am trying to make a notification count indicator, where a TextView would be showing the number of notifications present. The TextView would be placed on top of an ImageView that has a bell icon. The ...
Noah's user avatar
  • 713
0 votes
2 answers
189 views

How do I keep Text Size in TextView consistent over different screen sizes and densities?

I have read many Q&A's regarding this and none of them worked. They were most likely outdated. Surely there is a simple solution to this. I am developing a UI that is a static picture background (...
Aces Up's user avatar
  • 33
0 votes
3 answers
183 views

How to align a TextView according to its length

i have an interface with two ImageButtons and a TextView among them. The TextView contains a number and the two ImageButtons control that number, adding or removing 1. The problem is when the number ...
Gabriel's user avatar
  • 474
0 votes
1 answer
443 views

Text goes out of bounds for phones with a smaller width size

I have a set of codes that fit all phones with a width of 1080 or bigger, however for phones with 720 widths my last TextView with textSize of 20dp with the text "Price" goes halfway out of bound the ...
frosty's user avatar
  • 2,679
0 votes
1 answer
45 views

Straightforward way to place text on a specific location in an image?

Overhead schematic of Docks map in Modern Warfare Overhead schematic of Docks with one callout name I'm creating an app that will display names - "callouts" - for various specific areas of each map ...
Shane Allen's user avatar
1 vote
0 answers
73 views

Android - Space added above TextView

When I have the following TextView, within a linear layout: <TextView android:id="@+id/lbl_date" android:layout_width="wrap_content" android:layout_height="45dp" android:ems="5" ...
bddicken's user avatar
  • 1,412
0 votes
1 answer
122 views

TextView inside TextSwitcher gravity bottom wont work

I have a standard TextView and TextSwitcher: The TextView: <android.support.v7.widget.AppCompatTextView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="...
Izak's user avatar
  • 1,001
0 votes
1 answer
91 views

Set a textView in a different layout to the value of an EditText

I'm making an app and I am trying to make a settings panel where all of your data from signing up is stored. I have a change button next to a TextView and when you click on that it takes you to a ...
Jonathania's user avatar
1 vote
2 answers
4k views

Error reading from input stream - cannot resolve symbol

I have SQLite login and register app that suddenly decided to crash. There was a problem with the id of textViewLinkRegister. Can someone help me out?? <?xml version="1.0" encoding="utf-8"?>...
Lavinia Rotaru's user avatar
-1 votes
1 answer
204 views

How to make TextView chars the same size?

I need to show in TextView chars with the same size in pixels, can it be done using a custom font or something like that? Take for example the char ';' takes 8 pixels in width and a space ' ' takes 7 ...
Abaqus's user avatar
  • 49
0 votes
1 answer
568 views

TextView outside of a cardView

i want to swap the functionality of the oldTextView to the TextView with ID nameAgeLabel. The "nameAgeLabel" is outside of the View view. It also should change the text dynamically like it does now, ...
matt's user avatar
  • 17
-3 votes
1 answer
275 views

Android Textview EditText Bugs

I am learning Java from Stanford online to make a simple android project. it requires to make a simple shopping list. Requirement: when the user clicks When the user clicks on “Add Item”, whatever is ...
kai dai's user avatar
4 votes
3 answers
2k views

Android detects instanceof EditText and instanceof TextView as the same

I have dynamically created Layout. It has some edittexts, textview, spinners, etc. After it, I have to get the info I introduce on those views. So Im doing something like this for(int i=0;i <= ...
Daniel Arteaga Iriarte's user avatar
0 votes
0 answers
104 views

RNG Application with several random numbers in different TextViews (Android/Java)

What I'm trying to do: I'm trying to create an android app, which creates up to 6 different random numbers inside of a grid view. You can adjust the settings with simple number pickers. I got 2 ...
pgalle's user avatar
  • 43

15 30 50 per page