package com.sabirjan.android;

import com.sabirjan.CaoZuoTXT.ReadTXT;
import com.sabirjan.Dialog.Custom_WaitDialog;
import com.sabirjan.DrawUyghurWord.ConvertUL;
import com.sabirjan.Kanun.GetUyghursent;
import com.sabirjan.Kanun.TodoListItemView;
import com.sabirjan.android.R;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.text.method.ScrollingMovementMethod;
import android.util.DisplayMetrics;
import android.view.GestureDetector;
import android.view.KeyEvent;
import android.view.MotionEvent;
import android.view.View;
import android.view.Window;
import android.view.GestureDetector.OnGestureListener;
import android.view.View.OnTouchListener;
import android.widget.ScrollView;

public class ShowOneKanunContentActivity extends Activity {
	String url;
	private TodoListItemView mContent;
	Custom_WaitDialog dialog;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		   requestWindowFeature(Window.FEATURE_CUSTOM_TITLE); //
	        setContentView(R.layout.test);
	        
			getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, R.layout.title);//
		Intent in=this.getIntent();
		 url=in.getStringExtra("Url");
		 ReadTXT clsreadText=new ReadTXT();
        	String text=clsreadText.readTxt(ShowOneKanunContentActivity.this,"kanun/"+url+".txt");
        	mContent=(TodoListItemView)ShowOneKanunContentActivity.this.findViewById(R.id.text);
        	mContent.setMovementMethod(ScrollingMovementMethod.getInstance());
        	mContent.setText(text);
	
	}
class MyThread extends Thread{                        
        
        public void run() {
                
            try { 
       		 
            	
            //	Thread.sleep(5000);
            	
                } catch (Exception e) 
                {
                	
                	
                }
              
        
        }
};        

}
