Settings | Sign in | Sign up

There are currently 4 posts.

TextView可以設置字體大小,加粗,傾斜,顏色,背景顏色

Floor 1 巨大八爪鱼 2/18/15 17:17
Floor 2 巨大八爪鱼 2/18/15 17:18
<TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:background="#232321"
        android:text="@string/a"
        android:textColor="#C12244"
        android:textSize="35sp"
        android:textStyle="bold|italic" />
Floor 3 巨大八爪鱼 2/18/15 17:27

Floor 4 巨大八爪鱼 2/18/15 17:28
 @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        
        OnClickListener btn1_events = new OnClickListener() {
            @Override
            public void onClick(View v)
            {
                Intent act = new Intent(MainActivity.this, Abc.class);
                startActivity(act);
            }
        };
        findViewById(R.id.button1).setOnClickListener(btn1_events);
    }

Content converter:

Reply the post
Content:
User: You are currently anonymous.
Captcha:
Unclear? Try another one.