An Android layout defines everything the user can see and touch.

learn more… | top users | synonyms

0
votes
1answer
5 views

Does android:minEms support for all languages (e.g. Chinese, Arabic)?

I know that one ems is typically equal to the size of 'M' character which is the longest character in English. However, for other languages like Chinese or Arabic. Does it work the same way? ...
0
votes
2answers
145 views

Gridview does not fire OnLongClickListener

I have an empty gridview that fills a column in a tablelayout, I want to longpress that gridview and shou a quickaction popup. The empty gridview does not fire longpress event. ...
1
vote
1answer
16 views

Detect which layout is in use in an activity with two layouts

I have an activity called MainActivity that has two layouts.The previous activity has two buttons to choose which layout to be set.I need the button in MainActivity to act differently according to ...
0
votes
1answer
24 views

Android Drawer Layout with main activity

was trying the drawer layout example mentioned in here After trying this out, I added a few elements, like a button, to the main layout. This is what I did : <?xml version="1.0" ...
1
vote
3answers
18 views

Positioning a view under two views (or the lowest view)

I have a RelativeLayout with an ImageView on the left and then a TextView on the right. The TextView is downloaded from a website through their API so it's contents will be different each time. I ...
0
votes
4answers
39 views

Edittext not visible

In my application I have 3 buttons and one listView and one editText with image. My problem is that when I am editing task in my editText the size of the editText is reduced very much.This problem ...
1
vote
1answer
22 views

imageView selected state doesn't show

In my application I have one activity (HomeActivity) and 3 fragments (So I have 3 buttons). In HomeActivity I have buttons that should changed his state after clicking on it. When first run ...
0
votes
3answers
42 views

How to define layout element height as screen height

I'm trying to develop an Android layout where I have an Image and some text. I want the image to be 1 screen tall and the rest of the content will be shown when scrolling down. What value should I ...
0
votes
1answer
21 views

How to inflate another layout inside getView() of gridview adapter in android?

I want to create weekly calendar view and inside each grid item (each day) there are may be several activities.Out of this I have created weekly calendar view using grid view but I want to add ...
0
votes
3answers
1k views

Pass argument to fragment

I created a preference_headers.xml as follow. My activity is able to generate it without any problem. I'm wondering how to pass an argument (i.e. IP address string) from activity to fragment class. I ...
1
vote
5answers
155 views

How to place AdMob at the top of the screen (above) Android Actionbar?

I trying to place an AdMob ad at the top of the screen (above) the Android Actionbar. yellow = ActionBar red = content green = AdMob A similar question I found is to place an ad at the bottom of ...
-1
votes
0answers
14 views

Zoom on View group in android [on hold]

I want to zoom and drag on a relative layout and corresponding to relative layout all sub view should be zoom in and out. Also sub views also have zoom,drag and rotation functionality itself.
0
votes
1answer
20 views

ANR caused by xml layout

I have a layout file called activity_update.xml. Here's the code : <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" ...
1
vote
0answers
25 views

Android, stretching three images horizontally doesn't work on 7" devices

My following piece of code is working correctly on small screen devices such as 3.7", 4" and 4.6" devices. This is footer menu that contains three images at the button screen. When I launch the app ...
0
votes
3answers
253 views

Get itemPosition in the layout (x and y parametres)

I have a RelativeLayout in which i have one ImageButton. I need the position parametres of this item and I don,t know how to get them. I have try with: ImageButton user = (ImageButton) ...

1 2 3 4 5 1089
15 30 50 per page