//package com.zjgsu.jianshu
//
//import android.content.Intent
//import android.graphics.Bitmap
//import android.graphics.BitmapFactory
//import androidx.appcompat.app.AppCompatActivity
//import android.os.Bundle
//import android.util.Log
//import androidx.recyclerview.widget.StaggeredGridLayoutManager
//import cn.bmob.v3.Bmob
//import cn.bmob.v3.BmobQuery
//import cn.bmob.v3.exception.BmobException
//import cn.bmob.v3.listener.FindListener
//import com.zjgsu.jianshu.Activity.AccountManagerActivity
//import com.zjgsu.jianshu.Activity.MyPostActivity
//import com.zjgsu.jianshu.Adapter.CommentAdapter
//import com.zjgsu.jianshu.Bmob.Comment_bmob
//import kotlinx.android.synthetic.main.activity_main.*
//import kotlinx.android.synthetic.main.activity_my.*
//import kotlinx.android.synthetic.main.activity_perception_infomation.*
//import kotlinx.android.synthetic.main.test11.*
//import java.io.InputStream
//import java.net.HttpURLConnection
//import java.net.URL
//
//class testgood : AppCompatActivity() {
//    private val commentlist=ArrayList<Comment>()
//    override fun onCreate(savedInstanceState: Bundle?) {
//        super.onCreate(savedInstanceState)
//        setContentView(R.layout.test11)
//        Bmob.initialize(this, "3ef45cbaebfff5cc05e559f8206b523f") //连接bmob
//    val bmobquery=BmobQuery<Comment_bmob>()
//    bmobquery.addWhereEqualTo("perceptionid","e0cd40a953")
//    bmobquery.findObjects(object:FindListener<Comment_bmob>(){
//        override fun done(list:List<Comment_bmob>, e:BmobException?){
//            if(e==null){
//                var cnt=0
//                for(i in list){
//                    cnt++
//                    commentlist.add(Comment(i.objectId))
//                    val adapter = CommentAdapter(commentlist)
//                    recyclerView100.adapter = adapter
//                }
//                comment_cnt.text="评论  "+cnt.toString()
//            }
//        }
//    })
//    val layoutManager =
//        StaggeredGridLayoutManager(1, StaggeredGridLayoutManager.VERTICAL)//第一个参数是列数
//    recyclerView100.layoutManager = layoutManager
//    var adapter = CommentAdapter(commentlist)
//    }
//}
//
