Top "View" questions

This tag is for questions about database view or UI / architectural view.

Get root view from current activity

I know how to get the root view with View.getRootView(). I am also able to get the view from …

android android-activity view
How to set background color of a View

I'm trying to set the background color of a View (in this case a Button). I use this code: // set …

android view colors background set
How to Set Opacity (Alpha) for View in Android

I have a button as in the following: <Button android:text="Submit" android:id="@+id/Button01" android:layout_width="…

android button view opacity
Set margins in a LinearLayout programmatically

I'm trying to use Java (not XML) to create a LinearLayout with buttons that fill the screen, and have margins. …

java android layout view margin
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
Android: How do I prevent the soft keyboard from pushing my view up?

I have a vertical sliding drawer at the bottom of my app. When the soft keyboard opens, it pushes the …

android layout keyboard view
Difference between View and table in sql

Possible Duplicate: Difference Between Views and Tables in Performance What is the main difference between view and table in SQL. …

sql view
Android - Dynamically Add Views into View

I have a layout for a view - <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:…

android dynamic view android-layout
Set the absolute position of a view

Is it possible to set the absolute position of a view in Android? (I know that there is an AbsoluteLayout, …

android android-layout layout view position