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...
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...
imagebutton.setOnClickListener(new View.OnClickListener()
{
@Override
public void onClick(View v)
{
if(thide)
{
from.setVisibility(EditText.GONE);
subject.setVisibility(EditText.GONE);
body.setVisibilit...
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"...
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;...
Is it possible to set android:gradientRadius of a drawable via Java or is it only possible to set this attribute via Xml?
...
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...
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...
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?
...
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...