Android : Need Buttons That Can Change Size Dynamically
Jun 25, 2010
I have created a custom Button class and I want to be able to change its width/height depending on some factors in addition to the content width/height. How can I do this?
View 1 Replies
Sep 22, 2010
Is there a way to dynamically change the size of a widget? Can an app have multiple widgets?
View 3 Replies
View Related
Sep 4, 2009
I would like to know the way to make a user interface for Android for people that have low vision. The idea is to make a UI with the following features: 1- Uses very very big buttons. 2 -Uses very big font size. 3- Te colors to use are basically black and white (for more contrast). 4- The icons in this UI are not relevant. 5- We must sacrifice the number of chars that we can show in the screen to get bigger labels and buttons. 6- A simple zoom system for the images should be a great idea. 7- We can use the camera of the phone to get a magnifying glass. I'm member of a blind people association in Spain and we think that this should be a great idea for begining a new low-vision-user- interface that is not aviable in the market for the new mobile phones. This will help many people that uses movile phones but have many difficulties to work with them.
View 2 Replies
View Related
Nov 24, 2010
I have a options-menu (when u press menu key of the phone), with 5 buttons, all of them with one 48x48 image and text. now the buttons need's two columns to be displayed, but i want to reduce the size of them to fit one column with all of the buttons how i can achieve this? i can do it with parameters on layout xml menu file?
View 2 Replies
View Related
Nov 24, 2010
I have these radio buttons and they need android:width="X" and android:height"X" however, I do not know how to set these properties so that they adapt to a different screen size.
View 2 Replies
View Related
Jan 20, 2010
I want to put description and buttons dynamically can any one guide how can i do that? i have data in the form of object list/array i.e ID,Title and want to display in list activity like..
TITLE [Details Button] [Edit Button] (repeating in list activity)
View 1 Replies
View Related
Jan 13, 2010
I'm creating buttons dynamically.
for(int i=0; i<colSize;i++){
final Button btn = new Button(this);
btn.setText(SectionName[i]);
btn.setTextSize(10);
btn.setPadding(8, 3,8, 3);
btn.setTextColor(Color.WHITE);
btn.setTypeface(Typeface.SERIF, Typeface.BOLD);
btn.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
//***Every time that I click my button is selected !:)
btn.setSelected(true);
} } );
}
But how could I deselect the other buttons that were selected, I just want one Button selected!
View 2 Replies
View Related
Feb 19, 2010
I have a full screen dialog that has a relative layout that contains a TableLayout. Whenever the soft keyboard is displayed on the screen, it shrinks these buttons. Instead of filling the bottom of the screen, they only fill a third of it. How can I keep the size of the buttons the same similar to the Contact app?
View 4 Replies
View Related
May 3, 2010
I am using three buttons along with the list view.These three buttons are added to the layout using the TableLayout and TableRow.The first button takes more space on content, so the other two becomes smaller in size than first one. When the application runs, it doesn't even show the two other buttons.How can I make the size of three buttons equal and display all of them when application runs?Give me some example please.
View 1 Replies
View Related
Mar 2, 2010
I designed the user interface of my app on the emulator and then I installed it on the Nexus one. For some reason the text boxes, labels buttons etc. have shrink in size. It looks as if the view has been zoomed out on the phone. If I arrange it correctly on the phone the objects don't fit on the emulator. Has anyone faced this? Is there some setting to have consistency between the look of the emulator and Nexus One.
View 7 Replies
View Related
Mar 27, 2010
IŽm working on the UI of my first app and IŽd like it to work on as many different devices as possible. IŽve read on the net about AndroidŽs rule not to resize bitmaps on views (background, buttons, etc), is it true? Does android rescale skinned views sizes the same way it resizes the default ones? Also, if not, how can I handle the more than 5 display sizes using a background image and skinned buttons and scrollers (horizontal bar)?
View 2 Replies
View Related
Feb 18, 2010
I have three tabs in my Application. On an event under one Tab, i want to change the title of an another existing Tab. This is the title that we provide while adding the tabs to the TabHost.
Eg: TabHost.addTab(tabHost.newTabSpec("Tab2")).setIndicator("I need to be Changed dynamically").setContent....
In the above example, the title of the tab2 that i provided under setIndicator(), should be changed dynamically.
Is there any way to accomplish this.
View 3 Replies
View Related
Oct 15, 2010
I have an Android application which has four tabs (I use a main TabActivity with TabHost and TabSpecs).
In one of my sub activity (activity opened in a tab), i need to open a tab not by clicking on the tab title and i don't know how to do this.
For example, i have a button in my activity and when i click on it, it opens a different tab.
For the moment, it is what i do:
Intent intent = new Intent(myActivity.this, myTabActivity.class);
intent.putExtra("ComeFrom", true);
intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
startActivity(intent);
Then in the TabActivity, if i get true reading the "ComeFrom" extra i open the wished tab but the problem is that it kills all the other activity. So, if someone knows a better (cleaner) way to do that trick.
View 3 Replies
View Related
Mar 24, 2009
I have a tab activity with 3 tabs. Each tab has a default icon.
I want these icons have to be changed dynamically on each tab selected.
I mean, each tab has two icons, one for on tab select, another for on tab deselect.
Can any one please suggest me how to do it?
Here is my sample code...
View 3 Replies
View Related
May 26, 2010
Is it possible to change the name of the application name dynamically? I want to keep a certain name like XYZ free when my application is free and XYZ Pro when the user has paid. So is it possible to change the name of the application dynamically?
View 3 Replies
View Related
Aug 9, 2010
I'm trying to develop a very specific app for my Dell Streak. I want the entire app to run landscape. The Streak has a tilt function that switches the whole OS to a landscape 800x480.
So I want to make an ADT to test in that uses an 800x480 display, but whenever I set the size I get no buttons. The Streak has a Home, Menu and Back button aswell as volume/mute and power, and I need to use some of them for my application.
I'm not worried about the tilting messing up my application. Not yet, anyway. Just need the test environment the right size and with buttons.
View 1 Replies
View Related
Sep 23, 2010
Im using a custom listView with a Title and a Subtitle where you can read a brief explanation of the item.
For each item on the list, im displaying an alertDialog to select an option (different for each case). When the option is selected, i want to change the Subtitle for the option selected by the user.
This is what i tried:
CODE:.....................
For the first item on the list it works fine, when i select an option, the subtitle get replaced by that option, but when i make a selection in the alertDialogs of the other 2 items, the option selected replaces the subtitle of the first item!
View 1 Replies
View Related
Nov 18, 2009
we are designing the page and we need to change background image dynamically.Is there any way to load(or change) android application background image dynamically?help me from come out this problem?
View 1 Replies
View Related
Jul 4, 2009
I am working a widget... I'd like to change my widget background image dynamically, is it possible? I tried theme & style, it doesn't want to work. It doesn't show any background image (see code sample below). I tried RemoteViews.setImageViewResource on an ImageView filling the widget, but i doesn't strech my 9patch image correctly (and it doesn't seems to change background, it add another image). Is there a solution? Additionnal question : is it possible to use an external (sdcard) 9patch image as background? if yes: how?
View 2 Replies
View Related
Mar 16, 2010
I am trying to develop a simple application where users need to answer certain questions. I want that the textview should be changed dynamically in the same activity with sliding to left or right animation.
Can someone let me know how to do this?
View 5 Replies
View Related
Jul 1, 2010
Is it possible to change the style of the progress bar dynamically in the code?? For instance I do some work and progress is shown by the horizontal bar, and after the work is done I do some other work but want to present it by the Vertical bar. Can I change the style of a single bar in the code or do I need to put 2 of them and manipulate the visibility ?
View 9 Replies
View Related
Aug 2, 2010
I want my arrows to continuously move left and right with a delay of certain milliseconds dynamically. Any clue?
Here's my code...
View 1 Replies
View Related
Jul 14, 2010
When we create a new activity, in the Android.manifest file, we can set some text for the activity's label. It looks like:
<activity class="MyActivity" android:label="Some text here!">
Is there anyway to access that programatically and change it during runtime? Regards Dileep
View 2 Replies
View Related
Aug 18, 2010
How to dynamically change the background LinearLayout?
View 2 Replies
View Related
Nov 2, 2010
I'm looking for a way to dynamically change an elements properties.
For example I want the user of my app to be able to enter a value within my program that will change android:layout_marginTop="blabla" to whatever I want. It doesn't specifically have to be that property, I want to be able to change any property of any element. Is there a way to do this?
View 2 Replies
View Related
Mar 31, 2010
I want to know how to change dynamically a ListView's item layout. To be exact, i want to know the method that the ListView's bindView method is called at runtime. if the bindView method is artificially called by a other method. then i will change a ListView's item layout.
View 1 Replies
View Related
May 1, 2010
I have a listview in which there should be different divider height between different rows. So, how can we set the divider height dynamically?
Suppose, I have 10 rows and there should be a divider height of 5 between first 2 rows and then there should be a divider height of 1 between next 5 rows and so on.
View 1 Replies
View Related
Aug 9, 2009
I am trying to set the background dynamically as I play music. 1) I am able to set the background using the setBackground (Color.GREEN) method. 2) Then I play a MP3 file (audio) using the MediaPlayer. 3) when I call myPlayer().isPlaying(), I would like to keep changing the background color continuously till the music stops.
View 3 Replies
View Related
Jun 16, 2010
Apparently ProgressBar.setProgressDrawable has bug, if called to set new drawable, progress bar disappears completely. Is there any other way to change progress bar color dynamically at run time?
View 6 Replies
View Related
Feb 16, 2010
In my application i want to change button text for every 3 sec.
View 3 Replies
View Related