Questions tagged as 'android-layout'

2
answers

How the android attribute works: ems (TextView)

I would like to understand how this attribute works ( android:ems ). I saw something quoting that it acts on the source of the text, but I do not understand in what way. I tried to do some testing, and I did not notice a result. Does...
asked by 26.03.2014 / 15:38
3
answers

How not to distort the layout when opening the keyboard?

I have a linear layout with a form. whenever the keyboard is open it distorts my layout by leaving my buttons in half, is there any way to keep my layout intact when the keyboard is open ?? Any command that locks my layout behind the keyboard ??...
asked by 26.07.2016 / 15:39
1
answer

How do I make a ListView with components next to the text in each row?

Several current Androids systems have menus like the example below: PleasenotethatanywhereItapmyblueareaunder"Access to my location" it turns the switch on and off and enables or disables the block under "Location Sources" and also does the...
asked by 16.07.2014 / 15:51
1
answer

Create button via code

Is it possible to create a Button through code rather than design mode (xml)? For example: I'll create a screen with a EditText , type a number, and click a Button . After this, x (number entered) EditText is cr...
asked by 16.07.2015 / 18:12
2
answers

Changing Screens in Navigation Drawer

The Navigation Drawer had some changes, where it was used the onNavigationItemSelected(int position, long itemId) method and now comes with the method onNavigationItemSelected(MenuItem item) . I tried to implement the old temp...
asked by 01.12.2015 / 03:43
1
answer

Themes, styles and support Library android

Hello since I started working with Android development, I've always had a hard time understanding how Android's Themes, Styles, and libs part of Android support works, I always have for example, to stylize a EditText or a RatingBar...
asked by 07.01.2016 / 01:20
1
answer

Multiple layouts in one activity - how to use it?

As in this section: @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.addcontact); imageButton01 = (ImageButton) findViewById(R.id.imageButton1); imageButto...
asked by 14.03.2014 / 12:29
1
answer

android text gradient

Is it possible to create a gradient in the text (and not the background ) of a textView using XML only? I know that using shader can do with code ( here >) Is it possible to do this using only XML ?     
asked by 24.05.2016 / 15:43
6
answers

ListView too long

I created a ListView that shows the songs of my sdcard, but as you can see in the image below it is very long regardless of the quantity of items, I want the height of it to be smaller to display more names, so that the list not too long,...
asked by 13.05.2015 / 15:53
7
answers

Removing the TitleBar from the android app

I'm starting on android, and I know very little! I'm developing slowly and with each change I save the apk and see it running on my cell phone. I noticed that there is a bar in the app with the name of the application! I would like to take this...
asked by 13.09.2015 / 21:59