Package com example computergraphics import android os. Bundle



Download 200,3 Kb.
bet14/20
Sana08.01.2022
Hajmi200,3 Kb.
#331779
1   ...   10   11   12   13   14   15   16   17   ...   20
Bog'liq
Kompyuter Grafikasi

}
return binding.root
}

private fun loadData() {


list = ArrayList()
list.add(
Info(
"Kompyuter grafikasiga kirish",
1,
"27 daqiqa o'qish",
R.drawable.ic_baseline_bookmark_add_24, "lecture1.pdf", 0
)
)
list.add(
Info(
"Rastr grafikasi",
2,
"26 daqiqa o'qish",
R.drawable.ic_baseline_bookmark_add_24,
"lecture2.pdf", 0
)
)

list.add(


Info(
"Vektor grafikasi",
3,
"25 daqiqa o'qish",
R.drawable.ic_baseline_bookmark_add_24,
"lecture3.pdf", 0
)
)
list.add(
Info(
"Fraktal grafika",
4,
"24 daqiqa o'qish",
R.drawable.ic_baseline_bookmark_add_24,
"lecture4.pdf", 0
)
)
list.add(
Info(
"Tekislikda almashtirishlar",
5,
" 23 daqiqa o'qish",
R.drawable.ic_baseline_bookmark_add_24, "lecture5.pdf",
0
)
)
list.add(
Info(
"Fazoda almashtirishlar",
6,
"27 daqiqa o'qish",
R.drawable.ic_baseline_bookmark_add_24, "lecture6.pdf", 0
)
)
list.add(
Info(
"Poligonal to`rlar",
7,
"29 daqiqa o'qish",
R.drawable.ic_baseline_bookmark_add_24,
"lecture7.pdf", 0
)
)
list.add(
Info(
"Splayn egri chiziqlar",
8,
"30 daqiqa o'qish",
R.drawable.ic_baseline_bookmark_add_24, "lecture8.pdf", 0
)
)
list.add(
Info(
"Splayn sirtlar",
9,
"27 daqiqa o'qish",
R.drawable.ic_baseline_bookmark_add_24,
"lecture9.pdf", 0
)
)
list.add(
Info(
"Parallel proyeksiyalar",
10,
"28 daqiqa o'qish",
R.drawable.ic_baseline_bookmark_add_24, "lecture10.pdf", 0
)
)
list.add(
Info(
"Markaziy proyeksiyalash",
11,
"24 daqiqa o'qish",
R.drawable.ic_baseline_bookmark_add_24, "lecture11.pdf", 0
)
)
list.add(
Info(
"Sohani boyash",
12,
"25 daqiqa o'qish",
R.drawable.ic_baseline_bookmark_add_24,
"lecture12.pdf", 0
)
)
list.add(
Info(
"Brezenxeym va Sazerland koxen algoritmlari",
13,
"23 daqiqa o'qish",
R.drawable.ic_baseline_bookmark_add_24, "lecture13.pdf", 0
)
)
list.add(
Info(
"Ko`rinmas chiziqlarni olib tashlash",
14,
"18 daqiqa o'qish",
R.drawable.ic_baseline_bookmark_add_24, "lecture14.pdf", 0
)
)
list.add(
Info(
"Ko`rinmas sirtlarni olib tashlash",
15,
"20 daqiqa o'qish",
R.drawable.ic_baseline_bookmark_add_24, "lecture15.pdf", 0
)
)
list.add(
Info(
"Geometrik obyektlarni nur bilan kesilishi",
16,
"23 daqiqa o'qish",
R.drawable.ic_baseline_bookmark_add_24, "lecture16.pdf", 0
)
)
list.add(
Info(
"Geometrik obyektlarni nur bilan kesilishi",
17,
"19 daqiqa o'qish",
R.drawable.ic_baseline_bookmark_add_24, "lecture17.pdf", 0
)
)
list.add(
Info(
"Bo`yash",
18,
"21 daqiqa o'qish",
R.drawable.ic_baseline_bookmark_add_24,
"lecture18.pdf", 0
)
)
list.add(
Info(
"Bo`yash",
19,
"20 daqiqa o'qish",
R.drawable.ic_baseline_bookmark_add_24,
"lecture19.pdf", 0
)
)
list.add(
Info(
"Nur yo`nalishi",
20,
"14 daqiqa o'qish",
R.drawable.ic_baseline_bookmark_add_24,
"lecture20.pdf", 0
)
)
list.add(
Info(
"Nur yo`nalishi",
21,
"16 daqiqa o'qish",
R.drawable.ic_baseline_bookmark_add_24,
"lecture21.pdf", 0
)
)
list.add(
Info(
"Rang",
22,
"22 daqiqa o'qish",
R.drawable.ic_baseline_bookmark_add_24,
"lecture22.pdf", 0
)
)
list.add(
Info(
"Rang",
23,
"24 daqiqa o'qish",
R.drawable.ic_baseline_bookmark_add_24,
"lecture23.pdf", 0
)
)
list.add(
Info(
"Grafik formatlar",
24,
"23 daqiqa o'qish",
R.drawable.ic_baseline_bookmark_add_24,
"lecture24.pdf", 0
)
)
list.add(
Info(
"OpenGL grafik kutubxonasi",
25,
"19 daqiqa o'qish",
R.drawable.ic_baseline_bookmark_add_24, "lecture25.pdf", 0
)
)
list.add(
Info(
"OpenGL yordamida geometrik obektlarni chizish",
26,
"27 daqiqa o'qish",
R.drawable.ic_baseline_bookmark_add_24, "lecture26.pdf", 0
)
)
list.add(
Info(
"OpenGL yordamida materiallar",
27,
"25 daqiqa o'qish",
R.drawable.ic_baseline_bookmark_add_24, "lecture27.pdf", 0
)
)
list.add(
Info(
"OpenGL yordamida yorug`lik",
28,
"20 daqiqa o'qish",
R.drawable.ic_baseline_bookmark_add_24, "lecture28.pdf", 0
)
)
list.add(
Info(
"OpenGL yordamida ishlash usullari",
29,
"35 daqiqa o'qish",
R.drawable.ic_baseline_bookmark_add_24, "lecture29.pdf", 0
)
)
list.add(
Info(
"GLUT kutubxonasi yordamida animatsiya yaratish",
30,
"37 daqiqa o'qish",
R.drawable.ic_baseline_bookmark_added_24, "lecture30.pdf", 0
)
)
}

