Tagged Questions
1
vote
3answers
34 views
Change Layout when Thread finish
I want to change the layout when a thread ends, but I don't understand the bug; for example:
res/layout:
-mainView.xml
-threadView.xml
MainActivity.java
protected void firstThread() {
...
0
votes
1answer
16 views
How to show an ImageButton hidden by keyboard - Android
I have a layout that contains an EditText and an ImageButton below. When the EditText get the focus, the keyboard appears and hides the ImageButton. How can I force it to be shown, the same way as an ...
0
votes
1answer
14 views
How to set view paddings programatically?
How to get pixel independent dimension size and set it as a padding?
When creating Android View objects programatically, you need to convert dimensions from dips to pixels before setting it to view's ...
-1
votes
1answer
40 views
findViewById returns null for existing included layout
in my main layout (set in on create) i have some included layout which have a imageview in them. Some where in my code I need to set bitmap to these imageViews. My method is this:
(ImageView) ...
0
votes
2answers
48 views
Android ListView selected item highlight
I have horizontal listView with TextView items, my item layout:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/LinearLayHorizontal"
...
0
votes
3answers
25 views
How can I customize my layout.xml from code before calling setContentView(View) function?
I would like to customize my layout definition (declared in my_layout.xml file) from code.
Unfortunately I can use findViewById() function to find the specific views (defined in my_layout.xml file) ...
0
votes
0answers
23 views
How to work with several view sections in a single layout (Ember)?
I'm trying to create an application which has a content view and a sidebar to the left. I'm having trouble understanding how I should implement the Menu which resides in the sidebar. Naturally I would ...
0
votes
1answer
112 views
ExpandableListView doesn't expand at all
I have ListView with 10 elements, and the last element is ExpandableListView, but when I click on the last element to expand, it doesn't expand at all, i can see only one child item where as there ...
0
votes
2answers
41 views
Adding a View inside a ScrollView programmatically
This is the xml code:
<LinearLayout
android:id="@+id/mainLayout"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
...
0
votes
1answer
34 views
Image from layout not showing in some views
I have a problem with my layout or the views, I have a logo in the header of my layout, but everytime I go to certain view the logo does not show, it looks like a broken image.
I have no idea why is ...
0
votes
0answers
52 views
findViewById in custom view instantiated from XML - when does the layout become available
some_layout.xml with a custom viewgroup and a child
<com.github.espiandev.showcaseview.ShowcaseView
xmlns:android="http://schemas.android.com/apk/res/android"
...
0
votes
1answer
28 views
pass in a layout resource using custom attributes for a custom view
I would like to specify a child layout for a custom view in XML, analogously to the layout attribute of the include element:
<include layout="@layout/all_apps_cling"
...
0
votes
1answer
108 views
Android listview with expandable list view item
I want to have a listview menu with few clickable elements and the last element must be an expandable list view item. I mean when i click the last element, an additional positions should be expanded.
...
0
votes
1answer
79 views
Android LinearLayout margin - unable to adjust
I have a LinearLayout that is occupying the entire lower bottom of the screen, just like Mac OSX dock or Windows' taskbar. I'm creating it programmatically without xml as the content will be dynamic. ...
0
votes
1answer
34 views
Disabling onItemClickListener in listView
I have listView with 4 elements ( 2x TextView and 2x button ),
What I want to do is disable default onItemClickListener, and set clicklisteners for 2 items in my ListView.
Any idea ?
Thanks in ...