Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; WP_MatchesMapRegex has a deprecated constructor in /home/araki/blog.ceed.jp/wp-includes/class-wp.php on line 635

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Translation_Entry has a deprecated constructor in /home/araki/blog.ceed.jp/wp-includes/pomo/entry.php on line 14

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; POMO_Reader has a deprecated constructor in /home/araki/blog.ceed.jp/wp-includes/pomo/streams.php on line 12

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; POMO_FileReader has a deprecated constructor in /home/araki/blog.ceed.jp/wp-includes/pomo/streams.php on line 106

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; POMO_StringReader has a deprecated constructor in /home/araki/blog.ceed.jp/wp-includes/pomo/streams.php on line 150

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; POMO_CachedFileReader has a deprecated constructor in /home/araki/blog.ceed.jp/wp-includes/pomo/streams.php on line 189

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; POMO_CachedIntFileReader has a deprecated constructor in /home/araki/blog.ceed.jp/wp-includes/pomo/streams.php on line 204

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; WP_Widget_Factory has a deprecated constructor in /home/araki/blog.ceed.jp/wp-includes/widgets.php on line 405

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/araki/blog.ceed.jp/wp-includes/load.php on line 545

Deprecated: Function create_function() is deprecated in /home/araki/blog.ceed.jp/wp-includes/pomo/translations.php on line 171
android:tileMode=”repeat”が効かないケース | CEED
Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/araki/blog.ceed.jp/wp-includes/formatting.php on line 3460

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/araki/blog.ceed.jp/wp-includes/formatting.php on line 3460

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/araki/blog.ceed.jp/wp-includes/formatting.php on line 3460

android:tileMode=”repeat”が効かないケース

例えばWebでの背景画像のように、画像を繰り返しで配置することで表現するような背景を使いたい場合に、bitmapとしてdrawableを作ると実現できる。
こんな感じ
[xml]


[/xml]
ところが、このリソースをリストビューなどの各アイテムの背景に指定したい場合に、レイアウトのXMLの中で、android:background=””として指定した場合には期待通りの表示になるのですが、adapter#getView()の中で動的に設定した場合に、繰り返しにならずに、1つの画像(ここではsome_drawable)がViewの大きさいっぱいに引き伸ばされたようになる場合があるようです。
そのViewの高さが確定できていないせいなのか?
また、一度上記のような引き伸ばされた状態の表示がおきると、その後、別のActivityで本来正常に表示されていたケースでも、(同じdrawableが背景に指定されている場合)、リストビューのケースと同様に引き伸ばされた表示になってしまうようです。
drawableのリソースってキャッシュされているのかな、、、

もう少し調査してみたいです、、、


Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/araki/blog.ceed.jp/wp-includes/formatting.php on line 3460

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/araki/blog.ceed.jp/wp-includes/formatting.php on line 3460

Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/araki/blog.ceed.jp/wp-includes/formatting.php on line 3460

Leave a Comment
Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/araki/blog.ceed.jp/wp-includes/formatting.php on line 3460

NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

getting health insurance in new york buy clomid online UK major health insurance companies buy levitra uk online what are wells fargo hours buy finasteride affordable health insurance for children accutane no prescription medical center of trinity viagra online uten resept midwestern university wellness center dapoxetine top individual health insurance companies viagra ireland