Hi,
I've got listview that in a row it contain 3elements: imageview, textvie and another imageview. I've set my listview to setItemsCanFocus(true) and every item is set setFocusable(false). Screen: http://img252.imageshack.us/img252/4042/zrzutekranue.png
I can navigate on the screen (click on text/image, I have those fields set to click...
I need to capture the absolute positions of some ImageViews to use as drop targets. I can't seem to find what event I need to put my code in to read the screen and get the Left(), Top() .. positions. I do not want monitor the inflation of each individual view. There must be some sort of onScreenFinsihed type of event, but I can't find ...
Can I modify android.R.layout.simple_list_item_1? For eg., I want to change the text color of the textview inside the listview dynamically. For this, I need to get to the textview and change its color.. How can I do that?
...
One part of my layout is supposed to have two components: A ScrollView on top, and a MapView on the bottom. Both views should be exactly half the size of the parent.
I have the size of the parent (I'm switching to this layout at a point when I already have the size), but I don't know how to define the maximum size. Besides, I figure the...
Hello everyone,
I'm trying to put 2 listviews into my layout. The problem is that I don't know the size of each listview in advance. The first listview could have a few items (0, 1, 2 up to roughly 10) and the second listview could have many items (up to 100).
I tried to set the weight of both listviews at 1 but it did not work:
=> If...
Hi,
I'm trying to sort the layout for one of my Android apps, but I'm finding layouts a nightmare.
Principally I have to have a portrait and landscape layout for normal, small and large screens. So thats 6 layouts to maintain to start with, let alone having to launch the app on three emulators each time because my UI widets don't lo...
I have an Activity where I want to display a heading that takes up the top quarter of the app and displays a dynamic set of text. In some cases it'll all fit on one line and I'd like the font size to get sized up so it's large and easy to read. In some cases it'll be on multiple lines (usually less than 4) and need to be smaller.
The co...
Hi Friends,
I have been struggling with this problem for many days. please help me..
In my android application i am trying to download images from remote server dynamically ( no of images dynamically come ). for downloading all images it is taking 30 to 40 seconds mean time user has to wait to see the activity . But it is the worst ca...
Hi friends i have set my layout thru TabLayout within LinearLayout but still my button in the end couldn't be set properly as TabLayout divides all the fields in number of columns so can anyone help how to set 2 Layouts in one XML file
means all the fields in TabLayout and remaining both Login and Register buttons in Linear Layout ore so...
I have a relative layout with various text view aligned in it.But the alignment goes wrong if value of any textview goes multiline.is there any way to avoid it?
The view required is something like :
Name: Abc
address: 23,abc street,fhjhg apartments,Country
Email: [email protected]
address text view has width set as wrap-content...
I have an application which is designed for a fixed screen size.But when i install the application on a device with different screen size ,i am not able to view the complete application.
Is it possible to allow layout adjustments based on variable screen sizes? ... like setting width with some % of screen size which is decided when appl...
I need to input latitude and longitude separately in 2 EditTexts and diplay the location at the click of a button. Somehow i'm not able to get the correct layout as i precisely require 2 EditTexts aligned side by side and a button below them.
Here is what i already have:
<LinearLayout android:id="@+id/zoom"
android:...
I create a very simple activity where I create and set the view in java code instead of xml. The width I pass to the outer LinearLayout though has no effect at all (200). The view is displayed on the entire width of the screen, no matter what value I pass here.
(Note that this is just sample code; I know that in a real app you don't use...
Hello,
I would like to have a layout with 5 times 5 buttons. Each of them should have the same width and height (they should be square). And I want the whole matrix to use the screen width (or height, depending on rotation).
I currently do it "by hand" in the Java code:
for (int y=0; y<5; y++) {
TableRow tr = new TableRow(this);
...
Why the last section is not displayed at all? AFAIK It should. It starts with :
<LinearLayout
android:orientation="vertical"
android:layout_height="match_parent"
android:layout_width="70dip"
android:minWidth="70dp"
android:layout_weight="1">
Thanks in advance.
Full XML layout:
<?xml version="1.0" encoding="utf-8"?>
<V...
Hierarchy Viewer tool is missing from my android-sdk-windows\tools directory.
Link to tool:
http://developer.android.com/guide/developing/tools/hierarchy-viewer.html
Should it be there is first place?
P.S. SDK Tools rev. 7, Platforms 7 & 8 packages are installed.
...