Fonts used in Api Demo - android

I am trying to get the same look and feel as the API demo in my application, but the fonts appear smaller. I have not set any fonts for my application. Is there some settings i am missing on the fonts?
The image with black background is the Api Demo which came along with the SDK samples. I am working on Android 2.2. The image with the white background is my application. I would like to know how to achieve the spacing between each of the rows in the list and the font as in the API Demos list.Can someone kindly help me with this. Thanks in advance.

<ListView android:id="#+id/MyListView"
android:layout_height="fill_parent"
android:layout_width="fill_parent"
android:divider="#android:color/transparent"
android:dividerHeight="10.0sp"/>
[1][1] [2][2]
view this link for change font in listview

Related

Changing color of Android icon

All of the Android material icons come in either black or white:
https://www.google.com/design/icons/index.html
Which I add to my layout like:
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#drawable/ic_plus" />
Is there a way to change the color of the icon from black/white to something else in the layout/code?
I've heard of the android:backgroundTint="#color/green" property, but does this work across all versions of Android? For example, if I use this property in my layout, will it change the color on Android versions older than 5.0?
Edit: Wow, you guys are good at making a new user feel unwelcome.
I think, It is not possible to all android versions.
you can design icon color in this website.()
Note: Google Designs icons also available in this website.
Icon generators allow you to quickly and easily generate icons from existing source images, clipart, or text.
http://romannurik.github.io/AndroidAssetStudio/

ANDROID : How can i achieve Listview similar to 'today in history' app?

I want to developer app to show event as "today in history", i want to build UI like timeline listview like this image, please let me know if there is any way or library related to this.
Thanks in advance
I am done with this, upto now, but how to hide listitem divider
Apply a transparent background to your divider, your ListView layout should look similar to this.
<ListView
android:layout_width="match_parent"
android:divider="#android:color/transparent"
android:layout_height="match_parent"/>

Android AppDisplay (GridView& NoSystemApp)

I found this tutorial : Build and Application Launcher with Android.
The objective is for developing an applauncher for my android launcher. Now all works fine when I integrated this code in my launcher. Now I want to change a few things :
First I want that the applauncher to only display the apps which are not part of the system like its displayed on normal android.
The next thing is that I hate this list view. I would much prefer a grid view but I don't seem to get it right.
Can somebody help me or give good links which explain these things better to me.
<GridView
android:id="#android:id/list"
android:layout_width="fill_parent"
android:layout_height="fill_parent"/>
<TextView
android:id="#android:id/empty"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:text="List PlaceHolder"/>
I changed the ListView into the GridView, but now i don't know what i have to change in code. There are Several lists and one of them i habe to change to some grid stuff i think

Setting background for basic android app

I am currently working on a basic app using eclipse as my IDE. I am currently having trouble setting an image as my background. I was following a tutoral which told me to place my image in the drawable-mdpi folder and name it as icon. I have tried this but it keeps on placing in the andriod icon instead even when i delete the andriod icon image. Is there a better way of doing this?
Thanks
try this:
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
android:gravity="center_horizontal" android:background="#drawable/background"></LinearLayout>
background is a .png file. with borders draw around it with Nine9Patch.
Hope this helps

Changing the style of a progressbar

I have loaded a progressBar from:
<?xml version="1.0" encoding="utf-8"?>
<ProgressBar xmlns:android="http://schemas.android.com/apk/res/android"
android:id="#+android:id/progress_small" style="?android:attr/progressBarStyleLarge"
android:layout_width="wrap_content" android:layout_height="wrap_content" />
On different devices I get different visualization. I want the progressbar on every device and every android version look rounded and not being built by some short liney only.
Is there a way to force this?
Thanks so far
You need to create a custom ProgressBar. Check out previous questions.
Also check this examples here, here.
This example is without coding: http://majaxandroidtips.blogspot.com/2009/06/how-to-create-custom-progress-bar.html
There is no need to create custom progress bar,
I created a sample project to demonstrate how to skin the Progress bar.
Please take a look at it/
https://github.com/gansBhat/AndroidProjects/tree/master/Examples/CustomThinProgressBar
Same has been uploaded to google drive
https://drive.google.com/folderview?id=0BxHClVwHSqq5dVRvT1Qyd0hYN0k&usp=sharing
Let me know if you face some issue.

Categories

Resources