android-ui

Equivelant of button:active on a child linear layout

I have a scroll view that contains a linear layout. In the linear layout are the child linear layouts. I would like to give the user some peace of mind that he is touching the right child. I can put in an on click that highlights it to tell what he just clicked, I can put an ontouch to highlight what he is about to click,, But how do...

Dynamically expanding widgets on Android UI

Hi, I'm trying to create a simple Android UI that consists of a EditText and Button widget. However I'm having some problems with setting the layout properties. The UI is supposed to look like this: ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ ▒▒ Left is the EditText and right is the Button. The Button (ImageButton) has a widths of approximately 50x50 whi...

How to fields visible and invisible on click of button

imagebutton.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { if(thide) { from.setVisibility(EditText.GONE); subject.setVisibility(EditText.GONE); body.setVisibilit...

Android view doesn't accept clicks

I add a listview via Java into @+id/View01. For some reason the items in the listview don't accept clicks. Does anybody have ideas about possible causes? <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:orientation="vertical" android:layout_height="fill_parent"...

Which version of photoshop for android

Hi, I am looking at buying photoshop to be able to use some of the .psd files on the develop.android.com site (eg. http://developer.android.com/intl/zh-TW/guide/practices/ui_guidelines/widget_design.html). In addition, ideally, there would be many tutorials for that version, so I can learn quickly. I see multiple versions of photoshop;...

Setting android:gradientRadius via Java

Is it possible to set android:gradientRadius of a drawable via Java or is it only possible to set this attribute via Xml? ...

Sizing an Android multi-line TextView

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...

Creating an image and rending into a ImageButton in android

I use the following code with the intention to create an image that's half white and half black and put it on a button. What's wrong with my code? (latter we want to use a more complicated logic about what pixels are white and what are black but it should still be black and white) int height = 100; int width = 100; quadratImage = Bitma...

Calling setContentView() multiple times

Is there a way to call setContentView(id) multiple times with different id during one Activity to render different views or do I absolutely have to start a new Activity? ...

How can I get the default selector behavior on a GridView of LinearLayouts?

My problem is that I do not get the default/selected/pressed glowing background, so my gridview looks like images and text that give no indication that they can be pressed or interacted with. I have looked at the various API samples, and can see nothing different from the code they use and mine other than I host a LinearLayout instead of...