An Android layout defines everything the user can see and touch.
0
votes
1answer
12 views
Android Screen Sizes for different devices
I am new to android development and now i have started developing wallpaper apps.I saw the android developer page which tells the ratio 3:4:6 or something which i don't understand. Everything is ...
0
votes
2answers
22 views
left and right alignment rows inside Listview?
My goal is below image
And i have below codes
row_right.xml
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
...
1
vote
2answers
17 views
layoutroot can't be resolved
I'm a newbie in android java programming, and I have a code to take a screenshot:
View content = findViewById(R.id.layoutroot); //it gives the "layoutroot cannot be resolved or is not a field" error
...
0
votes
0answers
20 views
How to resize image height based on the parent layout content height dynamically?
I have a parent layout with android:layout_height="wrap_content" and in my class code, it should set the layout background from a specific image, but the image height is bigger than the content ...
-2
votes
1answer
35 views
Isn't more expensive to use Fragments?
While I understand why we need Fragments ( independent reusable modules, each handle its own UI which can change for tablets and phones, etc... ) if I ignore those reasons and try to keep it simple ...
1
vote
1answer
29 views
DrawerLayout is hidden below the GridView
I try to implement the latest drawer layout from support library 13.
With the following code, the drawer is always showing below the gridview. Even I try to call bringToFront() still not working. Can ...
0
votes
2answers
23 views
Android SherlockListFragment list adapter with custom layout for each item
I have a SherlockListFragment to display a list with certain information if is available on a fetched JSONObject. There are four types of information: phone, website, location and opening hours, and ...
0
votes
3answers
23 views
Deselect seleted item in ListView
I use a ListView in my layout like this:
<ListView android:id="@+id/list"
android:layout_width="fill_parent"
android:layout_gravity="center"
...
0
votes
2answers
27 views
Half blank screen on ResponsiveUI in SlidingMenu
The SlidingMenu demo app from the PlayStore works without any problem on my N7. But when I compile it from my computer, I have the following problem in ResposiveUI Activity : when I open the ...
-1
votes
3answers
15 views
Define a custom color variable
I want to change some button colors globally in my code. I cannot seem to fine a way to define a color variable and then assign a color value to that variable.
I tried this
Color ...
0
votes
2answers
42 views
Hide/show Layout difficulties
I have three subLinearlayout of RelativeLayout . i am hide and show programatically all three layout under the same RelativeLayout.
in all above three subLinearlayout first Linearlayout content is ...
0
votes
0answers
26 views
setContentView of two different files
i tryed many different ways to implement it but i didn't find something which works. That's why i'm here now.
My problem is that i want to build my graphic interface with a layout (which is on the ...
0
votes
1answer
13 views
XML - Layout going over edge of screen when using weight=1
How can I have the bottom row of images not cut in half on smaller/medium screens?
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout ...
0
votes
2answers
42 views
layoutParams not changing
I am trying to animate a horizontal list item dismiss
the alpha animation works and the layoutparam values also decrease over time
but for some reason that doesn't change the actual height of the list ...
1
vote
6answers
38 views
Button array onclicklistener
I have set up 10 buttons in xml and added to main activity. I show only 2. All button just change a variable and button colors. Is there a method to group all the button to a single onclicklistener ...