Android :: Get Smaller CheckBox?
Jul 1, 2010Is 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 RepliesIs 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 Replieswhy CheckBox is always null.
<CheckBox id="@+id/checkbox" android:layout_width="wrap_content" android:layout_height="wrap_content" />
code file-
package com.reblogr.reblogrclient;
public class Test extends Activity { /** Called when the activity is first created. */
public CheckBox checkbox;
@Override public void onCreate(Bundle savedInstanceState) { ....................
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:
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.
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 RelatedI 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 RelatedI 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 RelatedI 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 RelatedI 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 RelatedI 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 RelatedIs 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 RelatedI 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?
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 RelatedHow to make android EditText smaller than default in height?
View 3 Replies View RelatedIs 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 RelatedI'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 RelatedI 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?
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.
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 RelatedHad 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 RelatedIs 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 RelatedI 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 RelatedI'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 RelatedWhy do some people say the Moment is a "brick"? I haven't done a side-by-side comparison, but according to specs I found online the Moment is smaller than the iPhone in width and height, and only 1.5mm thicker:
Moment: 113.2 x 56.4 x 13.8 mm
iPhone: 115.5 x 62.1 x 12.3 mm
I had a Desire but now have the Wildfire and things look bigger on the wildfire then on the desire like Apps icons and when im using the internet so would like to know if there is anyway of making things look smaller? I got the internet settings to the lowest that i can but it stills look big to me.
View 1 Replies View RelatedI want to display list of items in my application and user will select checkbox which is present in front of each item. List is displayed well. It also shows checkbox infront of list item but when I click on checkBox it is not getting selected. My code is like this
.........................
I have a question, been stuck for a while, i don't know how can i add a checkbox in the list, for example if I have a list of items i want to be able to check them. my XML code...
View 4 Replies View RelatedHere is how I setup my checked text view. How come no check box appeared?
View 1 Replies View RelatedHow do i on checkboxselected , show a toast that has data from database?
View 1 Replies View RelatedI have a horizontal LinearLayout. This LinearLayout has a checkbox next to another LinearLayout. The layout width/height of the checkbox is wrap_content, whereas the inner LinearLayout is fill_parent/wrap_content. The layout_weight of the inner LinearLayout is set to 1.
I've tried to add some android:padding around the checkbox to give some space around it, but no padding is given. I've also tried android:paddingLeft/Right/etc. How do I get some padding around my checkbox?
Note: I have an inner LinearLayout because I will be adding more TextViews
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="?android:attr/listPreferredItemHeight">
<CheckBox
android:id="@+id/mycheck"
android:text=""
android:layout_width="30dip"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:focusable="false"
android:background="@drawable/checkbox_background"
android:button="@drawable/checkbox"
/>
<LinearLayout
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_weight="1"
android:layout_height="wrap_content">
<TextView
android:id="@+id/mytext"
android:layout_width="fill_parent"
android:layout_weight="1"
android:gravity="center_vertical"
android:layout_height="wrap_content"
android:lines="1"
android:textColor="@color/white"
android:textSize="10sp"
android:textStyle="italic"/>
</LinearLayout>
</LinearLayout>