Questions tagged as 'android-layout'

2
answers

What's the difference between gravity and layout_gravity on Android?

In the customization of layout properties in Android Studio, I noticed that there is gravity and layout_gravity , both have the name gravity , so I'm a little confused as to its features. That is, what are the differences b...
asked by 07.10.2016 / 22:56
1
answer

Icon color - Android Toolbar

How do I leave the color of the icon in API's smaller than 21, also white? At 21 it works ok, but below as for example 16, it turns black. I did it this way: Toolbar <android.support.v7.widget.Toolbar android:id="@+id/t...
asked by 22.03.2016 / 17:45
3
answers

Increasing the size of a TextView, according to the amount of data inserted in it

I'm developing an app, for technical course work, and I have the following situation: I'm displaying data within a TextView . But there comes a time when size is not enough. Look at the pictures. App Home Photo: PhotoActivityReport,wh...
asked by 22.09.2015 / 03:17
1
answer

Set AlertDialog with Open Keyboard

I have the following problem I have an AlertDialog Whenthekeyboardopens,thedialoggoesup,butpartofthedialogishidden.Itdoesnotadjusttheheightasthekeyboard DialogXML:<ScrollViewxmlns:android="http://schemas.android.com/apk/res/android"...
asked by 29.09.2016 / 18:49
1
answer

Different layout on another device

My layout looks different on small devices, I've already tried to add a ScrollView to fix this problem and get no results. Follow prints of the application running on different devices: Resolution 720 x 1280 320x480reso...
asked by 15.10.2014 / 16:20
1
answer

8-digit hexadecimal color problem - Android

I'm working on an application where I'm trying to follow the Google Material design guide. On this page, it is recommended to use black color (% color) with 87% opacity as the color of the main texts. Using a hexadecimal to decimal converter,...
asked by 20.08.2014 / 08:30
1
answer

How to make Splash screen?

I'm developing an app for android using eclipse, in this app, when I start it, I needed to have a splash screen, that is, a screen with my logo, then wait for about 4 seconds, and go to the screen of login. How can I do this?     
asked by 05.06.2014 / 19:50
1
answer

How to change the color of the line below EditText via xml

How to change the color of this line under EditText via xml?     
asked by 30.08.2018 / 11:13
5
answers

One component on top of the other

I have a problem that I do not think how to solve it, I have an activity like in the picture below, the problem is, that when I emulate the application, the Button and the textView go under the two colored LinearLayouts (blue and green). Iwo...
asked by 23.06.2016 / 22:54
1
answer

Type of android keyboard, text and number

How can I make the android keyboard have two types, in case I wanted numbers and letters. I tried using android:inputType , but it did not work. Is there a way to resolve this? Thank you. RESOLVED Looking further into the proble...
asked by 23.11.2015 / 13:55