Questions tagged as 'android-layout'

1
answer

How can I make a Toolbar with a transparent gradient background?

I need to achieve this effect in the Toolbar: This is the code I use to call Toolbar : //... Toolbar myToolbar = (Toolbar) findViewById(R.id.toolbarMap); setSupportActionBar(myToolbar); myToolbar.setTitleTextColor(getResources()....
asked by 21.10.2017 / 21:43
1
answer

Pass a value to a Textview that is in another Layout that is not loaded in the setContentView ()?

I have a problem sending text to a TextView, the problem is that the TextView to which I want to send the text is in a Layout that is not loaded in the setContentView (). This is the nav_header_main from where I try to take the TextView:...
asked by 15.01.2018 / 20:00
1
answer

Google Maps + ActionBar + status bar translucent on Android

I try to recreate more or less the next image In the background the fragment of Google Map Semi-transparent status bar ActionBar displayed below the status bar What I find when I put in styles.xml <item name="android...
asked by 13.11.2017 / 17:44
1
answer

I can not have getSupportFragmentManager ()

' import android.content.Context; import android.net.Uri; import android.os.Bundle; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; import android.view.LayoutInflater; import android.view.View; import andro...
asked by 18.01.2017 / 00:07
2
answers

Error Resources $ NotFoundException for ImageView with vector drawable on Android

I just received an ANR report in the Google Play Console of an app that a user has shown to me using my app. android.content.res.Resources$NotFoundException: File res/drawable/ic_circular_way.xml from drawable resource ID #0x7f02006a. If the r...
asked by 16.01.2017 / 14:48
1
answer

Increase screen ratio for Samsung S8 and LG G6 on Android

With the departure of new more landscape terminals such as the LG G6 and the Samsung S8, the apps are displayed with a black strip at the top and bottom, how can you adjust that the app expands in its entirety?     
asked by 31.03.2017 / 12:57
1
answer

Error loading Layouts in Android Studio

Good afternoon, I have a problem when loading the layouts in my Android project. In the header of "activity_main.xml" I have the following: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schema...
asked by 03.04.2017 / 00:54
3
answers

How to insert a default color in a tab in tabLayout Android?

Hi, I am doing an Android application and I have created a tabLayout where there is 3 tab, and I would like the central tab to have a different color, like Instagram in the first version. I can not find a way to get it. Thanks. tabLayout = (Ta...
asked by 17.10.2016 / 18:23
2
answers

Rotate an ImageButton on Android

In the header of my NavigationView I created a ImageButton that when you click on it, change the menu that appears in NavigationView . This task works perfectly, but I want that when you press this ImageButton ,...
asked by 31.05.2016 / 18:45
2
answers

Flexible headers below the Android content

Looking through the material design design guide , there is a scroll called Flexible space with overlapping content that the ActionBar when expanded is displayed below the content and when scroll is collapsed. How can this over...
asked by 17.08.2016 / 20:41