[android-developers] "Button" in Android and also Apple ..that no one uses... as it should be. maybe the most important one...

2016-09-01 Thread michael Hoehne
Does anybody knew that there is 1 button which seems nearly dead exists in Android software also in apple ... but it is nearly unused .t should have more potencial than google has.. sounds ... no i am really not shizophrenic etc ..no. I do know what i am talking about . I would like to

Re: [android-developers] button onClick handler retrieve custom attribute value declared in activity_main.xml

2016-08-08 Thread Steve Gabrilowitz
You might also want to create your buttons with a loop in your code instead of in the layout file On Aug 8, 2016 5:41 AM, "Thomas Fazekas" wrote: > My bad... thanks for setting me straight. > > On Sunday, August 7, 2016 at 5:18:52 PM UTC+2, Steve Gabrilowitz wrote: >> >> toString() returns a str

Re: [android-developers] button onClick handler retrieve custom attribute value declared in activity_main.xml

2016-08-08 Thread Thomas Fazekas
My bad... thanks for setting me straight. On Sunday, August 7, 2016 at 5:18:52 PM UTC+2, Steve Gabrilowitz wrote: > > toString() returns a string representation of an object which is not > necessarily the value of the object. your view.getTag() returns an object > which is already a String so a

Re: [android-developers] button onClick handler retrieve custom attribute value declared in activity_main.xml

2016-08-07 Thread Steve Gabrilowitz
toString() returns a string representation of an object which is not necessarily the value of the object. your view.getTag() returns an object which is already a String so all you have to do is cast it to string rather than using toString() on it String buttStr = (String) view.getTag(); is what y

[android-developers] button onClick handler retrieve custom attribute value declared in activity_main.xml

