Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about android-xml

Read more about android-xml

python (12.9k questions)

javascript (9.2k questions)

reactjs (4.7k questions)

java (4.2k questions)

java (4.2k questions)

c# (3.5k questions)

c# (3.5k questions)

html (3.3k questions)

Questions - android-xml

How to use visibility on android studio?

Think I have 4 button on navbar. First button contains some data or items and other buttons also contains some data or items. Note: All four buttons under a same xml file. I want if I click first butt...
test-img

MD. NAHIAN AHMED

android

android-studio

android-layout

android-xml

Votes: 0

Answers: 3

Latest Answer

As you want to hide other three buttons you can use switch case where you can get the click of the button and on the click of one button you can hide all other buttons. Button b1 = (Button) findVie...
test-img

Jay_Panchal

How to center a multiline text view with the smallest width necessary?

I would like to have my 2-line text view in android-xml centered horizontally with the smallest width necessary. At the moment it's like the first line is completely filled and the second with the res...
test-img

Markus

android

textview

android-xml

centering

multiline

Votes: 0

Answers: 1

Latest Answer

Try setting android:breakStrategy attribute of textView to balanced android:breakStrategy="balanced" Add this line to your textView's xml code, this will balance the lines.
test-img

DrHowdyDoo

Posts

Questions

Blogs

Jobs

The ultimate platform for coders and IT specialists

About

  • Company
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved