I spent some time trying to find out how to put other views in the same place with a ListActivity and I figured out 2 different ways : First, you can create a new XML file that should contain a listView like this for example: android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="@color/black"> android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/home" /> android:layout_width="fill_parent" android:layout_height="fill_parent" android:drawSelectorOnTop="false" /> Then, in your activity type the following setContentView("xmlFile"); Here for example, I would like to put that image within my ListActivity .
I was stuck for like three hours trying to figure out how to change the background of a ListActivity because I have used an adapter with a layout for each item so when I change the background at the layout, only the item’s background is changed, but at the end I figured that it was very easy here is how I did it :- inside your onCreate() preferably before setting any adapters or putting any views, you insert the following line : getListView().
In advanced mobile applications or normal ones , a developer should communicate with the user using some feed backs so changing the color of an image or label when clicked gives the user the feedback that he has really clicked something, here how it is done. In your onClick() method , use the following method : setColorFilter("color in hexa" , "mode") In my case I use button.setColorFilter(0x77000000,Mode.SRC_ATOP); doing this you will change the Colour but if you pressed the back button , you will find it stuck on the colour you changed ,to return things as they were you can either use
Well, Lets say that most of the People have wrong concept of Who is A network Engineer and whose not,in Order to Clarify this Vague concept among people and also to answer the question that almost Most students or young Engineers ask them selves “How to be a Networker ?”, I will First Define who is A newtork Engineer. A Network Engineer is A Guy who takes the best of both worlds (Communications and Computer Science) and merge them into one to get into the “Communter Science ” world 😀 ,so A Network Engineer is like a federal spy, he can get into a room full of aliens and never be exposed, also most people think that some Certifications will make you a network Engineer that easily, well I admit that certifications give you quite a good understanding of IT stuff but not Engineering stuff, anyway lets get to the second Question already.
I have been thinking for a while, what would it be like in 3 or 4 years ahead, and I started noticing that everybody is starting to love the “Cloud”, I won’t lie, I love it to :D, It is exponentially increasing, some of the ISP’s have already started using the cloud, it is a pretty neat concept, for some of you who are not familiar with the cloud: Imagine that you are subscribing to a bank and you are no longer keeping your money under you bed :D, well everybody doesn’t now, no body is hiding his money under his bed.