リストビューで異なる数の列を表示することが可能であることを教えてください
例: - 縦モードでリストビューを表示すると 3 列が表示され、横モードでリストビューを表示すると 4 列が表示されます。私はそれをやろうとしましたが、私のソリューションは私にとってはうまくいきません.layoutフォルダーのprotraitとlayout-landフォルダーのlandscapeの異なるレイアウトを定義していますが、うまくいきません.
Can any one tell me is it possible to achive this .
And one More thing it possible to execute some code by checking
For Example:- if(this is android phone){
execute this code;
}
if(this is android tablet){
execute this code;
}
like iphone and ipad developer do
if(this is iphone )
{
execute this code ;
}
if(this is ipad )
{
execute this code ;
}
私は同じアプリケーションが電話とタブレットの両方で使用されており、電話とタブレットで異なるものを表示したい人がいるからです。
Thanks in advance