Questions tagged as 'android-layout'

1
answer

Custom ListView occupying 100% of screen

I created a Custom Listview with some items but as you can see in the image below there is an "empty space" on the screen. I would like to know how to make the items occupy all the remaining space on the screen. Menu.javacode:publicclass...
asked by 31.01.2015 / 06:07
1
answer

How to change AppTheme?

I have 2 styles files. With a click on a button I want to switch from AppTheme to AppTheme2. how to do? Manifest.xml <application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_nam...
asked by 28.07.2018 / 03:27
0
answers

Find controls in a separate class from the main Activity

I need to look for controls to change values in the layout. However passing the context per parameter to the class it does not find controls declared in xml returning null for each cast done. The class where I'm trying to retrieve this data e...
asked by 01.12.2014 / 18:26
3
answers

I made a SplashScreen it loads and will not go to the first activity what should I do? [closed]

What should I do? intro.javapublicclassintroextendsAppCompatActivity{protectedstaticfinalintTIMER_RUNTIME=5000;protectedbooleanmbActive;protectedProgressBarmProgressBar;@OverrideprotectedvoidonCreate(BundlesavedInstanceState){super.onCreate(...
asked by 27.09.2016 / 19:09
1
answer

How do I adjust my application to the screen size of multiple devices? [duplicate]

Good afternoon, I'm developing an application in Android Studio and it fits well in my Motorola Moto X 2nd Generation. But in my Samsung Galaxy Note 3, Motorola Moto E and Motorola Moto G, it gets all messy, it's a mess! I would like to know h...
asked by 23.05.2015 / 20:21
1
answer

Gray button on an older version of Android

I'm making an app, where the buttons are green, and go green when I testo on Android 6.0, but when I test the Android KiKat the button turns gray.     
asked by 07.07.2016 / 04:37
1
answer

Working with BACK buttons on the Navigation Bar (native smartphone) and Action Bar (added via Java)

I'm asking this question / answer to help anyone who might have had / have any questions regarding the BACK buttons that are extremely useful in our applications. I'll use 1 and 2 to differentiate Action Bar and Navigation Bar (2)...
asked by 18.04.2016 / 20:54
2
answers

Animation when modifying LinearLayout height

I'm modifying the height of a LinearLayout of WRAP_CONTENT for 0 (zero) and vice versa by listening for the event onClick of a Button . I would like this change to occur gradually over a few millise...
asked by 19.02.2017 / 16:15
2
answers

round border on EditText Android

I'm developing a mobile application using Android studio 2.2.2, and wanted to leave my application with that look. ButI'mnotabletoputtheborderandthelineabovetheeditText <?xmlversion="1.0" encoding="utf-8"?> <LinearLayout xmlns:andro...
asked by 19.08.2017 / 05:11
2
answers

Scroolview bypassing the toolbar

I'm trying to create a signup screen with a Scroll, with a toolbar. However the Scroll overlaps the Toolbar. I have tried to put the app:layout_behavior="@string/appbar_scrolling_view_behavior" attribute but it did not work. Has anyone ev...
asked by 05.08.2017 / 21:11