Showing posts with label android-layout. Show all posts
Showing posts with label android-layout. Show all posts

Tuesday, June 5, 2012

How to hide the title bar for an Activity in XML with existing custom theme


I want to hide the title bar for some of my activities. The problem is that I applied a style to all my activities, therefore I can't simply set the theme to @android:style/Theme.NoTitleBar.

Tuesday, May 8, 2012

AutoStart Application not working properly


I am having a Simple AutoStart Application with TimerTask implementation, that works fine in almost many devices. The problem is that it is not working in Samsung Galaxy Y(2.3.6) and DELL XCD35(2.2) . When the device boots TimerTask works for some seconds and then shuts down. I check in the Application->Manage Application , I saw that the Applcation was already in Force Stop State. That means some how my Application gets stopped after some seconds. So, what is the reason for this weird behaviour in these two devices, if anyone has the solution do share it.

Tuesday, April 10, 2012

converting pixels to dp in android


I have created my application with the height and width given in pixel for a pantech device whose resolution is 480x800.

Thursday, March 1, 2012

Image is not fit into QuickContactBadge


I have create a listview of Contact numbers , the list item contains the QuickContactBadge and TextView now whenever i tried to load image into QuickContactBadge it does not get fit into the QuickContactBadge Frame and at the same time QuickBadgeContact itself will also get shrink.

Android button with image background and text and stateful functionality


I want to create "button" in XML layout (if possible) which has background image based on state (this image is NOT 9-patched) and with text. Which component to use?

Wednesday, February 29, 2012

Linearlayout gravity issue?


İ have problem about linear layout. i think something is weard.All of them same layout but back button moving related icon buton.I want to fit back button on the left side and btn_header_what_search_user button want to right site.But they are moving related icon(center icon).Why? and how can i back button on the left side.

Tuesday, February 28, 2012

Monday, February 27, 2012

Thursday, February 16, 2012

How to make keyboard Activity in Android


I want to make a keyboard activity i-e whenever my activity starts it shows a computer type QWERTY keyboard on fullscreen.Actually I am making an application through which user will be able to use android keyboard for the Computer vi WiFi.

Reuseable activties?


Hi i have a couple of question regaurding android and activites, i have tried looking online but can't seem to find what i am looking for, anyway;

getRotation() of layout in Android 2.1


I have an android application I have build for Platform 4.0.3 and I have used getRotation() and setRotation() Methods to rotate my layout

Friday, January 20, 2012

Tuesday, January 17, 2012

How do I change the background color of default keyboard used in an app?


So the app I am making requires a darker keyboard to be used (or else the contrast between content and keyboard is far too high), so I need to change what keyboard appears when I interact with an EditText.

showing menu without pressing menu button


I want to create a menu which must be visible in my all the activities.There are around 5,6 activities in my application.

Sunday, January 15, 2012

split action bar doesn't appear?


i want to make action bar top and down in android 4.03 make code but when i run it it doesn't appear , i don't know what is wrong , i search for reson before asking here but i didn't find anything here is menu/style.xml code:

Android Creating button dynamically and fill layout


I'm creating a button dynamically. The number of button is depend on the size of arraylist. the problem is, after creating the button I will add to the layout using addview method. The problem is I'm using linear layout, as by default orientation for linear layout is horizontal, so the button will fill the layout horizontally. Because of that some of the button is not visible. What I'm trying to achieve is something look like this