companion object {


/**
* Use this factory method to create a new instance of
* this fragment using the provided parameters.
*
* @param param1 Parameter 1.
* @param param2 Parameter 2.
* @return A new instance of fragment LcturesFragment.
*/
// TODO: Rename and change types and number of parameters
@JvmStatic
fun newInstance(param1: String, param2: String) =
LcturesFragment().apply {
arguments = Bundle().apply {
putString(ARG_PARAM1, param1)
putString(ARG_PARAM2, param2)
}
}
}

override fun onMyClick(position: Int, info: Info) {


val bundle = bundleOf("info" to info)
MySharedPreferences.save2("ali2", info)
findNavController().navigate(R.id.dataFragment, bundle)
var list = MySharedPreferences.loadData1("count")
var loadData1 = MySharedPreferences.loadData("progress")
var a=false
if (list.size == 30) {
loadData1 = 100
MySharedPreferences.save("progress", loadData1)
} else
if (list.size == 0) {
loadData1 += 13
MySharedPreferences.save("progress", loadData1)
list.add(Count(position))
MySharedPreferences.save1("count", list)
} else {
for (i in 0 until list.size) {
a = position == list[i].count
if (a){
break
}else{
continue
}
}
if (a){
loadData1+=0
}else{
loadData1 += 3
MySharedPreferences.save("progress", loadData1)
list.add(Count(position))
MySharedPreferences.save1("count", list)
}
}
}

override fun setImage(position: Int, info: Info, imageView: Int) {


// list[position].image = R.drawable.ic_baseline_bookmark_added_24
// infoAdapter.list = list
// infoAdapter.notifyItemChanged(position)
// infoAdapter.notifyItemChanged(list.size)
}
}

package com.example.computergraphics

import android.content.Intent
import android.net.Uri
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.example.computergraphics.databinding.FragmentManualBinding
import com.example.computergraphics.utils.MySharedPreferences

// TODO: Rename parameter arguments, choose names that match


// the fragment initialization parameters, e.g. ARG_ITEM_NUMBER
private const val ARG_PARAM1 = "param1"
private const val ARG_PARAM2 = "param2"

/**
* A simple [Fragment] subclass.
* Use the [ManualFragment.newInstance] factory method to
* create an instance of this fragment.
*/
class ManualFragment : Fragment() {
// TODO: Rename and change types of parameters
private var param1: String? = null
private var param2: String? = null

override fun onCreate(savedInstanceState: Bundle?) {


super.onCreate(savedInstanceState)
arguments?.let {
param1 = it.getString(ARG_PARAM1)
param2 = it.getString(ARG_PARAM2)
}
}

lateinit var binding: FragmentManualBinding


override fun onCreateView(
inflater: LayoutInflater, container: ViewGroup?,
savedInstanceState: Bundle?
): View? {
binding = FragmentManualBinding.inflate(inflater, container, false)
MySharedPreferences.init(requireContext())
binding.qollanma.setOnClickListener{
var loadData = MySharedPreferences.loadData("manual")
if (loadData==100){
loadData+=0
}else{
loadData+=100
MySharedPreferences.save("manual",loadData)
}

val manual = Intent(Intent.ACTION_VIEW, Uri.parse("https://docs.google.com/document/d/14O28oGxmpe4dH37vF7a_F7FGXAAzSBor/edit?usp=sharing&ouid=106074610526737576497&rtpof=true&sd=true"))


startActivity(manual)
}
return binding.root
}

companion object {


/**
* Use this factory method to create a new instance of
* this fragment using the provided parameters.
*
* @param param1 Parameter 1.
* @param param2 Parameter 2.
* @return A new instance of fragment ManualFragment.
*/
// TODO: Rename and change types and number of parameters
@JvmStatic
fun newInstance(param1: String, param2: String) =
ManualFragment().apply {
arguments = Bundle().apply {
putString(ARG_PARAM1, param1)
putString(ARG_PARAM2, param2)

Download 200,3 Kb.

Do'stlaringiz bilan baham:
1   ...   10   11   12   13   14   15   16   17   ...   20




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish