package com.
atest ;
import java.
util .
ArrayList ;
import android.
app .
Activity ;
import android.
os .
Bundle ;
import android.
view .
服务器托管网 View ;
import android.
view .
View .
OnClickListener ;
import android.
widget .
ArrayAdapter ;
import android.
widget .
Button ;
import android.
widget .
GridView ;
import android.
widget .
LinearLayout ;
import android.
widget .
LinearLayout .
LayoutParams ;
public
class TestGrid
extends Activity
implements OnClickListener
{
protected ArrayList nums =
new ArrayList
(
3
) ;
protected GridView listHands =
null ;
/** Called when the activity is first created. */
@Override
public
void onCreate
( Bundle icicle
)
{
super .
onCreate
( icicle
) ;
for
(
int x=
0 ; x
(
this ,
android.
R .
layout .
simple_list_item_1_small ,
this .
nums
)
) ;
numbers.
addView
( listHands
) ;
(
(
Button
) findViewById
( R.
id .
subBtn
)
) .
setOnClickListener
(
this
) ;
}
/**
* update the list after every SUBMIT click
*/
public
void onClick
(
View服务器托管网 arg0
)
{
// update the list
long t =
System .
currentTimeMillis
(
) ;
for
(
int x=
0 ; x
Here’s the XML for the screen
XML: |
|
服务器托管,北京服务器托管,服务器租用 http://www.fwqtg.net
机房租用,北京机房租用,IDC机房托管, http://www.fwqtg.net
相关推荐: 识别一切模型RAM(Recognize Anything Model)及其前身 Tag2Text 论文解读
总览 大家好,我是卷了又没卷,薛定谔的卷的AI算法工程师「陈城南」~ 担任某大厂的算法工程师,带来最新的前沿AI知识和工具,欢迎大家交流~ 继MetaAI 的 SAM后,OPPO 研究院发布识别一切模型(Recognize Anything Model,RAM…