Android :: Create Smaller Tabs ?
Aug 21, 2010
I am trying to create smaller tabs in android -- but I can't seem to get it to work because all that happens when I create a smaller tab is that it shows the bigger tab -- but without a drawable.
This is my layout code for tabs now -- but the height isn't wrapping for some reason -- it just goes to Android's usual layout height.
CODE:.........................
It would be great if someone could help me create something like the Facebook application -- I think that looks really clean and I would love to implement something like it:
View 2 Replies
Jul 3, 2010
I want to create an application that uses small tabs, such as the one the Android's facebook official app uses. Does anyone know how these kind of tabs can be created? Do I need to extend the TabHost class in order to customize it, or is there a more general easier approach?
View 5 Replies
View Related
Feb 14, 2010
I want to create an application that uses small tabs, such as the one the Android's facebook official app uses. Does anyone know how these kind of tabs can be created? Do I need to extend the TabHost class in order to customize it, or is there a more general easier approach?
View 8 Replies
View Related
Oct 11, 2010
I create a TabHost1 with 3 tabs: tab1, tab2, tab3. When choose tab2, I want the TabHost2 change into another sub TabHost with 2 tabs: tab4, tab5.
CODE:.............
TabHost2.xml is the same TabHost1.xml
When I choose tab2 the result like TabHost2 cascaded TabHost1
Actually I want the TabHost2 overwrite (replace) TabHost1.How can we do it ?
View 1 Replies
View Related
May 6, 2009
In my application, i want to create multiple tabs. For example, i have a button on clicking which should create one more tab,(just like Mozilla browser). I searched on Internet as well as Android Documentation. but did not get any clue...
View 3 Replies
View Related
May 18, 2010
Is it necessary to use TabActivity for displaying Tabs. I want to display tabs from Activity.
View 7 Replies
View Related
Jun 19, 2010
I'm currently working on my first android application. I am using a tabbed layout for my application. I followed the tutorial for this on the dev guide and ran into a problem. The tutorial only used three tabs, but I have a need for more. As such, the tabs resize and bunch up. I was hoping someone could tell me how I can make them scroll, like in dolphin browser when using multiple tabs.
View 1 Replies
View Related
Feb 27, 2010
I simply use the tabwidget :
CODE:..........
Why are my tabs so uggly in 2.0 (no more rounded corners as in 1.5/1.6) ?
ugly tabs here
=>
This was better
What should I do now to show "rounded corners" TABS to Nexus One (for exemple) users ;-) ?
Is it because of the following manifest lines :
CODE:................
I have to keep android:anyDensity="true" otherwise I've got a problem with re-sizing of the menus described here
As a separate question, my users can change the Locale within my app itself, I then "redraw" the menus using onPrepareOptionsMenu (Menu menu) to refresh the strings within the menu with the new language choosen by the user. Is there an equivalent for TABS (I have local strings within the Title of the TABS) or do I have to delete all the tabs and re-create them from scratch ?
View 2 Replies
View Related
Oct 19, 2009
We're in the process of writing an app that has 4 tabs: Map, People, Places, Events. The People, Places, and Events in the App show up as Icons on the map. By default the People, Places, and Events tabs each show a listview, custom rendered, displaying all the People, Places, and Events respectively.
Now, right now each of the tabs has as its content an Intent set to launch the corresponding activity. For instance, there is a MapTabActivity that extends MapActivity, a ShowPeopleListActivity that shows the people, and so on and so forth.
I see a lot of StackOverflow questions/answers saying that due to various limitations in the way the TabHost is setup, it's best NOT to use activities as the content of tabs. For instance, it's impossible to launch a new activity and have it take the place of the existing activity within a tab, whereas it's possible to switch out a View with a different view.
Now, I'm at a crossroads. We've (for better or worse) devoted a fair amount of time trying to get this app to work the way it's currently structured, with the Activities as the content of the tabs. When an icon corresponding to a Person, Place, or Event is clicked, it fires off a VIEW Intent on a URI corresponding to that object; this is picked up by an Activity that then shows the object. The same mechanism is at work both in the Map and in the individual lists. We really like the loose coupling this provides us; we just give a VIEW command and the URI to the person/place/event and it automatically brings us to the right activity. Granted, the activity that's launched covers up the tab view rather than appearing inside of that, but we were willing to live with this.
Here's an issue though: from the Show activity, we want to be able to go back to the map, centered at that person, place, or event. We can launch a new activity to show the map again, but now we have the map activity as the content of the tab, plus the show activity, plus the new map activity in the activity stack; given how resource intensive the map activity is, I'm guessing this is not the ideal way to go.
I guess my question is, is there a GOOD tutorial somewhere showing exactly how to do complex tasks with a TabHost? I've seen HelloTabWidget; I'm looking for something much more sophisticated than this. I'm worried that if we switch to the View based way of doing things, we'll have to do a LOT of housekeeping to intercept all the back events, try to switch out the views, etc., etc., as well as strongly coupling our program in a way we don't want.
View 5 Replies
View Related
Nov 11, 2010
I have an Tab Activity with 4 tabs. Each of tab is showing me the list view. Suppose i m on 4th tab and dragged the list view to the last position and after that i click on 3rd tab and again when i go to 4th tab it is not refreshing and showing me the last visible screen. Actually i want to show the list view again from 1st element. is tabs refresh automatically or we need to do it programmatic?
View 1 Replies
View Related
Jan 10, 2014
i have a problem with this new kitkat os. Before kitkat i could change between tabs by swiping left to right ir right to left to change tabs.Now it doesn't change.
View 1 Replies
View Related
Jul 1, 2010
Is it possible to get a smaller CheckBox, like the one used in Settings application? I'd like to use it in my own custom Preference class, to mimic Android UI more closely..
View 1 Replies
View Related
May 20, 2010
I've added a RatingBar in a layout :
CODE:...........
But the default style for the rating bar is too large.
I've trie to change it by adding the android style : style="?android:attr/ratingBarStyleSmall"
But the result is too small and it's impossible to set a rate with this property.
View 1 Replies
View Related
Mar 1, 2010
I'm trying to copy a series of small bitmaps into a larger one, arranging them side by side without any gaps or overlap in their pixels. For example, if I have 3 square bitmaps, I'd like to copy them into one long and thin rectangle. I know how to do the opposite, namely creating a small bitmap out of a larger one, but not this way around. What's the right command? I want to do this to be able to reuse some code I wrote for handling animation with a single bitmap.)
View 1 Replies
View Related
Mar 30, 2010
I have an application built for 1.5 and I am adding higher resolution drawables to support hdpi devices in 1.6 and above.My original application icon is 48x48. I created a second launcher icon that is 72x72 and placed it in a res/drawable-hdpi/ directory.When I install the application on my Nexus One the icon looks good when I view it in the application menu.But when I place it on the desktop it appears small relative to other icons, my guess is I'm seeing the 48x48 version with no scaling.Do I need to do something differently either with my directory structure or my manifest file to get things to display correctly?
View 2 Replies
View Related
Mar 17, 2009
I need to show a large number of EditText controls on a screen, each of which will only allow entering 0-2 digits. The default EditText size is too wide for me to show enough EditText controls on a screen, but I have been unable to figure out how to make them narrower. I have tried the following attributes in XML: android:maxLength="2" android:layout_width="20dip" android:maxWidth="20px" android:ems="2" android:maxEms="2". So the question is: how can EditText be made smaller than default?
View 4 Replies
View Related
Oct 5, 2010
I am creating a simple android app to view a comic book. The pages are large(0.5-1 mb each), high quality .png's and I am loading them into a webview to make use of the built in zoom controls. So far I only have 17 files and the APK size is already about 16 mb. I'm looking to add over 200 files in future updates. I can't really reduce the quality too much because there is small text that must be zoomed-in on to read. Any suggestions? A similar question was posted here: How to reduce App (.apk) Size, but I don't want to lose the quality of the images. I'm not sure if it's appropriate to link to here, but you can have a look at my app by searching for Tracer (by Detour Mobile) on the android market if it helps at all.
View 1 Replies
View Related
Nov 15, 2010
Is there any way to make smaller DatePicker and TimePicker (but to be visible all parts ) in Android ? I tried to set layout_width="130dp" but then DatePicker isn't visible, just left upper corner.
View 1 Replies
View Related
Nov 23, 2010
I have a basic linear layout, with image view that display photos, textviews that show text etc...and when I test my whole app on my android 2, there is never any part of the screen that doesn't show. But when I test it in the QVGA emulator, half the view is off the screen. Now, some of my text is defined to a certain size.
I never use px (only dip) in any of my xml. I use fill_parent, wrap_content where it is needed and never fix a height or length. Could it be with my text, I use say, textSize = 22dip? I couldn't find documentation on why that would not work in all sizes. Could it be that some apps need to be programmed to those screen sizes? Or am I missing something?
View 1 Replies
View Related
Nov 24, 2010
I use a few small images on my app and I was wondering if (and how) I could ensure that the size of the image is relative to the size of the phone? Also, is there a way to shrink my layout on smaller phones so each layout fits within the screen - like if a random string (longer than others) would downsize in font so the whole layout was ensured to fit on the screen?
View 1 Replies
View Related
Sep 1, 2009
How to make android EditText smaller than default in height?
View 3 Replies
View Related
Sep 29, 2009
Is there any way for me to resize an app to make it smaller and placing it top left? I understand that there is a theme -> Dialog its possible to make the window size smaller but is it possible for me to dictate the x, y, dx, and dy where the dialog has to be placed?
View 2 Replies
View Related
Jul 13, 2010
I've been playing around with the Vignette demo version for a couple of days and I'm having an issue that I hope is just related to this being the free version. I know that the free version of Vignette only saves pictures at the really small size. When I take a picture through the app and save a square version of it, it's saving at 540 by 540 pixels. When I open the app and import another picture I've taken with the phone and use exactly the same effects, I get a 275 by 275 pixel square. I'm thinking of buying the full version, will the pictures I import and process always turn out smaller than the ones I take with the camera?
View 4 Replies
View Related
Oct 30, 2009
I have had several emails from people with HTC Tattoo devices who say they cannot find my app in the Market.
After reading this page (http://d.android.com/guide/practices/ screens_support.html) I believe I have to add the <supports-screens> tag to my manifest file. However, when I try to do this I am confronted with "Error no resource identifier found for attriute support-screens in package 'android'" messages. What does one have to do to update their manifest to tell the market an app supports all screen sizes?
Furthermore, if I need to change the android:minSdkVersion from "3" to something higher or add the android:targetSdkVersion tag, will this prevent people with older versions of Android from using my application?
View 4 Replies
View Related
Oct 15, 2009
I just got a HTC Hero (my 1st android device) and am trying to set everything up. I'm having a little trouble with the weather widget. It found my location just fine and is giving the weather correctly. The problem that I run into is when I am searching for other cities to add.
For example: I used to have an iphone and I would just type in the zip code or city, state. It would find any city or zipcode that I enter. With the hero it doesn't find anything except for major cities. Is there any way to get smaller cities to show up. I trying to get some city in Maryland and PA but it won't find anything and there are no big cities near it.
View 2 Replies
View Related
May 12, 2010
If you haven't noticed already Endadget has posted some new hands-on videos. One thing I noticed from the demos was the more reasonably sized directional arrows on the keyboard. May not be a huge deal to most, but it sure looks a whole lot better.
View 9 Replies
View Related
Oct 18, 2010
Had a low phone space warning so I've been moving a bunch of apps I don't keep open all the time over to my SD card. Why does the memory footprint of the app go way down when moved to the SD card? I had one go from 2.8ish MB to 800ish KB.
View 1 Replies
View Related
Jul 17, 2010
Is there a way to get smaller icons without root? I have seen screen shots with smaller icons so you can fit more on each page. That is what I would like. Any way to do it?
View 10 Replies
View Related
May 30, 2010
I like the HTC ones, but like something that takes up half the space (ie. half a page). I've tried scanning the market, but have been unable to find anything.
View 4 Replies
View Related
Nov 15, 2010
I've noticed that there is a lot of mis typing that Happens on this keyboard. Without the good correction Software I would be typing rubbish Was thinking that more space between smaller keys Might improve accuracy
View 16 Replies
View Related