Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4362: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4364: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4365: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4366: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
anddev.org • View topic - Progress/Seekbar Height

Progress/Seekbar Height

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

Progress/Seekbar Height

Postby ParanoidAndroid » Sat Mar 28, 2009 10:05 am

I would like do decrease the height of my seekbar. I tried for hours but I just do not get it. I use a custom drawable so I guess that this is the place to specify the size:

Syntax: [ Download ] [ Hide ]
Using xml Syntax Highlighting
  1.  
  2. <shape xmlns:android="http://schemas.android.com/apk/res/android" type="rectangle">
  3.  
  4.    <gradient android:startColor="@color/player_seek_bar_2"
  5.  
  6.   android:centerColor="@color/player_seek_bar_1"
  7.  
  8.   android:endColor="@color/player_seek_bar_2"
  9.  
  10.   android:angle="270"/>
  11.  
  12.    <size android:width="50dp" android:height="50dp"/>
  13.  
  14.    <stroke android:width="2dp" android:color="#FFFFFFFF"/>
  15.  
  16.    <corners android:radius="3dp" />
  17.  
  18. </shape>
  19.  
  20.  
Parsed in 0.001 seconds, using GeSHi 1.0.8.4


However, modifying the size attributes has no effect. Adjusting the size attributes in the layout file changes the size only by clipping the seekbar. This is may layout:

Syntax: [ Download ] [ Hide ]
Using xml Syntax Highlighting
  1.  
  2. <SeekBar android:id="@+id/progressSeekBar"
  3.  
  4.                 android:layout_width="wrap_content"
  5.  
  6.                 android:layout_height="wrap_content"
  7.  
  8.                 android:layout_margin="5sp"
  9.  
  10.                 android:max="100"
  11.  
  12.                 android:progress="0"
  13.  
  14.                         android:layout_weight="20"
  15.  
  16.                         android:progressDrawable="@drawable/player_progress_seek_bar"/>
  17.  
  18.  
Parsed in 0.001 seconds, using GeSHi 1.0.8.4
ParanoidAndroid
Freshman
Freshman
 
Posts: 6
Joined: Fri Mar 20, 2009 2:46 pm

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 8 guests