Android Open Source - VerticalTextView Main Activity






From Project

Back to project page VerticalTextView.

License

The source code is released under:

MIT License

If you think the Android project VerticalTextView listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.leaf.verticaltextview;
//  w  w  w. java  2s .com
import com.leaf.verticaltextview.widget.VerticalTextView;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;

public class MainActivity extends Activity {

  VerticalTextView verticalTextView;
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
    
    String text="???????\n?????????\n";
    
    verticalTextView = (VerticalTextView) findViewById(R.id.verticalTextView1);
    verticalTextView.setColumnSpacing(2);
    verticalTextView.setHeight(300);
    verticalTextView.setVerticalText(text, true);
  }

  @Override
  public boolean onCreateOptionsMenu(Menu menu) {
    // Inflate the menu; this adds items to the action bar if it is present.
    getMenuInflater().inflate(R.menu.main, menu);
    return true;
  }

}




Java Source Code List

com.leaf.verticaltextview.MainActivity.java
com.leaf.verticaltextview.widget.VerticalTextView.java