2016-08-07 Thread Thomas Fazekas
Dear all, here is what I want to do : declare a whole bunch of buttons in the activity_main.xml each of them having one custom tag (in this case it's called "tag"). All the buttons would share the same onClick handler, where I would use this custom property value to construct some strings (a UR

[android-developers] button onClick handler retrieve custom attribute value declared in activity_main.xml

2016-08-07 Thread Thomas Fazekas
Dear all, here is what I want to do : declare a whole bunch of buttons in the activity_main.xml each of them having one custom tag (in this case it's called "tag"). All the buttons would share the same onClick handler, where I would use this custom property value to construct some strings (a UR

[android-developers] Button

2013-02-26 Thread Arun Kumar K
Hi guys, I want to add a button in App Uninstall page..how can i add the button can any one help me.. -- *Thanks & Regards* *K.Arun Kumar* -- -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to

Re: [android-developers] Button#onClickListener thread unsafe?

2012-10-14 Thread Lew
svins wrote: > The input events are queued. So your case is valid. When you disable a > button there can be already multiple events in the event queue. Sad > but true :( > > Greenhand wrote: > > In my project, I has a layout as follows: > > http://schemas.android.com/apk/res/ > > android" >

Re: [android-developers] Button#onClickListener thread unsafe?

2012-10-14 Thread Gergely Juhász
The input events are queued. So your case is valid. When you disable a button there can be already multiple events in the event queue. Sad but true :( On 14 October 2012 10:09, Greenhand wrote: > In my project, I has a layout as follows: > http://schemas.android.com/apk/res/ > android" > andr

[android-developers] Button#onClickListener thread unsafe?

2012-10-14 Thread Greenhand
In my project, I has a layout as follows: http://schemas.android.com/apk/res/ android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical"> It is quite simple. There are two buttons. One is start and the other is stop. And a

Re: [android-developers] button does not appear for new Android application in eclipse IDE

2012-10-12 Thread Justin Anderson
1. Go to "File --> New --> Project" 2. In the dialog that opens, Android is one of the options in the list P.S. It is generally a good idea to post your questions in English... Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware 2012/10/9 Alex Jiménez

[android-developers] button does not appear for new Android application in eclipse IDE

2012-10-12 Thread Alex Jiménez
Soy nuevo en esto, quiero empezar a desarrollar aplicaciones para Android e instalar el SDK de Android y el Eclipse Java EE Java 7u7 IDE para desarrolladores web, además de la instalación de plug-in android en eclipse, pero en la barra de tareas en el botón otra vez yo no te para hacer una nuev

Re: [android-developers] Button (onClick)

2012-10-01 Thread TreKing
On Sun, Sep 30, 2012 at 8:21 AM, Алексей Фенев wrote: > What do you think, how fix it? Try debugging your app. Look at Logcat, for starters. - TreKing

[android-developers] Button (onClick)

2012-09-30 Thread Алексей Фенев
Hello! When I add an event handler of button "onClick", for example: android:onClick="click", I get a fail: instead of my widget in emulator I have a message "Problem loading widget". What do you

Re: [android-developers] button change onClick

2012-08-31 Thread oriol mesia
thank you all for your answers, this idea works perfectly 2012/8/31 Xiao.Yang > use selector is the right way... > > 在 2012年8月31日星期五UTC+8上午1时55分33秒,MagouyaWare写道: >> >> Use a statelist drawable, also known as a selector: >> http://developer.android.com/**guide/topics/resources/** >> drawable-res

Re: [android-developers] button change onClick

2012-08-31 Thread Xiao.Yang
use selector is the right way... 在 2012年8月31日星期五UTC+8上午1时55分33秒,MagouyaWare写道: > > Use a statelist drawable, also known as a selector: > > http://developer.android.com/guide/topics/resources/drawable-resource.html#StateList > > Thanks, > Justin Anderson > MagouyaWare Developer > http://sites.googl

Re: [android-developers] button change onClick

2012-08-30 Thread Liem.T Vo
Please refer at url http://developer.android.com/guide/topics/ui/controls/button.html: I copied from that location for you: Custom background If you want to truly redefine the appearance of your button, you can specify a custom background. Instead of supplying a simple bitmap or color, howev

Re: [android-developers] button change onClick

2012-08-30 Thread Justin Anderson
Use a statelist drawable, also known as a selector: http://developer.android.com/guide/topics/resources/drawable-resource.html#StateList Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Thu, Aug 30, 2012 at 11:47 AM, oriolmesia wrote: > Hi guys, I have

[android-developers] button change onClick

2012-08-30 Thread oriolmesia
Hi guys, I have an issue with the final tweak of my new app. Now that I'm nearly to finish I'm looking to improve my interface. What I want it's just to see how my buttons change when someone pressed on them, only for the amount of time that the button remain pressed. The buttons on my app are

Re: [android-developers] Button that goes to website

2012-08-06 Thread Justin Anderson
> > Did you try Google? > I've heard some rumors about Google becoming the next big search company... :-) Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Mon, Aug 6, 2012 at 4:13 PM, TreKing wrote: > On Sun, Aug 5, 2012 at 6:38 PM, techno <1.jonathan.

Re: [android-developers] Button that goes to website

2012-08-06 Thread TreKing
On Sun, Aug 5, 2012 at 6:38 PM, techno <1.jonathan.pi...@gmail.com> wrote: > I've been searching for hours to find this, and couldn't > Seriously? You couldn't find anything anywhere about creating *a button*? Or anything about *opening a webpage*? Did you try Google? > I want to create a butto

[android-developers] Button that goes to website

2012-08-06 Thread techno
I've been searching for hours to find this, and couldn't so I decided to create a thread here. I want to create a button that will open a webpage. Can someone tell me how? If possible I would like to have info on each part so that I will learn it... Thanks guys! -- You received this message be

Re: [android-developers] button

2012-06-21 Thread jagruti sangani
Hello, if you want to just differenciate the button images then use the one xml and define the two image one for default and one for press and set that xml as background of button.It will solve your problem ok. On Wed, Jun 20, 2012 at 9:02 PM, bob wrote: > I'm trying to make a button that uses t

Re: [android-developers] button

2012-06-21 Thread sajjan androiddeveloper
Use selector that will be easy for you On Thu, Jun 21, 2012 at 3:22 PM, bob wrote: > Are you talking about using this? > > void setOnTouchListener(View.OnTouchListener l) > > > On Wednesday, June 20, 2012 10:34:42 AM UTC-5, Kristopher Micinski wrote: >> >> Sure, in the onPressed event, change th

Re: [android-developers] button

2012-06-21 Thread bob
Are you talking about using this? void setOnTouchListener(View.OnTouchListener l) On Wednesday, June 20, 2012 10:34:42 AM UTC-5, Kristopher Micinski wrote: > > Sure, in the onPressed event, change the image, when it's not pressed, > change it back.? > > kris > > On Wed, Jun 20, 2012 at 11:32

Re: [android-developers] button

2012-06-20 Thread Justin Anderson
> > Sure, in the onPressed event, change the image, when it's not pressed, > change it back.? > Or you can do it with a selector If you save the following xml to a file called btnImage.xml: http://schemas.android.com/apk/res/android"; android:constantSize="true"> Then you w

Re: [android-developers] button

2012-06-20 Thread Mark Murphy
On Wed, Jun 20, 2012 at 11:45 AM, Kristopher Micinski wrote: > On Wed, Jun 20, 2012 at 11:38 AM, Mark Murphy wrote: >> Or take a peek at ToggleButton, or create your own CompoundButton. >> >> BTW, we are assuming that by "pressed" you mean a persistent status >> change (what Android refers to as

Re: [android-developers] button

2012-06-20 Thread Kristopher Micinski
On Wed, Jun 20, 2012 at 11:38 AM, Mark Murphy wrote: > Or take a peek at ToggleButton, or create your own CompoundButton. > > BTW, we are assuming that by "pressed" you mean a persistent status > change (what Android refers to as "checked"), as in a CheckBox or > RadioButton.. > Ah, I actually as

Re: [android-developers] button

2012-06-20 Thread Mark Murphy
Or take a peek at ToggleButton, or create your own CompoundButton. BTW, we are assuming that by "pressed" you mean a persistent status change (what Android refers to as "checked"), as in a CheckBox or RadioButton.. On Wed, Jun 20, 2012 at 11:34 AM, Kristopher Micinski wrote: > Sure, in the onPre

Re: [android-developers] button

2012-06-20 Thread Kristopher Micinski
Sure, in the onPressed event, change the image, when it's not pressed, change it back.? kris On Wed, Jun 20, 2012 at 11:32 AM, bob wrote: > I'm trying to make a button that uses two different images - one for when it > is pressed, and one for when it's not. > > > Anyone know an easy way to do th

[android-developers] button

2012-06-20 Thread bob
I'm trying to make a button that uses two different images - one for when it is pressed, and one for when it's not. Anyone know an easy way to do this? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email

[android-developers] Button in listitem in listview unclickable

2012-05-31 Thread mizyeh
Hi all, I found a weird scenario which is button in listitem in listview are unclickable unless scroll listview to the last listitem, after some research seems the problem is occurred by the layout Relativelayout1->Relativelayout2->Listview , If you move Listview into the Relativelayout1 it will

Re: [android-developers] Button is not actionable when i set to button background color

2012-05-21 Thread Jason Teagle
issue is in single alert box we display 16 buttons with different back ground colors and we handling the listener for getting the result which button is clicked(setonclick listener) but button is not actionable(requirement is Color selector box). It seems unlikely that just changing its colour

[android-developers] Button is not actionable when i set to button background color

2012-05-20 Thread srinivasa reddy avula
Hi friends, i am facing the one issue in android. issue is in single alert box we display 16 buttons with different back ground colors and we handling the listener for getting the result which button is clicked(setonclick listener) but button is not actionable(requirement is Color selector box)

[android-developers] Button Style programmaticaly

2012-04-26 Thread Joel
Hi, I am a new Android developer and i have a problem with buttons and styles. I have to create buttons with java code and I want set a specific style. My code: in values directory --> styles.xml fill_parent Re: [android-developers] button click event listener
> > oncreate() > { > function1( ); > //wait for onclick event > function2( ); //After some calculation, calls function1( ) > } > That won't work... The UI will not show up until after onCreate() and onResume() are called. Why are you explicitly waiting for a click event? What are you doing to do

[android-developers] button click event listener

I am having problem with onclick event listener.I am building a card game for which i have to wait for button click by the user, after each round. So I've used a recursive function. My code looks like oncreate() { function1( ); //wait for onclick event function2( ); //After some calculation, call

[android-developers] Button cannot be clicked when used with an IME

Hello everyone, My custom IME is slowly coming to life! Thanks to all the people who have replied to my posts regarding my IME. I hope I can get the same support for this question too. So here it is. Up until now, I have been using KeyboardView as the root tag in the layout xml for my InputView

[android-developers] Button cannot be clicked when used with an IME

Hello everyone, My custom IME is slowly coming to life! Thanks to all the people who have replied to my posts regarding my IME. I hope I can get the same support for this question too. So here it is. Up until now, I have been using KeyboardView as the root tag in the layout xml for my InputView

Re: [android-developers] Button animation

On 12 March 2012 16:47, Tytanit wrote: > I need help - i am new to android, and i couldn't solve my problem at > my own, so i'm posting here - > I've got an image animation, a few buttons, and an animation files > ( xml) written. What i want to do, is to make a button animation ( i > don't know

[android-developers] Button animation

I need help - i am new to android, and i couldn't solve my problem at my own, so i'm posting here - I've got an image animation, a few buttons, and an animation files ( xml) written. What i want to do, is to make a button animation ( i don't know to bound a button with an animation) , following im

Re: [android-developers] Button for dynamic text

On Wed, Feb 22, 2012 at 1:45 PM, Pram wrote: > My problem is that the button line has public void ... after this I am > trying to use if statements and return methods, but because of the public > void, the return method can not return anything. I tried to close the > public void, but I am getting

[android-developers] Button for dynamic text

I am writing a program that when the user enter a number text appears according to that number. My problem is that the button line has public void ... after this I am trying to use if statements and return methods, but because of the public void, the return method can not return anything. I tried t

[android-developers] Button textAppearance Problem.Someone Help me!!

Dear All: Im a chinese,my english is not very good,but a problem troubled me for few days.Im a beginer. Someone had the same problem on inernet, but the anwsers did not help me. I coped the code from someone on inernet. -- and

Re: [android-developers] Button enabled issue

button.setVisibility(View.VISIBLE); try this one it will help you On Sat, Feb 11, 2012 at 4:12 PM, Raju Gaddam wrote: > Hi iam disable button in xml .how to enable button from my activity class > > > in XMl i write like this android:visibility="invisible" > in my activity button.setEnable

[android-developers] Button enabled issue

Hi iam disable button in xml .how to enable button from my activity class in XMl i write like this android:visibility="invisible" in my activity button.setEnabled(true); But button is not visible please any one help me -- You received this message because you are subscribed to the Google Gro

Re: [android-developers] Button clicking colour change problem

On Fri, Jan 13, 2012 at 1:41 AM, B.Arunkumar wrote: > The colouring of the 2 buttons should appear sequentially because button > clicking happens on the main thread, is it not? > A) There is nothing related to color in the code you posted. B) If you have a Thread.Sleep() in a function that is exe

[android-developers] Button clicking colour change problem

Hi, I am having problem with colour change of 2 buttons: This is a simple code that I tested out on a device: button1.setOnClickListener(new OnClickListener(){ @Override public void onClick(View v) { // TODO Au

Re: [android-developers] Button on emulator looked "joined" with no padding

Hi Check this code Image link : http://www.freeimagehosting.net/d3xav xml code: http://schemas.android.com/apk/res/android"; android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" >

[android-developers] Button on emulator looked "joined" with no padding

Hi I was trying to arrange 9 Buttons in TableLayout.(main.xml below) On the eclipse "Graphical Layout", it looked ok, Buttons spaced out nicely. Somehow on the emulator, all the 9 Buttons looked "joined" Here's the screenshot: http://www.freeimagehosting.net/sagst Yet to try on actual device but

[android-developers] Button not excepting typeface

Hi all, I was updating the ui to one of my apps, and encountered a problem setting the typeface of the button. According to the online docs, calling setTypeface() on a button should work. However, I get the following error: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.r

Re: [android-developers] Button lick problem

Arun, I am not sure what is the purpose of going to sleep mode, and secondly you put a logs on the other abstract methods of your activity class. I would suggest read the Android life cycle as well. Warm Regards, *Mukesh Kumar*, Android Consultant/Freelancer, India,Hyderabad. On Mon, Dec 26, 201

[android-developers] Button lick problem

Hi, I have a problem with button click. This is what I have written in a sample Activity: button1 = (Button) findViewById (R.id.button1); button2 = (Button) findViewById (R.id.button2); button1.setOnClickListener(new OnClickListener(){ @Override

Re: [android-developers] Button creation

On Thu, Nov 24, 2011 at 8:00 AM, RameshKumar Mani wrote: > How can i create multiple buttons using for loop in thread Read the documentation and learn to program. - TreKing

[android-developers] Button creation

How can i create multiple buttons using for loop in thread -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-develo

[android-developers] button

I have a button with some white text. When pressed, the text needs to change to dark gray. Anyone know the best way to do this? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@google

Re: [android-developers] Button not clickable while playing animation

Gee that's a really cool idea... thanks for telling us about it. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Fri, Oct 14, 2011 at 11:01 AM, buda gavril wrote: > I have a button which I need to be able to click on it white it is > playing an animatio

[android-developers] Button not clickable while playing animation

I have a button which I need to be able to click on it white it is playing an animation. here is the full source code: http://pastie.org/2695839 Thanks -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to and

Re: [android-developers] Button Animation

On Fri, Oct 14, 2011 at 2:49 AM, F4L|{0 wrote: > somebody can help me on how to correctly position the hit area of > the button? > AFAIK, animations only make it look like an object is moving / scaling / whatever. The actual position / size / whatever of the View in unchanged. If you want the po

[android-developers] Button Animation

hi I have a problem with an animation of a button. I would move and fade a button from a origin position to another position. well i created a translate animation and fade animation, i start the animation with the follow code: AnimationSet exchangeAnimation = new AnimationSet(true);

[android-developers] Button/ImageButton Rotation Not working

Hi I am trying to create a Button/ImageButton and rotating to required degrees. I can able to rotate ImageView but same not working for Button/ImageButton ImageButton homeButton = new ImageButton (context); homeButton.setOnClickListener(homeButtonListener); homeButton.setScaleT

[android-developers] Button Issue

There is some space at bottom of the bottom. Its not centered vertically properly even after using android:layout_centerVertical="true". If u look very closely the button is occupying all space vertically (lite shade of green around button after selection) but the actual button image is slightly up

[android-developers] Button click listview has to visible

Hi i defined a button at the bottom in the xml fileand i made (listview) invisible in the xml filein java code i give list view implementationhere when i click on the button that list view has to appear .. Thaks in advance Public class ListView extends Activity{ p

[android-developers] Button in Custom Preference gets enabled automatically

I have a custom preference in my application which consists of a textview and a button and it is put in a preference screen. I load the layout in the onCreateView of the preference LayoutInflater inflater = (LayoutInflater)getContext(). getSystemService(Context.LAYOUT_INFLATER_SERVICE); Vie

Re: [android-developers] button id causes app to crash

On Fri, Jul 22, 2011 at 10:41 AM, DB12 wrote: > and this one gives me a force close runtime exception when my app starts > And the exception would be ... ? - TreKing

Re: [android-developers] Button add programmatically not clickable

On Fri, Jul 22, 2011 at 10:09 AM, deveLoper wrote: > any suggestions? Break at the point you set the onclicklistener on each button. What is the value of "listener" ? - TreKing

[android-developers] Button add programmatically not clickable

Hi, I need to add some of my buttons programmatically since the titles are coming from a database that may change. The buttons are being add fine, but are not clickable. I am using a custom background for the buttons, but I am using the same background for some button I am using from xml and they w

[android-developers] button id causes app to crash

Howdy, I searched for about 30 minutes to see if anyone had the same issue but couldn't find anything. I have a custom dialog I created with a relative layout, when the user clicks on a button it brings up the dialog just fine normally. I added a few buttons to the dialog layout and this is where

Re: [android-developers] button "back home" with AppInventor

On Sat, Jun 4, 2011 at 11:38 AM, Kuka wrote: > I would ask you a question: how i can insert the botton "back home" in my > app?? > I would ask you a question: why insert the "botton" "back home" in your app when devices have a dedicated Home button??

[android-developers] button "back home" with AppInventor

Hi Developers! I'm a new android developer. I'm trying to make an app with AppInventor. I would ask you a question: how i can insert the botton "back home" in my app?? Thanks! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this

[android-developers] Button Backgroundsetting error

do{ koltuk1.setBackgroundColor(getResources().getColor(R.color.esatin)); koltuk1.setId(1); }while(koltuk_durum[z]=="dolu" && koltuk_cinsiyet[z]=="erkek"); color doesnt changing in

Re: [android-developers] Button in a ListView cell

So you were able to get everything to work without the trackball case? On Thu, May 5, 2011 at 6:37 PM, Eric wrote: > I have seen dozens of posts about people trying to put a clickable > Button in a ListView cell, along with other text, and apparently > nobody has been able to get it to work. > >

[android-developers] Button in a ListView cell

I have seen dozens of posts about people trying to put a clickable Button in a ListView cell, along with other text, and apparently nobody has been able to get it to work. Here is what I need to do: 1. Have a couple of TextViews in a ListView cell, with a clickable Button on the right-side of the

Re: [android-developers] Button code

Create object of Button class and add it to your layout. All is in documentation. All you need it is to read it. Regards, Marcin Orlowski *Tray Agenda * - keep you daily schedule handy... *Date In Tray* - current date at glance... WebnetMobi

[android-developers] Button code

How to crate button & also called without using xml. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+u

Re: [android-developers] Button and onClickListner help needed

Have you verified you are not getting in the onClick method? Try putting a Toast inside your onClick method and see whether or not you are getting in there... I don't see anything wrong offhand with your onClickListener... Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/si

[android-developers] Button and onClickListner help needed

This is probably a really n00b question but none the less. I cant get a button to change view (or activity) this is my code for the button: [code] package com.markel.NSF; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; import andro

[android-developers] Button text padding changes when text changes

Hi guys, I have encountered a weird occurrence with Buttons and I hope someone can explain to me why it is happening. On load of my activity, my Button has default texts set in it. When the user clicks on one of them, the Button's text changes. When I test my app on small screen devices, the bott

Re: [android-developers] Button click Navigation not working ( application gets crashes)

10.02.2011 11:05, Ramesh M пишет: 02-10 13:33:53.962: ERROR/AndroidRuntime(1756): Caused by: java.lang.NullPointerException 02-10 13:33:53.962: ERROR/AndroidRuntime(1756): at button.pack.Activity1.onCreate(Activity1.java:18) The above says there is a null pointer in your code, in Activity1.

[android-developers] Button click Navigation not working ( application gets crashes)

This is manifest.xml file: http://schemas.android.com/apk/res/android"; package="button.pack" android:versionCode="1" android:versionName="1.0"> . Java file: A

Re: [android-developers] Button Onclick Events-Page Navigation

On Thu, Dec 23, 2010 at 9:15 PM, Ramesh M wrote: > Can any one give me the sample code for above scenario The likelihood of anyone here not only having the code to solve your exact scenario (which you did not clearly explain) but also being willing to just give you said code is very near zero.

[android-developers] Button Onclick Events-Page Navigation

Hi, Everyone, I have designed 3pages using 3xml files in layouts folder android,each having 2 buttons previous page and next page..i was loaded first page using set content view , From here, through Button onclick i have moved to second page.. till that every thing was fine, if try to g

Re: [android-developers] Button color - StateListDrawable question

The StateListDrawable and nine-patch PNG resources used by a Button are in your SDK. Copy them into your project and modify to suit. On Thu, Dec 9, 2010 at 10:24 AM, AUandroid wrote: > I am allowing the user to change the color of the buttons. I want to > maintain the default drawables used for f

[android-developers] Button color - StateListDrawable question

I am allowing the user to change the color of the buttons. I want to maintain the default drawables used for focused and onPressed state and apply the color only when the button is neither pressed nor focused. I am currently achieving this by checking the state of the view in onDraw() on the butt

Re: [android-developers] Button placement problems

Serdel, Please note that you set B1 to be centered_vertical and have top_margin of 291dp. Which Acer phone you tested this on and the result was not the same? Do you need the space between B1 and B2, B3? Daniel On Tue, Nov 30, 2010 at 1:53 PM, Serdel wrote: > Hello, > > I could find anyth

[android-developers] Button placement problems

Hello, I could find anything similar so I decided to open a new thread. However if there already is a similar answer please post the link. I need to place my buttons in a little unconventional way shown here (dkw I could post the message with an imageshack link so an ASCI 'picture'): ___

Re: [android-developers] button on screen that controls page sliding

On Sat, Nov 20, 2010 at 4:51 PM, timecatcher3 wrote: > I wanted to make a button on one of > my activities that I can drag to slide my current activity page to the > next activity page. The button will be in the center of the screen and > I want to be able to press and drag it horizontally to one

[android-developers] button on screen that controls page sliding

Hi, I am new to android development. I wanted to make a button on one of my activities that I can drag to slide my current activity page to the next activity page. The button will be in the center of the screen and I want to be able to press and drag it horizontally to one end of the screen while

Re: [android-developers] button click

Hi joy , what you can do is get all the text views in your activity by using the Findviewbyid. when clicked the button you can do get text from the First textView and Second textview and keep Toggling it :) hope it was informative. Jayu. On Fri, Oct 29, 2010 at 3:56 PM, nena joy wrote: >

Re: [android-developers] button click

I'm going the crystal ball way here. You need to take the current content of text view (or save it somewhere) and when you press the button next time, take that content (or it's id or something like that, really depends on what you are trying to do and how) and then select next content based on cu

Re: [android-developers] button click

Your question is difficult to understand. You should try to clarify and rephrase so we can better understand the problem you're having. - TreKing - C

[android-developers] button click

Hello, I have an activity.Have an image view, 3 text views and a button. 2 text views are hard coded. When click the button the other shows first value taken from an xml file (xml tag value). When click this again value of text view want to change.The value should be the second value from the x

Re: [android-developers] Button organisation

On Tue, Oct 19, 2010 at 7:11 AM, Laurent Lugon Moulin < laurent.lu...@gmail.com> wrote: > Anyone can help me ? Also look at the "weight" or "layout_weight" attribute, learn it, and love it. - TreKing

Re: [android-developers] Button organisation

Step #1: Get rid of the LinearLayout, since you do not appear to need it Step #2: Get rid of the android:orientation="horizontal" from the RelativeLayout, since orientation is not a valid attribute for RelativeLayout Step #3: Give your first Button an android:id value, so we can refer to it from

[android-developers] Button organisation

Hi all, I want to put three buttons in one single line with the left and the right button at a fixed size, and the middle button wich take the distance between the two buttons. My application will work in different device, so I can't fix the size, it has to be adaptative... Here is my current cod

Re: [android-developers] button placement problem

On Thu, Oct 7, 2010 at 6:13 PM, Varun Khanduja wrote: > I am trying to get a button at bottom of a screen having a list view. Could you add more detail to the problem you're having and the outcome you're trying to achieve? A picture of each case would help as well if you have it. --

[android-developers] button placement problem

Hey guys, I am trying to get a button at bottom of a screen having a list view. This button is non-scrollable and the list view slips below the button if it is larger than the size of the button. Could someone please help me get the right xml properties. Tried layout_gravity and other things but i

Re: [android-developers] button focus

thanks it is very helpful On Wed, Oct 6, 2010 at 4:44 PM, Kumar Bibek wrote: > Look at the state list drawables. Buttons and other widgets have a default > statelist drawable. If you are using your own drawable, (just a image), the > button doesn't know what to show when in different states.

Re: [android-developers] button focus

Look at the state list drawables. Buttons and other widgets have a default statelist drawable. If you are using your own drawable, (just a image), the button doesn't know what to show when in different states. Rather than setting a drawable(picture) as a background, you should be using a state list

[android-developers] button focus

i have set background as transparent for the button .. (button.setbacgroundcolor(Color.transparent) )... now it is not showing focus on the same button..what to do.. -- A N K ! T.. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. T

  1   2   >