Questions tagged as 'android-layout'

1
answer

How to put a logo on the Toolbar?

I was searching here and found something very interesting, the company logo on Toolbar . How do I put a company logo on Toolbar ?     
asked by 28.03.2017 / 21:08
3
answers

Change android APP text font

I'm developing an Android APP on Android Developer Tools. I would like to know how to change the text font that is default from Android to the Museo.otf font, and how to apply it to all TextViews. Thank you in advance.     
asked by 28.06.2014 / 00:18
1
answer

How to make a Square or Rectangular FloatingActionButton?

I have 2 Floating Action Buttons on the screen. How can I make them rectangular?     
asked by 27.09.2016 / 20:14
2
answers

Difference between activity and content

I do not know if this is the right place for this, if not for guidance where I throw this doubt. I'm learning how to develop apps in Android Studio, and I'm following some tutorials. Some cases have noticed that some have only activity an...
asked by 21.12.2017 / 15:31
1
answer

Why is it recommended to use "sp" instead of "dp" in text sizes?

Given that when we use the drive sp in TextView a warning always appears like this:    Should use "sp" instead of "dp" for text sizes This SOpt response shows exactly the difference between units of measure: Doubt over px,...
asked by 21.09.2016 / 20:04
2
answers

How to remove ProgressBar margins?

I added a ProgressBar simple to a LinearLayout , however I noticed that it generates a margin above and below, as it is in the image:    Thesetwowhitestripes,Itriedtoremoveanyway,theonlyonesthat"seem to eventually" work are the...
asked by 17.10.2016 / 16:58
1
answer

The Horizontal ScrollView of a TextView slide automatically when inserting dynamic text

I have a simple layout as shown below that has a ScrollView horizontal when it exceeds the limit of TextView . But I would like when inserting text the focus of TextView always stays in the last value entered and do...
asked by 06.01.2016 / 22:15
1
answer

How to use the Toolbar widget?

I've already seen the android's own documentation already done all the steps of other forums and still could not use toolbar in my screen layout.    How should I proceed step-by-step with regard to implementation and use in my   layout or to...
asked by 01.11.2014 / 16:54
1
answer

Display a message when the ListView is empty

I have a ListAdapter that extends a BaseAdapter that works perfectly. When it is empty, I want a message to appear. Where to implement this validation?     
asked by 01.02.2014 / 19:45
2
answers

Best practices in the interaction between Activities

I'm developing an application just to validate the interaction between activities and intents . I created 5 ImageButton with an image for each. Each button represents a movie and if the user clicks on one of them, it is di...
asked by 20.10.2015 / 15:09