Top "Android-layout" questions

A layout defines the visual structure for a user interface, such as the UI for an activity, fragment or app widget.

View's getWidth() and getHeight() returns 0

I am creating all of the elements in my android project dynamically. I am trying to get the width and …

java android android-layout getter
GridLayout (not GridView) how to stretch all children evenly

I want to have a 2x2 grid with a buttons inside. This is only ICS so I am trying to …

android android-layout android-gridview android-gridlayout
Getting activity from context in android

This one has me stumped. I need to call an activity method from within a custom layout class. The problem …

android android-layout android-activity view hierarchy
How to display count of notifications in app launcher icon

samsung galaxy note 2 android version 4.1.2 I know that this question was asked before and the reply was not possible How …

android android-layout notifications icons
How to build a Horizontal ListView with RecyclerView?

I need to implement a horizontal listview in my Android application. I did a bit of research and came across …

android android-layout android-recyclerview
Put buttons at bottom of screen with LinearLayout?

I have the following code, how do I make it so that the 3 buttons are at the bottom? <TextView …

android xml android-layout button android-linearlayout
Changing EditText bottom line color with appcompat v7

I am using appcompat v7 to get the look consistent on Android 5 and less. It works rather well. However I …

java android android-layout android-edittext android-styles
How do I remove the title bar from my app?

In my app there is this title bar at the top where the overflow menu would be, but I don't …

android android-layout
Placing/Overlapping(z-index) a view above another view in android

I have a linear layout which consists of imageview and textview , one below another in a linear layout. <LinearLayout …

android android-layout z-index
Error inflating class fragment

I get the Error Unable to start activity ComponentInfo{de.androidbuch.activiti/de.androidbuch.activiti.task.Activity}: android.view.InflateException: …

android android-layout android-fragments